Nerva
Nerva

Reputation: 349

How to Download Multiple Stocks Using Yahoo API v11

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.

Upvotes: 4

Views: 3425

Answers (1)

Candamir
Candamir

Reputation: 596

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?

Upvotes: 1

Related Questions