Update bitmex_gateway.py

This commit is contained in:
1122455801 2019-06-14 13:15:57 +08:00
parent e55138b80e
commit 8b624df248

View File

@ -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,