samedi 9 janvier 2016

Can't get all data from Yahoo finance API

Vote count: 0

I'm using python pandas in order to get stock/index prices from yahoo finance. I use the web.DataReader([list of stocks], 'yahoo', start, end)

Many of these stocks are working fine. However, one doesn't. My questions is: How can I manage to successfully gather all of them?

The one called ^DJCI is the one that doesn't work. It is available on the website of yahoo and it has data. I can't even get it individually by doing the following:

web.DataReader('^DJCI', 'yahoo', start, end)

I get the following error:

IOError: after 3 tries, Yahoo! did not return a 200 for url ''

asked 2 mins ago

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at

Can't get all data from Yahoo finance API

Aucun commentaire:

Enregistrer un commentaire