Yesterday (November 14, 2024) everything was running fine, this morning I have run into errors when trying to retrieve growth estimates from Microsoft (ticker MSFT).
Here is the error code:
Traceback (most recent call last):
File "c:/python/utility-roe/web/app/functions.py", line 497, in <module>
print(msft.growth_estimates)
File "C:\Python37\lib\site-packages\yfinance\ticker.py", line 278, in growth_estimates
return self.get_growth_estimates()
File "C:\Python37\lib\site-packages\yfinance\base.py", line 308, in get_growth_estimates
data = self._analysis.growth_estimates
File "C:\Python37\lib\site-packages\yfinance\scrapers\analysis.py", line 225, in growth_estimates
data_dict[period].append(item.get('growth', {}).get('raw', None))
KeyError: 'LTG'
Describe bug
Yesterday (November 14, 2024) everything was running fine, this morning I have run into errors when trying to retrieve growth estimates from Microsoft (ticker MSFT).
Here is the error code:
Simple code that reproduces your problem
Here is the example from the https://pypi.org/project/yfinance/ page I am no longer able to run without error.
Debug log
Bad data proof
No response
yfinance
version0.2.49
Python version
3.7
Operating system
Windows 10