YFRateLimitError

1 Failed download:
[‘AAPL’]: YFRateLimitError(‘Too Many Requests. Rate limited. Try after a while.’)
I get this error what should I do

Hello,

Recently, the yfinance api seems to be unstable and there are frequent updates as well. Usually, if you run the code to upgrade the finance library, it should not give you this error. (pip install --upgrade yfinance)

Hope this helps.

1 Like

but it works in colab but not in local computer

Hi

This could be due to the fact that Colab requests data through Google’s IP addresses. These shared IPs often have higher rate limits with services like Yahoo Finance than the typically stricter limits imposed on individual IP addresses from local machines.