Skip to content
Retrieve stock splits from Yahoo! Finance
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE.txt
README.rdoc
Rakefile
yahoo_stock_splits.gemspec

README.rdoc

yahoo_stock_splits - Retrieve stock splits from Yahoo! Finance

Description

yahoo_stock_splits retrieves stock splits from Yahoo! Finance. Split information is not available via CSV download, so this gem scraps the basic chart page of the desired stock.

It returns an array of arrays that contain the date, post split shares, and pre split shares, in that order.

Example

> YahooStockSplits.get("YHOO")
=> [["1997-09-02", 3, 2], ["1998-08-03", 2, 1], ["1999-02-08", 2, 1], ["2000-02-14", 2, 1], ["2004-05-12", 2, 1]]

Copyright

Copyright © 2011 Javier Vidal. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.