AntoineV

Results 13 comments of AntoineV

I think that the issue comes from 2 lines : - https://github.com/ranaroussi/yfinance/blob/ec6279736b570815ec017691b428c90d910b1739/yfinance/base.py#L289 - https://github.com/ranaroussi/yfinance/blob/ec6279736b570815ec017691b428c90d910b1739/yfinance/base.py#L320 which remove the times where the values are equal to null instead of keeping them.

It seems that the issue comes from that yfinance.utils.get_json("https://finance.yahoo.com/quote/ASMl.AS/analysis") or yfinance.utils.get_json("https://finance.yahoo.com/quote/ASMl.AS/") don't return anything for the recommendations. 'upgradeDowngradeHistory' is the name used to store the recommendations there. What is displayed...

It seems possible with utils.get_json(ticker_url + '/components', proxy, self.session) and then more specifically by extracting the components with data['components']['components'] at yfinance.utils line 108.