yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

Dividend Dates not showing up all of the time

Open dmichaels713 opened this issue 3 years ago • 1 comments

When using yf.Ticker(symbol), dividend dates are not showing up all of the time for stocks with dividends, for example MSFT or SRCE.

When this happens, the field ticker.info['lastDividendDate'] simply does not exist. Furthermore, when this happens, ticker.actions does not have the correct list of Dividend dates. Some are randomly missing. This is a huge problem if you're using this module to scan for dividend stocks.

While it does not happen 100% of the time, if you try running yf.Ticker(symbol) many times in a row for the same symbol, you will definitely get this error, so it's easy to replicate.

dmichaels713 avatar Apr 13 '22 15:04 dmichaels713

running yf.Ticker(symbol) many times in a row

Yahoo goes funny when you spam it.

ValueRaider avatar Sep 20 '22 21:09 ValueRaider