How to Download Multiple Stocks Using Yahoo API v11

3k views Asked by At

How can I download multiple symbols using Yahoo Finance API version >= 8? As you can see here I can download multiple stocks with version 7, but from version 8 onwards they changed something:

https://query2.finance.yahoo.com/v7/finance/quote?symbols=AAPL,KO

Specifically, with the latest version (11) I can add multiple modules with useful data, however I can only use one single stock for each request. How can I download multiple ones as I was able to do in the previous example?

https://query2.finance.yahoo.com/v11/finance/quoteSummary/KO?modules=summaryProfile,financialData,defaultKeyStatistics

I have tried:

https://query2.finance.yahoo.com/v11/finance/quoteSummary/AAPL,KO?modules=summaryProfile,financialData,defaultKeyStatistics

but it doesn't work.

1

There are 1 answers

2
Candamir On

I haven't found anything that would indicate that downloading data for multiple tickers is still supported. However, see e.g. this "Python package whose goal is to fix the support for Yahoo! Finance for Pandas DataReader" (credit to this answer) which allows you to ask for data on multiple tickers and which then breaks it down into single-ticker requests for you.

Is there a specific reason why you need to retrieve the data on multiple tickers with one request / why using multiple requests is not acceptable?