Skip to content

Ruby Gem for fetching quotes from the Yahoo Finance API

License

Notifications You must be signed in to change notification settings

hasmanyguitars/y_fi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Climate CircleCI

YFi

This is a Ruby implementation for fetching stock/fund prices from the Yahoo Finance API with YQL: https://developer.yahoo.com/yql/faq/

Usage

To get a collection of quotes (Enumerable object):

YFi::QuoteCollection.new(['vbtlx', 'vigrx'])

To get an individual quote:

quote = YFi::Quote.find_by_ticker('aapl')
puts quote.price
puts quote.updated_at
puts quote.issuer_name
puts quote.ticker

Installation

gem install y_fi

gem 'y_fi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install y_fi

Set up the logger:

YFi.configure do |config|
  config.logger = ::Logger.new("#{Rails.root}/log/yahoo_finance.log")
end

Contributing

Feel free to create a pull request on a feature branch.

License

The gem is available as open source under the terms of the MIT License.

About

Ruby Gem for fetching quotes from the Yahoo Finance API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages