ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
13k stars 2.3k forks source link

Many fundamentals not working #1458

Closed pythonian1027 closed 1 year ago

pythonian1027 commented 1 year ago

I noticed many fundamentals returning empty dataframes or exception errors:

ticker = yf.Ticker("AAPL") ticker.balance_sheet (exception error) ticker.basic_info (empty fields) ticker.calendar (exception error) ticker.cash_flow (exception error) ticker.get_financials (exception error)

error type: Exception: yfinance failed to decrypt Yahoo data response

Thanks,

ChemicalShard commented 1 year ago

I'm in the same boat and was in the same boat last week. This is from a run this morning. Glad it's not just me!

Traceback (most recent call last): File "/Users//PycharmProjects/Stocktwits/Yahoo.py", line 37, in aapl.quarterly_cashflow File "/Users//PycharmProjects/Stocktwits/venv/lib/python3.9/site-packages/yfinance/ticker.py", line 210, in quarterly_cashflow return self.quarterly_cash_flow File "/Users//PycharmProjects/Stocktwits/venv/lib/python3.9/site-packages/yfinance/ticker.py", line 202, in quarterly_cash_flow return self.get_cash_flow(pretty=True, freq='quarterly') File "/Users//PycharmProjects/Stocktwits/venv/lib/python3.9/site-packages/yfinance/base.py", line 1663, in get_cash_flow data = self._fundamentals.financials.get_cash_flow_time_series(freq=freq, proxy=proxy) File "/Users//PycharmProjects/Stocktwits/venv/lib/python3.9/site-packages/yfinance/scrapers/fundamentals.py", line 125, in get_cash_flow_time_series res[freq] = self._fetch_time_series("cash-flow", freq, proxy=None) File "/Users//PycharmProjects/Stocktwits/venv/lib/python3.9/site-packages/yfinance/scrapers/fundamentals.py", line 142, in _fetch_time_series statement = self._create_financials_table(name, timescale, proxy) File "/Users//PycharmProjects/Stocktwits/venv/lib/python3.9/site-packages/yfinance/scrapers/fundamentals.py", line 155, in _create_financials_table keys = self._get_datastore_keys(name, proxy) File "/Users//PycharmProjects/Stocktwits/venv/lib/python3.9/site-packages/yfinance/scrapers/fundamentals.py", line 162, in _get_datastore_keys data_stores = self._data.get_json_data_stores(sub_page, proxy) File "/Users//PycharmProjects/Stocktwits/venv/lib/python3.9/site-packages/yfinance/data.py", line 41, in wrapped return func(args, *kwargs) File "/Users//PycharmProjects/Stocktwits/venv/lib/python3.9/site-packages/yfinance/data.py", line 311, in get_json_data_stores stores = decrypt_cryptojs_aes_stores(data, keys) File "/Users/*/PycharmProjects/Stocktwits/venv/lib/python3.9/site-packages/yfinance/data.py", line 162, in decrypt_cryptojs_aes_stores raise Exception("yfinance failed to decrypt Yahoo data response") Exception: yfinance failed to decrypt Yahoo data response