Yahoo Finance API从日期到日期查询

时间:2016-05-07 21:21:55

标签: yahoo-api yahoo-finance

我想获得几天的历史数据。以下链接有效,但似乎有点奇怪。在这个例子中,我想从2016年5月4日到2016年5月6日获取数据。我猜这个月的Yahoo API值是0-11而不是1-12。似乎无论如何都有意义。

http://ichart.finance.yahoo.com/table.csv?s=WU&a=05&b=04&c=2016&d=05&e=06&f=2016&g=d&ignore=.csv

这不起作用。

http://ichart.finance.yahoo.com/table.csv?s=WU&a=04&b=04&c=2016&d=05&e=06&f=2016&g=d&ignore=.csv

这会返回我想要的确切日期

http://ichart.finance.yahoo.com/table.csv?s=WU&a=03&b=04&c=2016&d=05&e=06&f=2016&g=d&ignore=.csv

返回2016年4月4日至2016年5月6日的日期。

1 个答案:

答案 0 :(得分:0)

参数是:

a= Start month - 1
b=day
c=year

d= End month - 1
e=day
f=year

其中start< = end

相关问题