ValueRaider
ValueRaider
Patch in branch `fix/peewee-db-malformed`, can you try? #1080
Hard to answer without Yahoo's source code. Can you get a third opinion from other source e.g. Morning Star?
The adjustment from a dividend is 1.0 - [ dividend / close day before ] . Accumulate them by multiplying. Any differences are rounding errors.
> Instead of discounting the price, the base unit (1 share) increases by the multiplier, base unit * (1 + (div/close)). Valid way to adjust but Yahoo does reverse.
Adding dividends to the *adjusted* price is total nonsense.
It's still total nonsense btw. ``` stock_data = yf.Ticker(ticker) hist = stock_data.history(start=start_date, end=end_date, auto_adjust=True) hist['Close'].iloc[-1] / hist['Close'].iloc[0] ``` That's your total return. That's it.
You need to ask Yahoo not yfinance, Yahoo calculates AdjClose in price history table
It is technically possible to only import when user not provided a session, but Yahoo is rejecting requests without `curl_cffi`. Have you found an alternative?
[TLS fingerprinting](https://github.com/ranaroussi/yfinance/issues/2422#issuecomment-2840759533)
What scenario isn't covered by this: > threads = min([len(tickers), _multitasking.cpu_count() * 2])