BloombergQuote is Ruby module which getting quotes from Bloomberg site
Add this line to your application's Gemfile:
gem 'bloomberg_quote'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bloomberg_quote
require 'bloomberg_quote'
# Fetching TOPIX Index quote
quote = BloombergQuote::Quote.new('TPX:IND')
quote.valid?
# => true
quote.data['Price']
# => 813.33
quote.data['Previous Close']
# => 819.27
quote.data['Open']
# => 814.37
# Fetching DUMMY currency
quote = BloombergQuote::Quote.new('DUMMY:CUR')
quote.valid?
# => false
- Price
- Previous Close
- Open
You can search them at Bloomberg
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Code and APIs are inspired by yahoo_quote.