Skip to content
/ hquote Public

A simple Ruby on Rails plugin to get historical stock quotes from Yahoo

License

Notifications You must be signed in to change notification settings

medius/hquote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Hquote: A simple Ruby on Rails plugin to get historical stock quotes from Yahoo

Author: Puru Choudhary (puruchoudhary@gmail.com)

-------------------------------------------------
Usage: 
-----
quote_req = {:symbol=>"aapl",:start_month=>"0",:start_date=>"1",:start_year=>"2011",
:end_month=>"2",:end_date=>"14",:end_year=>"2011",:period=>"d"}
Hquote.get_ohlcv(quote_req)

=> [{:date=>"2011-03-11", :open=>"345.33", :high=>"352.32", :low=>"345.00", 
:close=>"351.99", :volume=>"16813300", :adj_close=>"351.99"}, {:date=>"2011-03-10", 
:open=>"349.12", :high=>"349.77", :low=>"344.90", :close=>"346.67", :volume=>"18126400", 
:adj_close=>"346.67"}, .... ]


Credit: This work is derived from John Yerhot's rQuote plugin
https://github.com/johnyerhot/rquote

About

A simple Ruby on Rails plugin to get historical stock quotes from Yahoo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages