ValueRaider
ValueRaider
This is caused by Yahoo, they think 0 volume occurred in that first hour. E.g. look at their interactive chart with hour candles.
Check out this PR, it might solve your problem: https://github.com/ranaroussi/yfinance/pull/776
Another PR around the same time addresses this same problem - https://github.com/ranaroussi/yfinance/pull/776 . @EpsilonTal can you experiment with both and give opinion on which is better? Also both ignore quarterly,...
Update: #776 has been merged into `dev` branch, so will soon ship in a PIP release.
Is marketCap the only difference in info? If there's a *lot* of differences then indicates Yahoo didn't "like" the request, maybe you triggered spam detection with the list of tickers?
colab must be caching the bad data, can you clear it?
Only time I've encountered this is when I am spamming Yahoo (looping over many tickers). But after some time AFK a repeat query returns good data. So it is odd...
Actually, before you use that code can you try using latest main instead? It has optimised `info` creation, might help. Instructions: https://github.com/yfinance-fork-team/yfinance-x/discussions/14
Since my last response those fixes have been pushed into PIP. Can you try latest release?
download() is actually returning a Dataframe in both cases. You are then accessing a single column 'Close', you are creating the problem.