fix newtick and tick bug

This commit is contained in:
huguanghui 2018-09-28 19:54:23 +08:00
parent fe3b16c1b2
commit bb694e3890

View File

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