fix newtick and tick bug
This commit is contained in:
parent
fe3b16c1b2
commit
bb694e3890
@ -288,7 +288,7 @@ class HuobiDataApi(DataApi):
|
||||
|
||||
if tick.lastPrice:
|
||||
newtick = copy(tick)
|
||||
self.gateway.onTick(tick)
|
||||
self.gateway.onTick(newtick)
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
def onTradeDetail(self, data):
|
||||
@ -318,7 +318,7 @@ class HuobiDataApi(DataApi):
|
||||
|
||||
if tick.bidPrice1:
|
||||
newtick = copy(tick)
|
||||
self.gateway.onTick(tick)
|
||||
self.gateway.onTick(newtick)
|
||||
|
||||
|
||||
########################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user