At #1, specify a unique ID to newClientOrderId
At #2, instead of relying on response, listen to user data stream and check the status of that order (use the ID you specified at #1 to identify the order)
As the document said “same newClientOrderId can be accepted only when the previous one is filled, otherwise the order will be rejected.”
Binance won’t reject the duplicate order if the previous one is filled. In the case of market order, which may filled in seconds, newClientOrderId won’t help much.
I’m wondering if there is a more effective way to avoid duplicate order. @MJW
hi, i just placed a market spot order, but it got executed twice.
i use node , and node-binance-api module for this. pls help me how to stop binance from duplicating my orders.