delete https://api-glb.sim.hashkeydev.com/api/v1/spot/cancelOrderByIds
Cancel orders in batches according to order ID (Maximum of 100 orders in a single batch)
Frequency Limit Type: Weight: 1
Note: A return code of 0
from the code indicates that the cancel order request has been executed. To determine if it was successful, you need to check the results in the result
field. If the result
is null, it means all were successful. If it is non empty, theorderId
represents the ID of the order that failed to cancel, and code
represents the reason for the cancellation failure.
Request Parameters
PARAMETER | TYPE | Req'd | Example values | DESCRIPTION |
---|---|---|---|---|
ids | STRING | Y | 202212231234567895,202212231234567896 | Order id (multiple, separated) |
timestamp | LONG | Y | 1714311403031 | Timestamp |
Response Content
PARAMETER | TYPE | Example values | DESCRIPTION |
---|---|---|---|
code | STRING | 0 | 0 is executed |
result | Object Array | Return the result | |
result.orderId | INTEGER | 16880363408511681 | Order ID |
result.code | STRING | -2013 | Return error code for each order (For unsuccessful order) |