-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapter 08: Using Yahoo historic_Data fails #27
Comments
same problem here. it appears yahoo API has been descontinued, so this code does not work, not even for those who bought the book at manning. there is a workaround to scrape yahoo finance data using beautiful soup, but it is not workable with this book. hopefully, there is a fix that I have found to work well: Yahoo Finance API / URL not working: Python fix for Pandas DataReader where I followed the steps in https://pypi.python.org/pypi/fix-yahoo-finance to:
then, do the following:
this should work. |
My solution is to switch the provider.
|
I used pandas_datareader which worked nicely:
|
Worked for me. Saved my day |
Hi,
your demo Code - as shown in chapter 8 - which access yahoos historic data fails.
The failure is "yahoo_finance.YQLResponseMalformedError: Response malformed." after calling:
prices = get_prices('MSFT', '1992-07-22', '2016-07-22')
This "failure" is written in many articles, like:
http://www.financial-hacker.com/bye-yahoo-and-thank-you-for-the-fish/#more-2443
The text was updated successfully, but these errors were encountered: