Something has change recently with Yahoo finance Python API stock.options – this object is empty. It was working fine at the end of 2023 and I tried it a month ago with this problem. I used commonly traded symbols like QQQ or MSFT. Can anyone help getting around this issue please. My yfinance version is 0.2.37
Upgraded to the latest yfinance – no change.
Here is the sample code:
import yfinance as yf
stock = yf.Ticker('MSFT')
options = stock.options
print("options: ", options) # this prints empty results
New contributor
Michael D is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.