diff --git a/vnpy/gateway/bitmex/bitmex_gateway.py b/vnpy/gateway/bitmex/bitmex_gateway.py index 72988f56..4de3a33b 100644 --- a/vnpy/gateway/bitmex/bitmex_gateway.py +++ b/vnpy/gateway/bitmex/bitmex_gateway.py @@ -661,6 +661,9 @@ class BitmexWebsocketApi(WebsocketClient): def on_position(self, d): """""" + if not d["currentQty"]: + return + position = PositionData( symbol=d["symbol"], exchange=Exchange.BITMEX,