Skip to main content
POST
Cancel a single order

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.

Path Parameters

order_id
string<uuid>
required

Internal Kairos order id.

Response

Cancel outcome. Check success — a 200 does not guarantee the order was actually cancelled (see description).

Response for POST /orders/{order_id}/cancel. Returned with HTTP 200 even when success is false.

success
boolean
required

Whether cancellation and terminal fill verification are both complete. A venue DELETE acknowledgement alone still returns false while verification is pending.

order_id
string<uuid>
required
venue_reconciled
boolean
required

True only when a venue-final snapshot was observed and its exact cumulative fill has passed through Kairos' position fold. Currently authoritative for Kalshi.

message
string

Human-readable outcome detail, e.g. "Order cancelled on exchange" or "Order is being submitted to exchange. Please try again in a moment."

filled_quantity
string | null

Total cumulative filled quantity, decimal string, when terminal verification is complete. Omitted while pending or unknown; do not infer omitted as zero. The durable receipt repeats this exact cumulative in final_filled_quantity.

avg_fill_price
string | null

Average fill price (decimal, 0..1) of any portion that filled before the cancel landed. Omitted when nothing filled or unknown.

reconciled_position
object | null

Exact post-fold position authority. A reconciled order may omit this object, either because nothing filled or because the durable position projection could not be proven within the cancel budget; the cancel itself is still confirmed. Omission is never proof that the portfolio is flat.

terminal_fill_verification
object | null

Pending or completed durable receipt for the exact venue-order generation. A pending response is not a confirmed cancellation even when the venue acknowledged DELETE.