-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
19 lines (14 loc) · 756 Bytes
/
README
File metadata and controls
19 lines (14 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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