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