yfinance
yfinance copied to clipboard
earnings not working properly
Just tried to call earnings dataframe for ticker: JAV2.F
The data is clearly on the Yahoo Finance website but the function returns an empty DF with the wrong columns.
Can you please tell me how to fix this? Anyone else experiencing this problem?
BTW it is not a stand alone problem - there are more tickers where I experience this.
I have had a quick look and it seems that utils.get_json('https://finance.yahoo.com/quote/JAV2.F/financials') queries yahoo finance and gets an html without any earning data in: _json.loads(json_str)['context']['dispatcher']['stores']['QuoteSummaryStore'] (utils.py line 108)
there might be more information in: _json.loads(json_str)['context']['dispatcher']['stores']['QuoteTimeSeriesStore']['timeSeries'] (utils.py line 112) but not exactly what you're looking for.
To sum up, the issue comes from the data fetched from yahoo instead of yfinance package.
Yes, it is probably not there... the earnings function is not working but you can find the data in de financials function under "total revenue".
There are many issues reported for this I found! Thanks for the quick response and for looking into it!
Correct financials are now available in pre-release version 0.2.0rc4.