yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

Fix growth_estimates for new key `LTG`

Open ericpien opened this issue 1 year ago • 0 comments

Summary

  • LTG (long-term growth ?) is new to the API but its meaning is not shown on yahoo yet.
  • Support for 5 year numbers seem to have been removed. so commenting it out.
  • Fixes: https://github.com/ranaroussi/yfinance/issues/2126

Examples: LTG row and 5 year numbers are not shown in the links below.

  • https://finance.yahoo.com/quote/MSFT/analysis/
  • https://finance.yahoo.com/quote/AAPL/analysis/
  • https://finance.yahoo.com/quote/TSLA/analysis/

Sample: import yfinance as yahooFinance

msft = yahooFinance.Ticker("MSFT")
print(msft.growth_estimates) # now works

ericpien avatar Nov 14 '24 23:11 ericpien