Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Hquote: A simple Ruby on Rails plugin to get historical stock quotes from Yahoo Author: Puru Choudhary ([email protected]) ------------------------------------------------- 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