Skip to main content
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 the trading 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 returns 200 OK with { "message": "Orders canceled successfully" } and omits canceled.
  • 200 OK means all matching orders were canceled, or there were no matching LIVE orders.
  • 207 Multi-Status returns both canceled IDs and normalized failures across the market or group.
  • 400 Bad Request with Failed to cancel any orders means every attempted cancellation failed.
  • 404 No entity found by slug means the slug matches neither a market nor a group.
Cancellation failures use 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

lmts-api-key
string
header
required

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

slug
string
required

Market or market-group slug

Example:

"btc-above-100k"

Query Parameters

onBehalfOf
integer

Partner sub-account profile ID. Requires delegated_signing in addition to trading.

Required range: x >= 1
Example:

326

Response

All orders successfully cancelled

message
string
required

Confirmation message for cancelling all orders

Example:

"Orders canceled successfully"

canceled
string<uuid>[]

Array of successfully cancelled order IDs

Example:
failed
object[]

Array of orders that failed to cancel with reasons