From 9a1a548900d8f6bcae00d172bdd6b9cf7e3fc10d Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 16 Nov 2017 11:13:18 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=E4=BF=AE=E5=A4=8D=E5=AF=8C=E9=80=94?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=A1=8C=E6=83=85=E6=97=B6=E9=97=B4=E6=88=B3?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/gateway/futuGateway/futuGateway.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vnpy/trader/gateway/futuGateway/futuGateway.py b/vnpy/trader/gateway/futuGateway/futuGateway.py index 830aa380..f938065e 100644 --- a/vnpy/trader/gateway/futuGateway/futuGateway.py +++ b/vnpy/trader/gateway/futuGateway/futuGateway.py @@ -425,8 +425,9 @@ class FutuGateway(VtGateway): tick.gatewayName = self.gatewayName self.tickDict[symbol] = tick - tick.date = row['data_date'] + tick.date = row['data_date'].replace('-', '') tick.time = row['data_time'] + tick.datetime = datetime.strptime(' '.join([tick.date, tick.time]), '%Y%m%d %H:%M:%S.%f') tick.openPrice = row['open_price'] tick.highPrice = row['high_price']