0

I would like to gather historical stock prices using the yahoo_finance get_historical feature. The test below is fine, but test2 is printed as an empty array. Any ideas?

from yahoo_finance import Share
test = (Share('AAPL').get_open())
print test
test2 = (Share('AAPL').get_historical('2017-01-30', '2017-02-15'))
print test2
phd
  • 82,685
  • 13
  • 120
  • 165
Austin
  • 43
  • 8
  • 1
    Duplicate of [Yahoo Finance API .get_historical() not working python](https://stackoverflow.com/questions/44075147/yahoo-finance-api-get-historical-not-working-python), [Yahoo-Finance module doesn't work anymore?](https://stackoverflow.com/questions/44753963/yahoo-finance-module-doesnt-work-anymore), and [Yahoo Finance URL not working](https://stackoverflow.com/questions/44030983/yahoo-finance-url-not-working). – Brad Solomon Jul 04 '17 at 19:43

1 Answers1

0

Yes, it seems that Yahoo finance recently [shut down historical_data of their API (link)

I have found this SO topic talking about it.

And this Quora question about what to use after Yahoo finance

Kruupös
  • 5,097
  • 3
  • 27
  • 43