yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

No FinancialTemplateStore key in json data store

Open CaledoniaProject opened this issue 2 years ago • 1 comments

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: []

CaledoniaProject avatar Jan 26 '23 02:01 CaledoniaProject

Weird, it sometimes work, sometimes fail

CaledoniaProject avatar Jan 26 '23 03:01 CaledoniaProject

  • APPL

Typo = user error

ValueRaider avatar Jul 09 '23 21:07 ValueRaider