[Fix]futuGateway过滤尚未有datetime的Tick推送

This commit is contained in:
vn.py 2018-01-05 15:16:16 +08:00
parent b486658fb0
commit 9b493d609f

View File

@ -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):