From 904895899a4d3e8b024d343ab9a71da86baae432 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 6 Sep 2018 14:23:33 +0800 Subject: [PATCH] [Fix]Close #1089 --- vnpy/trader/gateway/bitmexGateway/bitmexGateway.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py b/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py index 5341d86f..1e26e306 100644 --- a/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py +++ b/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py @@ -364,6 +364,7 @@ class WebsocketApi(BitmexWebsocketApi): tick.date = date.replace('-', '') tick.time = time.replace('Z', '') + tick = copy(tick) self.gateway.onTick(tick) #---------------------------------------------------------------------- @@ -388,6 +389,7 @@ class WebsocketApi(BitmexWebsocketApi): tick.date = date.replace('-', '') tick.time = time.replace('Z', '') + tick = copy(tick) self.gateway.onTick(tick) #----------------------------------------------------------------------