From bb477989d4d4e19d3d8e1ac57c4f5d86b168a6e9 Mon Sep 17 00:00:00 2001 From: Value Raider Date: Tue, 21 Mar 2023 18:52:35 +0000 Subject: [PATCH] Fix price-events merge when occurred pre-market --- yfinance/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yfinance/base.py b/yfinance/base.py index 1e67362c8..0cb0cc568 100644 --- a/yfinance/base.py +++ b/yfinance/base.py @@ -768,7 +768,7 @@ def history(self, period="1mo", interval="1d", if capital_gains is not None: capital_gains = utils.set_df_tz(capital_gains, interval, tz_exchange) if start is not None: - startDt = quotes.index[0] + startDt = quotes.index[0].floor('D') if dividends is not None: dividends = dividends.loc[startDt:] if capital_gains is not None: