diff --git a/piker/brokers/binance/api.py b/piker/brokers/binance/api.py index ae6573049..fc34ba29f 100644 --- a/piker/brokers/binance/api.py +++ b/piker/brokers/binance/api.py @@ -661,10 +661,12 @@ async def submit_limit( signed=True, action='post' ) - reqid: str = resp['orderId'] + + # ensure our id is tracked by them if oid: - assert oid == reqid + assert oid == resp['clientOrderId'] + reqid: str = resp['orderId'] return reqid async def submit_cancel(