Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
BloombergQuote is Ruby module which getting quotes from Bloomberg site
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib Bumped up version
spec
.gitignore
.rspec Implemented index quote
Gemfile
LICENSE Added README.md and LICENSE
README.md Fixed typo
Rakefile Initial commit
bloomberg_quote.gemspec Fixed typo

README.md

BloombergQuote

BloombergQuote is Ruby module which getting quotes from Bloomberg site

Installation

Add this line to your application's Gemfile:

gem 'bloomberg_quote'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bloomberg_quote

Usage

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

Supported fields

  • Price
  • Previous Close
  • Open

FAQ

Where can I find ticker symbols?

You can search them at Bloomberg

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

Acknowledgement

Code and APIs are inspired by yahoo_quote.

Something went wrong with that request. Please try again.