Open lucas03 opened 1 year ago
maybe just replace self._earnings
with self._fundamentals.earnings
?
While using the stock.info['financialCurrency'] command, I am getting this error: KeyError: 'financialCurrency' Has finance changed its structure? PS: I used this same command a few months back and it was working just fine.
@lucas03 Maybe submit a pull request?
@suhaskashyaps You're issue is different, you should submit a new Issue. But first double-check bug because I can't reproduce.
As I am not familiar with yfinance, I thought somebody would just say my random suggestion won't work because of ... I'll try pull request if I get some time for it 👍
You're thinking right area. But I'd question why it's trying to add currency in first place - inspect GitHub blame, who added it and why.
Are you up-to-date?
yes
Does Yahoo actually have the data?
No
Are you spamming Yahoo?
No
Still think it's a bug?
Delete this default message and submit your bug report here, providing the following as best you can:
I guess
self._earnings
is not expected to be None by this code?