开发者

Yahoo finance CSV query no returning january in result

I need to get stock prices from a web service and the only reasonable way i've found is tu use the below query string.

The problem is tha开发者_Python百科t with the below string the result start in February and not January. Has anybody experience with this service and can help me?

http://ichart.finance.yahoo.com/table.csv?s=GOOG&a=1&b=1&c=2010&d=1&e=1&f=2010&g=d&ignore=.csv

Also, does any body have any good advice links on financial web services. I've been on the Yahoo page but all they seem to mention is RSS feeds.

Also, the Google Finance API page is kind of confusing.

Thanks. Conor


The parameters to the url are as follows:

a <- beginning month (0--11)
b <- beginning day (1--??)
c <- Beginning year
d <- End month (0--11)
e <- End day 
f <- End year
g <- 'd'=>daily, 'v'=>dividends, 'm'=>monthly,

So to start in January, set a=0, not a=1.

http://ichart.finance.yahoo.com/table.csv?s=GOOG&a=0&b=1&c=2010&d=1&e=1&f=2010&g=d&ignore=.csv

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜