ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
14.89k stars 2.44k forks source link

Unable to get PE Ratios #2084

Open DruidSmith opened 1 month ago

DruidSmith commented 1 month ago

Code example for reproducibility:

stock = yf.Ticker(symbol) pe_ratio = stock.info.get('forwardPE') return pe_ratio

This is throwing errors, as is trailingPE. Everything else seems to be working.

Antix8489 commented 1 month ago

Working now