From bb694e38909edbd5bfac5ad6868660b94459053b Mon Sep 17 00:00:00 2001 From: huguanghui Date: Fri, 28 Sep 2018 19:54:23 +0800 Subject: [PATCH] fix newtick and tick bug --- vnpy/trader/gateway/huobiGateway/huobiGateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ########################################################################