From 0e9eaa2e1ecf1f9b4ea57fb327a23e8206a1498b Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sat, 15 Jul 2017 18:11:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9DataRecorder=E7=9A=84?= =?UTF-8?q?=E5=88=86=E9=92=9F=E7=BA=BF=E6=97=B6=E9=97=B4=E6=88=B3=E4=B8=BA?= =?UTF-8?q?=E4=B8=8D=E5=B8=A6second=E5=92=8Cmicrosecond?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/app/dataRecorder/drEngine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/trader/app/dataRecorder/drEngine.py b/vnpy/trader/app/dataRecorder/drEngine.py index 63a20e57..345f690c 100644 --- a/vnpy/trader/app/dataRecorder/drEngine.py +++ b/vnpy/trader/app/dataRecorder/drEngine.py @@ -247,7 +247,7 @@ class DrEngine(object): bar.date = tick.date bar.time = tick.time - bar.datetime = tick.datetime + bar.datetime = tick.datetime.replace(second=0, microsecond=0) bar.volume = tick.volume bar.openInterest = tick.openInterest # 否则继续累加新的K线