Skip to main content
DELETE
/
cancel-market-orders
Cancel open orders for a market or asset
curl --request DELETE \
  --url https://clob.kuest.com/cancel-market-orders \
  --header 'Content-Type: application/json' \
  --header 'KUEST_ADDRESS: <kuest_address>' \
  --header 'KUEST_API_KEY: <kuest_api_key>' \
  --header 'KUEST_PASSPHRASE: <kuest_passphrase>' \
  --header 'KUEST_SIGNATURE: <kuest_signature>' \
  --header 'KUEST_TIMESTAMP: <kuest_timestamp>' \
  --data '
{
  "market": "<string>",
  "assetId": "<string>"
}
'
{
  "cancelled": [
    "<string>"
  ],
  "notCanceled": {}
}
Cancel all open orders for a specific market and/or asset.
Cancellation requests require L2 authentication headers: KUEST_ADDRESS, KUEST_SIGNATURE, KUEST_TIMESTAMP, KUEST_API_KEY, and KUEST_PASSPHRASE.
At least one of market or assetId is required. The response always returns HTTP 200 OK. Successful cancellations append the ULIDs to cancelled. If any order cannot be cancelled, it appears in notCanceled with a short reason string.

Request fields

FieldTypeRequiredDescription
marketstringNoCondition ID to cancel orders for.
assetIdstringNoToken ID to cancel orders for.

Response fields

FieldTypeDescription
cancelledstring[]List of order ULIDs successfully cancelled.
notCanceledobjectMap of order IDs that were not cancelled to the reason string.

Headers

KUEST_ADDRESS
string
required

Checksummed wallet address performing the request.

KUEST_API_KEY
string<uuid>
required

API key obtained from the L1 derivation endpoint.

KUEST_PASSPHRASE
string
required

64 character hexadecimal passphrase associated with the API key.

KUEST_TIMESTAMP
string
required

Millisecond epoch timestamp (string) used for freshness checks.

KUEST_SIGNATURE
string
required

Hex-encoded HMAC-SHA256 signature built from the L2 signing string.

Body

application/json
market
string
required

Condition identifier to filter cancellations.

assetId
string

Token identifier to filter cancellations.

Response

Cancel result

cancelled
string[]
required

List of order IDs that were successfully cancelled.

notCanceled
object
required

Map of order IDs to cancellation failure reasons.