Hello Everyone
Has anyone seen this error running the Fundamental (#7) notebook in the “Getting Market Data….” Module?
Define the yfinance stock ticker
stock_yf_ticker = yf.Ticker(‘AAPL’)
Get the quarterly income statement from yfinance
income_data_yfinance = stock_yf_ticker.quarterly_income_stmt.T
income_data_yfinance.
.
.
File ~/.conda/envs/quantra_py/lib/python3.9/site-packages/yfinance/data.py:311, in TickerData.get_json_data_stores(self, sub_page, proxy)
308 keys += response_gh.text.splitlines()
310 # Decrypt!
–> 311 stores = decrypt_cryptojs_aes_stores(data, keys)
312 if stores is None:
313 # Maybe Yahoo returned old format, not encrypted
314 if "context" in data and "dispatcher" in data["context"]:
File ~/.conda/envs/quantra_py/lib/python3.9/site-packages/yfinance/data.py:162, in decrypt_cryptojs_aes_stores(data, keys)
160 pass
161 if not success:
–> 162 raise Exception("yfinance failed to decrypt Yahoo data response")
164 decoded_stores = json.loads(plaintext)
165 return decoded_stores
Exception: yfinance failed to decrypt Yahoo data response
The error message is rather terse