Skip to content

Commit

Permalink
binance: order submission "user id" is not the same as their internal…
Browse files Browse the repository at this point in the history
… `int` one..
  • Loading branch information
goodboy committed Jun 17, 2023
1 parent b739c4a commit 0300631
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions piker/brokers/binance/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0300631

Please sign in to comment.