Skip to content

javiervidal/yahoo_stock_splits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 © 2011 Javier Vidal. See LICENSE.txt for further details.

About

Retrieve stock splits from Yahoo! Finance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages