Update bitmex_gateway.py
This commit is contained in:
parent
e55138b80e
commit
8b624df248
@ -661,6 +661,9 @@ class BitmexWebsocketApi(WebsocketClient):
|
|||||||
|
|
||||||
def on_position(self, d):
|
def on_position(self, d):
|
||||||
""""""
|
""""""
|
||||||
|
if not d["currentQty"]:
|
||||||
|
return
|
||||||
|
|
||||||
position = PositionData(
|
position = PositionData(
|
||||||
symbol=d["symbol"],
|
symbol=d["symbol"],
|
||||||
exchange=Exchange.BITMEX,
|
exchange=Exchange.BITMEX,
|
||||||
|
Loading…
Reference in New Issue
Block a user