跳到主要内容

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&timestamp=<ms>&signature=<hex>

Query params

NameTypeRequiredNotes
symbolstringyesAll ids must belong to this symbol.
orderIdListstringyesJSON 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

HTTPcodemsg
400-1100orderIdList is not a JSON array of UUID strings.
400-1102Missing 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.