[Python] yfinance 429 Client Error: Too Many Requests for url

Discussão em 'Python' iniciado por Stack, Fevereiro 19, 2025.

  1. Stack

    Stack Membro Participativo

    I have been using yfinance for a project, and have come across this error: 429 Client Error: Too Many Requests for url: https://query2.finance.yahoo.com/v1...lse&symbol=AAPL&crumb=Edge: Too Many Requests

    I do not believe I have made an unnecessary amount of requests but that appears to be untrue. I run some code on my AWS Lambda functions that fetch data from yfinance, but I have also replicated the following code on my local machine and still get the same response.

    This is the code I used on my local IDE and it still provides the same error.

    import yfinance as yf
    aapl = yf.Ticker('aapl')
    print(aapl.info)


    Does anyone know how to fix this or what I should do?

    Continue reading...

Compartilhe esta Página