[Fix]futuGateway过滤尚未有datetime的Tick推送
This commit is contained in:
parent
b486658fb0
commit
9b493d609f
@ -467,8 +467,9 @@ class FutuGateway(VtGateway):
|
|||||||
d['askPrice%s' %n] = askData[0]
|
d['askPrice%s' %n] = askData[0]
|
||||||
d['askVolume%s' %n] = askData[1]
|
d['askVolume%s' %n] = askData[1]
|
||||||
|
|
||||||
newTick = copy(tick)
|
if tick.datetime:
|
||||||
self.onTick(newTick)
|
newTick = copy(tick)
|
||||||
|
self.onTick(newTick)
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
def processOrder(self, data):
|
def processOrder(self, data):
|
||||||
|
Loading…
Reference in New Issue
Block a user