ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
14.89k stars 2.44k forks source link

New: repair bad dividends and div-adjusts. Plus other repair fixes. #2031

Closed ValueRaider closed 3 months ago

ValueRaider commented 3 months ago

The new dividend repair logic looks for too big/small dividends/adjusts. Because it analyses prices, it needs prices to be consistent - this means for some exchanges, prices are converted to major currency e.g. pence -> £. These exchanges are: .L, .TA, .JO Also, multiday intervals are created by resampling adjusted 1d intervals.

Related change: _fix_prices_sudden_change() now fixes dividends with prices

Other repair fixes: