Closed s-weissbach closed 2 years ago
Issue seems to be at TickerBase._get_fundamentals line 524 when trying to build a data frame from the loaded data['annualBasicAverageShares'] which is as follows:
[{'dataId': 29010, 'asOfDate': '2018-09-30', 'periodType': '12M', 'currencyCode': 'USD', 'reportedValue': 19821508000}, {'dataId': 29010, 'asOfDate': '2019-09-30', 'periodType': '12M', 'currencyCode': 'USD', 'reportedValue': 18471336000}, {'dataId': 29010, 'asOfDate': '2020-09-30', 'periodType': '12M', 'currencyCode': 'USD', 'reportedValue': 17352119000}, None]
The last element None is the one blocking the creation of the dataframe and thus the assignment to self._shares.
Could be fixed by removing the None element.
I've noticed, that the get_shares() method does not work for AAPL. It returns nothing (no errors).
The information can be found on yahoo (https://finance.yahoo.com/quote/AAPL/financials?p=AAPL) When I try the command with TSLA, it works fine.
It returns:
as it can be found here (https://finance.yahoo.com/quote/TSLA/financials?p=TSLA) How can I fix this?