diff --git a/vnpy/trader/gateway/huobiGateway/huobiGateway.py b/vnpy/trader/gateway/huobiGateway/huobiGateway.py index 758bb7de..d70192e7 100644 --- a/vnpy/trader/gateway/huobiGateway/huobiGateway.py +++ b/vnpy/trader/gateway/huobiGateway/huobiGateway.py @@ -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) ########################################################################