Cancel Order (Combined)
Cancel one open order by either internal orderId or client-provided clientOrderId. HMAC tokens require the trading scope; delegated cancellation also requires delegated_signing.
orderId or the clientOrderId supplied when creating the order.
Provide exactly one identifier. Requests with both identifiers or neither identifier return 400 Bad Request.
DELETE /orders/{orderId} remains supported for existing integrations that cancel only by internal order ID.Authentication
Canceling is not EIP-712 signed. Unlike placing an order, you do not include asignature in the request. Cancellation is an off-chain operation that removes the order from the book.
Use a scoped API token with HMAC signing and the trading scope. No additional scope is needed to cancel your own orders.
Canceling a sub-account’s orders (partner flow)
If you placed an order withonBehalfOf (so it is owned by a managed sub-account, not your partner profile), cancel it through your partner token with the onBehalfOf query parameter:
delegated_signing scope on your partner token. The scope is reused as the authorization gate for acting on a sub-account. It does not mean the order must be server-signed, and it works for EOA sub-accounts that signed their own orders. See Delegated Signing.
Cancellation behavior
- A cancellation can remove a delayed order before execution. This returns
Delayed order canceled successfully. - FAK and FOK orders can be delayed on markets with taker delay. Immediate FAK/FOK orders are generally terminal and no longer cancellable.
- An order that can no longer be canceled returns
400 Bad RequestwithOrder not found or already canceled.
Error distinctions
Authorizations
Scoped API token with HMAC-SHA256 signing. Requires three headers: lmts-api-key (token ID), lmts-timestamp (ISO-8601), lmts-signature (Base64-encoded HMAC). See Authentication docs for details.
Query Parameters
Partner sub-account profile ID. Requires delegated_signing in addition to trading.
x >= 1326
Body
- Option 1
- Option 2
Internal order ID. Provide exactly one of orderId or clientOrderId.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203"
Client-provided order ID from order creation. Provide exactly one of orderId or clientOrderId.
128"partner-order-001"
Response
Order successfully cancelled
Confirmation message for the cancelled order
Order canceled successfully, Delayed order canceled successfully "Order canceled successfully"