binance: order submission "user id" is not the same as their internal `int` one..

basic_buy_bot
Tyler Goodlet 2023-06-17 14:43:54 -04:00
parent 60b0b721c5
commit 45ded4f2d1
1 changed files with 5 additions and 3 deletions

View File

@ -661,10 +661,12 @@ class Client:
signed=True,
action='post'
)
reqid: str = resp['orderId']
if oid:
assert oid == reqid
# ensure our id is tracked by them
if oid:
assert oid == resp['clientOrderId']
reqid: str = resp['orderId']
return reqid
async def submit_cancel(