[Fix] bug in on_order of BitmexGateway
This commit is contained in:
parent
4c00d191eb
commit
553c4ac858
@ -707,14 +707,15 @@ class BitmexWebsocketApi(WebsocketClient):
|
|||||||
if "ordStatus" not in d:
|
if "ordStatus" not in d:
|
||||||
return
|
return
|
||||||
|
|
||||||
side = d.get("side", "")
|
|
||||||
if not side:
|
|
||||||
return
|
|
||||||
|
|
||||||
# Update local order data
|
# Update local order data
|
||||||
sysid = d["orderID"]
|
sysid = d["orderID"]
|
||||||
order = self.orders.get(sysid, None)
|
order = self.orders.get(sysid, None)
|
||||||
if not order:
|
if not order:
|
||||||
|
# Filter data with no trading side info
|
||||||
|
side = d.get("side", "")
|
||||||
|
if not side:
|
||||||
|
return
|
||||||
|
|
||||||
if d["clOrdID"]:
|
if d["clOrdID"]:
|
||||||
orderid = d["clOrdID"]
|
orderid = d["clOrdID"]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user