From 9b493d609fed340230ef68d4fffdc6b0a61cb53b Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Fri, 5 Jan 2018 15:16:16 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]futuGateway=E8=BF=87=E6=BB=A4=E5=B0=9A?= =?UTF-8?q?=E6=9C=AA=E6=9C=89datetime=E7=9A=84Tick=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/gateway/futuGateway/futuGateway.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vnpy/trader/gateway/futuGateway/futuGateway.py b/vnpy/trader/gateway/futuGateway/futuGateway.py index 320cea4f..58bb19ea 100644 --- a/vnpy/trader/gateway/futuGateway/futuGateway.py +++ b/vnpy/trader/gateway/futuGateway/futuGateway.py @@ -467,8 +467,9 @@ class FutuGateway(VtGateway): d['askPrice%s' %n] = askData[0] d['askVolume%s' %n] = askData[1] - newTick = copy(tick) - self.onTick(newTick) + if tick.datetime: + newTick = copy(tick) + self.onTick(newTick) #---------------------------------------------------------------------- def processOrder(self, data):