yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

Date range not consistant

Open edisomsz opened this issue 3 years ago • 1 comments

Hello, I have a date inconsistency

all_tickers_list = ["ACP.WA", "AAPL"]
df = yf.download(all_tickers_list, start = "2022-03-30")
data = df['Close']

gives:

                  AAPL     ACP.WA
Date
2022-03-29  178.960007        NaN
2022-03-30  177.770004  80.849998
2022-03-31  176.759995  80.650002

When data is downloaded separately ACP.WA starts properly on 30, whereas AAPL starts on 29. What could be the case?

edisomsz avatar Mar 31 '22 15:03 edisomsz

I'm testing a timezone fix, it should address your issue: https://github.com/ValueRaider/yfinance/tree/fix/timezone

You'll have to play with sys.path.insert to load this over PIP. Give it a play.

ValueRaider avatar Jun 16 '22 19:06 ValueRaider

Fix is now in PIP

ValueRaider avatar Oct 27 '22 22:10 ValueRaider