Skip to main content
POST
Cancel all of the authenticated user's open orders on an exchange

Authorizations

X-Client-Id
string
header
required

Credential client id (kairos_ck_...). Must be sent together with X-Api-Key and X-Api-Secret.

X-Api-Key
string
header
required

64-char hex API key.

X-Api-Secret
string
header
required

64-char hex API secret.

Body

application/json

Body for POST /orders/cancel-all.

exchange_id
string
required

Venue to cancel all open orders on.

Example:

"polymarket"

user_id
string
deprecated

Ignored. The authenticated caller's id is always used.

market_id
string | null

Optionally scope the cancel-all to a single market/contract id instead of every open order on the exchange.

Response

Cancel-all result. cancelled_count is the venue's authoritative count; cancelled_order_ids lists the local rows actually updated (may be fewer than cancelled_count if some local rows lag).

Response for POST /orders/cancel-all.

cancelled_count
integer
required

Authoritative count of orders the venue reported cancelled.

failed_count
integer
required

Local rows that failed to update to cancelled after the venue confirmed the cancel.

cancelled_order_ids
string[]
required

Internal order ids (as strings) whose local status was updated. May be fewer than cancelled_count if the venue cancelled more than the locally-tracked active set.