Sha256: f4428c6f0d4703281807715f29e66cc6cee8fba9bcb792acf6933557e68d0077

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

# Bovespa Prices
Bovespa-prices connects to Bovespa to get stock prices

## Installation
Add this line to your application's Gemfile:

```shell
gem 'bovespa-prices'
```

And then execute:
```shell
bundle
```

Or install it yourself as:
```shell
gem install bovespa-prices
```

## Usage

```ruby
require 'bovespa-prices'

bovespa = Bovespa.new

# returns a Hash with Stock objects
results = bovespa.get(:VALE5, :GGBR4)

vale5 = results[:VALE5]
puts vale5.name
puts vale5.opening_price
puts vale5.min_price
puts vale5.max_price
puts vale5.average_price
puts vale5.last_price
puts vale5.variation
puts vale5.code

ggbr4 = results[:GGBR4]
puts ggbr4.name
puts ggbr4.opening_price
puts ggbr4.min_price
puts ggbr4.max_price
puts ggbr4.average_price
puts ggbr4.last_price
puts ggbr4.variation
puts ggbr4.code

```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bovespa-prices-1.0.3 README.md
bovespa-prices-1.0.2 README.md
bovespa-prices-1.0.1 README.md
bovespa-prices-1.0.0 README.md