Cancel all of a user's orders in a specific market
Trading
Cancel All Orders
Cancel every LIVE order for a market slug or every child market of a group slug. A request with no matching LIVE orders succeeds as a no-op. HMAC tokens require the trading scope; delegated cancellation also requires delegated_signing.
DELETE
Cancel all of a user's orders in a specific market
Cancel every LIVE order owned by the authenticated profile for a market or market group.
The required
slug path parameter accepts either a market slug or a group slug. For a group, cancellation fans out across all child markets and combines their results.
Authentication and delegation
Use a scoped API token with HMAC signing and thetrading scope. To cancel for a partner sub-account, add ?onBehalfOf=<subProfileId>; the target must belong to the authenticated partner and the token must also have delegated_signing. Include the query string in the HMAC-signed path.
Results
The operation is idempotent. If there are no LIVE orders to cancel, it returns200 OK with { "message": "Orders canceled successfully" } and omits canceled.
200 OKmeans all matching orders were canceled, or there were no matching LIVE orders.207 Multi-Statusreturns both canceled IDs and normalized failures across the market or group.400 Bad RequestwithFailed to cancel any ordersmeans every attempted cancellation failed.404 No entity found by slugmeans the slug matches neither a market nor a group.
ORDER_NOT_FOUND with Order not found or already canceled, or UNKNOWN_ERROR with Failed to cancel order. Cancellation remains available in normal, post_only, and cancel_only; disabled returns 425 Too Early.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.
Path Parameters
Market or market-group slug
Example:
"btc-above-100k"
Query Parameters
Partner sub-account profile ID. Requires delegated_signing in addition to trading.
Required range:
x >= 1Example:
326