From b9af8828007d81f8308793612c10f1ff37d4f583 Mon Sep 17 00:00:00 2001 From: Edanflame <237397488@qq.com> Date: Fri, 8 Jul 2022 14:06:13 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=BD=93=E6=97=A5=E5=88=86=E9=92=9F=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy_tushare/tushare_datafeed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy_tushare/tushare_datafeed.py b/vnpy_tushare/tushare_datafeed.py index 558d0ed..2d0c87e 100644 --- a/vnpy_tushare/tushare_datafeed.py +++ b/vnpy_tushare/tushare_datafeed.py @@ -121,8 +121,8 @@ def query_bar_history(self, req: HistoryRequest) -> Optional[List[BarData]]: symbol: str = req.symbol exchange: Exchange = req.exchange interval: Interval = req.interval - start: datetime = req.start.strftime("%Y%m%d") - end: datetime = req.end.strftime("%Y%m%d") + start: datetime = req.start.strftime("%Y-%m-%d %H:%M:%S") + end: datetime = req.end.strftime("%Y-%m-%d %H:%M:%S") ts_symbol: str = to_ts_symbol(symbol, exchange) if not ts_symbol: