Skip to content

Commit 0300631

Browse files
committed
binance: order submission "user id" is not the same as their internal int one..
1 parent b739c4a commit 0300631

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

piker/brokers/binance/api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,12 @@ async def submit_limit(
661661
signed=True,
662662
action='post'
663663
)
664-
reqid: str = resp['orderId']
664+
665+
# ensure our id is tracked by them
665666
if oid:
666-
assert oid == reqid
667+
assert oid == resp['clientOrderId']
667668

669+
reqid: str = resp['orderId']
668670
return reqid
669671

670672
async def submit_cancel(

0 commit comments

Comments
 (0)