Downloading multiple stocks at once from Yahoo Finance

Updated as of 2021-01-19 At this time, the implementation in the OP works without issue, to download multiple stocks. Version: 0.9.0 Date: July 10, 2020 GitHub: pydata / pandas-datareader tickers = [‘msft’, ‘aapl’, ‘intc’, ‘tsm’, ‘goog’, ‘amzn’, ‘fb’, ‘nvda’] df = pdr.DataReader(tickers, data_source=”yahoo”, start=”2017-01-01″, end=’2020-09-28′) Original Answer If you read through Pandas DataReader’s documentation, they … Read more

“TypeError: string indices must be integers” when getting data of a stock from Yahoo Finance using Pandas Datareader

None of the solutions reported here so far worked for me. As per the discussion here Yahoo made changes to their API that broke compatibility with previous pandas datareader versions. In the same Github thread a fix is reported, implemented in a pull request from Github user raphi6. I confirmed the pull request works fine. … Read more

Has Yahoo finance web service disappeared? API changed? Down temporarily?

I was facing a similar issue from last 2-3 days. The url works on the smartphone, where on the desktop it gives “Not a valid parameter” error and HTTP Code 406. This can be resolved by adding user agent as “Mozilla/5.0 (Linux; Android 6.0.1; MotoG3 Build/MPI24.107-55) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.81 Mobile Safari/537.36” while invoking … Read more

Yahoo Finance URL not working

Yahoo has gone to a Reactjs front end which means if you analyze the request headers from the client to the backend you can get the actual JSON they use to populate the client side stores. Hosts: query1.finance.yahoo.com HTTP/1.0 query2.finance.yahoo.com HTTP/1.1 (difference between HTTP/1.0 & HTTP/1.1) If you plan to use a proxy or persistent … Read more