Question

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 that 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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top