雅虎历史上的日内股票数据通过YQL(就像图表api)?

时间:2016-02-20 07:15:33

标签: yql yahoo-api yahoo-finance

我知道我可以使用图表api获取历史日内数据(最多15天),如下所示

http://chartapi.finance.yahoo.com/instrument/1.1/GOOG/chartdata;type=quote;range=5d/xml/

使用YQL和

env 'store://datatables.org/alltableswithkeys'

我可以使用.quotes和.historicaldata:

select * from yahoo.finance.quotes where symbol in ("YHOO","AAPL","GOOG","MSFT")
select * from yahoo.finance.historicaldata where symbol in ("YHOO","AAPL","GOOG","MSFT") and startDate = "2012-09-13" and endDate = "2012-09-13"

我无法弄清楚如何使用YQL语句获取历史日内数据(例如使用chartapi;可能仅限于范围内的几天)。

在某处有任何关于此的文档吗?

亚历

0 个答案:

没有答案