yfinance
yfinance copied to clipboard
No FinancialTemplateStore key in json data store
I wrote a python script to retrieve the latest AES key and it works fine. I'm able to get the balance sheet of MSFT.
But when I change the symbol to AAPL, I got another error, do you know why?
#!/usr/bin/env python3
import yfinance as yf
msft = yf.Ticker("AAPL")
# hist = msft.history(period="max")
# print(hist)
print(msft.balance_sheet.to_string())
get_json_data_stores returned empty dict, and I got this error:
- APPL: Failed to create balance-sheet financials table for reason: YFinanceDataException("Parsing FinancialTemplateStore failed, reason: KeyError('FinancialTemplateStore')")
Empty DataFrame
Columns: []
Index: []
Weird, it sometimes work, sometimes fail
- APPL
Typo = user error