Search code examples
pythonpandasfinanceyahoo-api

Python, Pandas, Yahoo Finance API


Having trouble getting Pandas data reader to retrieve price quotes from Yahoo’s API. The most up to date answer seems to be:

"pip install --upgrade pandas pip install --upgrade pandas-datareader

However, for the time being I will be using Google Collab and its Python platform, does anyone know how to update the pandas here? Or has the API truly just been discontinued?


Solution

  • Yahoo API works for me. Not sure which wrapper you're using (there are a ton). Try yfinance.

    From Colab: !pip install yfinance

    import yfinance as yf
    msft = yf.Ticker("MSFT")
    msft.info
    

    Great docs here.