yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

Throttling question

Open wjsaxx opened this issue 3 years ago • 2 comments

My experience is I can query ticker.history() once per second for 3,000+ times without issue. My data set is the Russel 1000 and Russel 2000.

When I query ticker.info(), ticker.quarterly_cashflow(), ticker.quarterly_financials(), ticker.calendar() I have to pause 4 seconds between my 3,000+ ticker queries or the calls will fail. I suspect due to throttling as I can keep things going when I increase my sleep between calls.

Is this the typical experience? Is there anything that can be done to manage throttling? I am logged into my Yahoo account. If I subscribe to Yahoo Finance does that have any effect on throttling?

wjsaxx avatar Feb 17 '22 10:02 wjsaxx

Ive noticed that the magic number for me is 300 or so tickers before it downloads at a ticker per second. I am currently experimenting with pausing at every 300 symbols, but can't find the sweet spot in amount of time to wait before the throttling is reset.

Bertron01 avatar Mar 12 '22 19:03 Bertron01

With YFrake, you can make up to 2000 requests in 1.5 seconds to all endpoints, depending on the size of the data being returned from the servers.

aabmets avatar Mar 20 '22 08:03 aabmets

Options:

ValueRaider avatar Mar 12 '24 22:03 ValueRaider