Merge pull request #1141 from raycool/dev

[mod] 修复火币中tick和newtick混用错误
This commit is contained in:
vn.py 2018-10-05 10:52:00 +08:00 committed by GitHub
commit 8a42c610bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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