delete https://api-pro.sim.hashkeydev.com/api/v1/spot/cancelOrderByIds
Cancel orders in batches according to order IDs (Maximum of 100 orders in a single batch)
- Weight 5
- Upper Limit: 100 orders/ batch
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, the orderId 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 | 0000 | 0000 is executed |
| result | Object Array | Return the result | |
| result.orderId | LONG | 16880363408511681 | Order ID |
| result.code | INTEGER | -2013 | Return error code for each order (For unsuccessful order) |