pythonyfinance

yfinance's info only returns 3 items instead of the usual long list


Up until recently the 3 lines below gave a long list of items, now I get only

{'regularMarketPrice': None, 'preMarketPrice': None, 'logo_url': ''}

whatever company ticker I use. I have uninstalled and re-installed yfinance, to no avail. Any suggestions?

Code:

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

Solution

  • I had the same issue and was able to solve it by updating yfinance to the latest version: pip install yfinance --upgrade --no-cache-dir --pre