Cancel Multiple Orders
Type: TRADE
Weight: 1
DELETE /fapi/v1/batchOrders
Cancel several orders of one symbol by id.
Request
DELETE /fapi/v1/batchOrders?symbol=BTCUSDT&orderIdList=%5B%22uuid1%22%2C%22uuid2%22%5D×tamp=<ms>&signature=<hex>
Query params
| Name | Type | Required | Notes |
|---|---|---|---|
symbol | string | yes | All ids must belong to this symbol. |
orderIdList | string | yes | JSON array string, e.g. ["uuid1","uuid2"], passed as one query parameter. Percent-encode [, ], "; the verifier accepts signatures over either the raw or the encoded form. |
origClientOrderIdList is not supported.
Response — 200 — array of order responses (status: "CANCELED") containing only the orders that were actually cancelled. Frozen margin is released per row, including trigger orders.
Errors
| HTTP | code | msg |
|---|---|---|
400 | -1100 | orderIdList is not a JSON array of UUID strings. |
400 | -1102 | Missing symbol / orderIdList. |
Authentication failures (INVALID_API_KEY, API_KEY_DISABLED, IP_NOT_ALLOWED, SIGNATURE_INVALID) apply to every signed endpoint and use Sparky's {"success":false,"error":{...}} envelope; see Error Codes.