Cancels one order by internal id. Polymarket cancellation is an L2 API-key (HMAC) operation on the venue side, so no EOA/wallet signature is required — this works identically for custodial and self-custody orders.
This endpoint almost always returns 200, even on failure to cancel.success: false with a message covers: the order is already terminal (filled/cancelled/expired/failed), or the venue currently refuses the cancel (still live — retry). Non-2xx status codes are reserved for auth/ownership/not-found/infrastructure failures, not “the cancel didn’t happen.”
Cancel-before-submit race. If the order hasn’t reached the exchange yet (still pending/queued), it is cancelled locally via an atomic conditional update that races safely against the in-flight submission. If the submission wins that race (order mid-submission), the response is success: false asking the caller to retry shortly.
Fill-during-cancel. A venue acknowledgement is followed by terminal fill verification. Until the response carries terminal_fill_verification.state: complete, it returns success: false and consumers must keep protection active. The completed receipt’s final_filled_quantity is the authoritative venue cumulative (never the latest fill delta), including explicit zero, and is published only after the corresponding Trade/Position fold. Kalshi may complete this barrier synchronously; other venues normally complete through the polling worker and expose the retained receipt on retry or GET /orders/{order_id}.
Auth & scope. Requires trade:execute and ownership of the order (403 otherwise).
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.
Show child attributes
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.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Kairos","colors":{"primary":"#807dfe","light":"#6d6ae0","dark":"#a5a3ff"},"logo":{"light":"https://mintcdn.com/kairos-c5456474/JzYk92-enXUuMl0B/logo/kairos-wing.png?fit=max\u0026auto=format\u0026n=JzYk92-enXUuMl0B\u0026q=85\u0026s=c7c397bb87847c7f0e27019d68594bff","dark":"https://mintcdn.com/kairos-c5456474/JzYk92-enXUuMl0B/logo/wordmark.png?fit=max\u0026auto=format\u0026n=JzYk92-enXUuMl0B\u0026q=85\u0026s=8f2796ccf6273359a7ad0713bc86686d"},"favicon":"https://mintcdn.com/kairos-c5456474/JzYk92-enXUuMl0B/logo/kairos-wing.png?fit=max\u0026auto=format\u0026n=JzYk92-enXUuMl0B\u0026q=85\u0026s=c7c397bb87847c7f0e27019d68594bff","appearance":{"default":"dark"},"background":{"color":{"light":"#ffffff","dark":"#0a0a0f"}},"navbar":{"primary":{"type":"button","label":"Launch App","href":"https://app.kairos.trade"}},"contextual":{"options":["copy","view","download-spec","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kairos-c5456474","hasAudioNarration":false,"actualSubdomain":"kairos-c5456474","customDomains":["docs.kairos.trade"],"gitSource":{"type":"github","owner":"kairoslive","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b087e835972eb552bea8580","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"API Reference","count":146},{"language":"default","tag":"Data API","count":76},{"language":"default","tag":"Execution API","count":59},{"language":"default","tag":"Partner API","count":39},{"language":"default","tag":"Trading API","count":27},{"language":"default","tag":"Markets","count":22},{"language":"default","tag":"Market Data","count":21},{"language":"default","tag":"Endpoints","count":19},{"language":"default","tag":"Documentation","count":18},{"language":"default","tag":"Onboarding","count":18}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/execution/orders/cancel-a-single-order","slug":"/api-reference/execution/orders/cancel-a-single-order","pageMetadata":{"title":"Cancel a single order","description":"Cancels one order by internal id. Polymarket cancellation is an L2 API-key (HMAC) operation on the venue side, so no EOA/wallet signature is required — this works identically for custodial and self-custody orders.\n**This endpoint almost always returns `200`, even on failure to cancel.** `success: false` with a `message` covers: the order is already terminal (filled/cancelled/expired/failed), or the venue currently refuses the cancel (still live — retry). Non-2xx status codes are reserved for auth/ownership/not-found/infrastructure failures, not \"the cancel didn't happen.\"\n**Cancel-before-submit race.** If the order hasn't reached the exchange yet (still `pending`/`queued`), it is cancelled locally via an atomic conditional update that races safely against the in-flight submission. If the submission wins that race (order mid-submission), the response is `success: false` asking the caller to retry shortly.\n**Fill-during-cancel.** A venue acknowledgement is followed by terminal fill verification. Until the response carries `terminal_fill_verification.state: complete`, it returns `success: false` and consumers must keep protection active. The completed receipt's `final_filled_quantity` is the authoritative venue cumulative (never the latest fill delta), including explicit zero, and is published only after the corresponding Trade/Position fold. Kalshi may complete this barrier synchronously; other venues normally complete through the polling worker and expose the retained receipt on retry or `GET /orders/{order_id}`.\n**Auth \u0026 scope.** Requires `trade:execute` and ownership of the order (`403` otherwise).","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /orders/{order_id}/cancel","href":"/api-reference/execution/orders/cancel-a-single-order","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Cancels one order by internal id. Polymarket cancellation is an L2 API-key (HMAC) operation on the venue side, so no EOA/wallet signature is required — this works identically for custodial and self-custody orders.\\n\", _jsxs(_components.strong, {\n children: [\"This endpoint almost always returns \", _jsx(_components.code, {\n children: \"200\"\n }), \", even on failure to cancel.\"]\n }), \" \", _jsx(_components.code, {\n children: \"success: false\"\n }), \" with a \", _jsx(_components.code, {\n children: \"message\"\n }), \" covers: the order is already terminal (filled/cancelled/expired/failed), or the venue currently refuses the cancel (still live — retry). Non-2xx status codes are reserved for auth/ownership/not-found/infrastructure failures, not “the cancel didn’t happen.”\\n\", _jsx(_components.strong, {\n children: \"Cancel-before-submit race.\"\n }), \" If the order hasn’t reached the exchange yet (still \", _jsx(_components.code, {\n children: \"pending\"\n }), \"/\", _jsx(_components.code, {\n children: \"queued\"\n }), \"), it is cancelled locally via an atomic conditional update that races safely against the in-flight submission. If the submission wins that race (order mid-submission), the response is \", _jsx(_components.code, {\n children: \"success: false\"\n }), \" asking the caller to retry shortly.\\n\", _jsx(_components.strong, {\n children: \"Fill-during-cancel.\"\n }), \" A venue acknowledgement is followed by terminal fill verification. Until the response carries \", _jsx(_components.code, {\n children: \"terminal_fill_verification.state: complete\"\n }), \", it returns \", _jsx(_components.code, {\n children: \"success: false\"\n }), \" and consumers must keep protection active. The completed receipt’s \", _jsx(_components.code, {\n children: \"final_filled_quantity\"\n }), \" is the authoritative venue cumulative (never the latest fill delta), including explicit zero, and is published only after the corresponding Trade/Position fold. Kalshi may complete this barrier synchronously; other venues normally complete through the polling worker and expose the retained receipt on retry or \", _jsx(_components.code, {\n children: \"GET /orders/{order_id}\"\n }), \".\\n\", _jsx(_components.strong, {\n children: \"Auth \u0026 scope.\"\n }), \" Requires \", _jsx(_components.code, {\n children: \"trade:execute\"\n }), \" and ownership of the order (\", _jsx(_components.code, {\n children: \"403\"\n }), \" otherwise).\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cancel a single order","description":"Cancels one order by internal id. Polymarket cancellation is an L2 API-key (HMAC) operation on the venue side, so no EOA/wallet signature is required — this works identically for custodial and self-custody orders.\n**This endpoint almost always returns `200`, even on failure to cancel.** `success: false` with a `message` covers: the order is already terminal (filled/cancelled/expired/failed), or the venue currently refuses the cancel (still live — retry). Non-2xx status codes are reserved for auth/ownership/not-found/infrastructure failures, not \"the cancel didn't happen.\"\n**Cancel-before-submit race.** If the order hasn't reached the exchange yet (still `pending`/`queued`), it is cancelled locally via an atomic conditional update that races safely against the in-flight submission. If the submission wins that race (order mid-submission), the response is `success: false` asking the caller to retry shortly.\n**Fill-during-cancel.** A venue acknowledgement is followed by terminal fill verification. Until the response carries `terminal_fill_verification.state: complete`, it returns `success: false` and consumers must keep protection active. The completed receipt's `final_filled_quantity` is the authoritative venue cumulative (never the latest fill delta), including explicit zero, and is published only after the corresponding Trade/Position fold. Kalshi may complete this barrier synchronously; other venues normally complete through the polling worker and expose the retained receipt on retry or `GET /orders/{order_id}`.\n**Auth \u0026 scope.** Requires `trade:execute` and ownership of the order (`403` otherwise).","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /orders/{order_id}/cancel","href":"/api-reference/execution/orders/cancel-a-single-order","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"cancelOrder","summary":"Cancel a single order","description":"Cancels one order by internal id. Polymarket cancellation is an L2 API-key (HMAC) operation on the venue side, so no EOA/wallet signature is required — this works identically for custodial and self-custody orders.\n**This endpoint almost always returns `200`, even on failure to cancel.** `success: false` with a `message` covers: the order is already terminal (filled/cancelled/expired/failed), or the venue currently refuses the cancel (still live — retry). Non-2xx status codes are reserved for auth/ownership/not-found/infrastructure failures, not \"the cancel didn't happen.\"\n**Cancel-before-submit race.** If the order hasn't reached the exchange yet (still `pending`/`queued`), it is cancelled locally via an atomic conditional update that races safely against the in-flight submission. If the submission wins that race (order mid-submission), the response is `success: false` asking the caller to retry shortly.\n**Fill-during-cancel.** A venue acknowledgement is followed by terminal fill verification. Until the response carries `terminal_fill_verification.state: complete`, it returns `success: false` and consumers must keep protection active. The completed receipt's `final_filled_quantity` is the authoritative venue cumulative (never the latest fill delta), including explicit zero, and is published only after the corresponding Trade/Position fold. Kalshi may complete this barrier synchronously; other venues normally complete through the polling worker and expose the retained receipt on retry or `GET /orders/{order_id}`.\n**Auth \u0026 scope.** Requires `trade:execute` and ownership of the order (`403` otherwise).","tags":["Orders"],"x-kairos-auth":"api-key","x-kairos-scope":"trade:execute","parameters":["100e7715-14f7-4e18-9004-12a214dafb53"],"responses":{"200":"fda26fa0-b7ec-418e-84e0-b67d00c7b3b2","400":"d7ce57dd-d975-4107-a806-8561f6c70325","401":"876b4565-108c-44e9-b6d7-ee84e1f12d51","403":"fbd6c646-365e-4acd-aed9-15c886bfe445","404":"2e7bed8e-4f88-4db4-a2d6-83161a58793f","500":"75e344b3-7d48-4d9e-88e7-3cb9a02cd892","503":"59957c91-d0fa-4d5c-8959-ccbca5f28097"},"method":"post","type":"path","servers":["9bc67f8e-5181-4b03-98cf-fbceabe854b0","cb0a88b3-acda-4eb3-bea7-b35af48f7eef"],"security":["afbc5e7f-7bd5-481d-8e49-e1f1c9a9669a"],"path":"/orders/{order_id}/cancel","baseUrlOptions":["https://execution.kairos.trade","https://staging-execution.kairos.trade"],"title":"Cancel a single order","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"100e7715-14f7-4e18-9004-12a214dafb53":{"name":"order_id","in":"path","required":true,"description":"Internal Kairos order id.","schema":{"type":"string","format":"uuid","isRequired":true,"description":"Internal Kairos order id.","uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"responses":{"fda26fa0-b7ec-418e-84e0-b67d00c7b3b2":{"description":"Cancel outcome. Check `success` — a `200` does not guarantee the order was actually cancelled (see description).","content":{"application/json":{"schema":{"type":"object","description":"Response for `POST /orders/{order_id}/cancel`. Returned with HTTP 200 even when `success` is `false`.","required":["success","order_id","venue_reconciled"],"properties":{"success":{"type":"boolean","description":"Whether cancellation and terminal fill verification are both complete. A venue DELETE acknowledgement alone still returns false while verification is pending.","isRequired":true,"uniqueKey":"success","typeLabel":"boolean"},"order_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"order_id","typeLabel":"string\u003cuuid>"},"venue_reconciled":{"type":"boolean","description":"True only when a venue-final snapshot was observed and its exact cumulative fill has passed through Kairos' position fold. Currently authoritative for Kalshi.","isRequired":true,"uniqueKey":"venue_reconciled","typeLabel":"boolean"},"message":{"type":"string","description":"Human-readable outcome detail, e.g. \"Order cancelled on exchange\" or \"Order is being submitted to exchange. Please try again in a moment.\"","uniqueKey":"message","typeLabel":"string"},"filled_quantity":{"oneOf":[{"type":"string","description":"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`.","uniqueKey":"filled_quantity.oneOf.0","typeLabel":"string"},{"type":"null","description":"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`.","uniqueKey":"filled_quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"filled_quantity","typeLabel":"string | null"},"avg_fill_price":{"oneOf":[{"type":"string","description":"Average fill price (decimal, 0..1) of any portion that filled before the cancel landed. Omitted when nothing filled or unknown.","uniqueKey":"avg_fill_price.oneOf.0","typeLabel":"string"},{"type":"null","description":"Average fill price (decimal, 0..1) of any portion that filled before the cancel landed. Omitted when nothing filled or unknown.","uniqueKey":"avg_fill_price.oneOf.1","typeLabel":"null"}],"uniqueKey":"avg_fill_price","typeLabel":"string | null"},"reconciled_position":{"oneOf":[{"type":"object","description":"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.","required":["exchange_id","market_id","token_id","outcome","net_size","base_established","market_resolved"],"properties":{"exchange_id":{"type":"string","description":"Canonical venue identity.","example":"kalshi","isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.exchange_id","typeLabel":"string"},"market_id":{"type":"string","isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.market_id","typeLabel":"string"},"token_id":{"type":"string","isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.token_id","typeLabel":"string"},"outcome":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.outcome.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.outcome.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.outcome","typeLabel":"string | null"},"net_size":{"type":"string","description":"Exact signed post-fold position size as a decimal string, including zero.","isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.net_size","typeLabel":"string"},"base_established":{"type":"boolean","description":"Explicit proof that the durable position base was established. A returned reconciliation authority always sets this to true; clients must fail closed when it is absent or false during rolling deployment.","isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.base_established","typeLabel":"boolean"},"market_resolved":{"oneOf":[{"type":"boolean","description":"Tri-state resolution authority. Null means resolution was not proven and must not be interpreted as false.","isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.market_resolved.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Tri-state resolution authority. Null means resolution was not proven and must not be interpreted as false.","isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.market_resolved.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"reconciled_position.oneOf.0.market_resolved","typeLabel":"boolean | null"}},"uniqueKey":"reconciled_position.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"reconciled_position.oneOf.1","typeLabel":"null"}],"uniqueKey":"reconciled_position","typeLabel":"object | null"},"terminal_fill_verification":{"oneOf":[{"type":"object","description":"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.","required":["state","exchange_order_id","reason","target_status","started_at"],"properties":{"state":{"type":"string","enum":["pending","complete"],"isRequired":true,"uniqueKey":"terminal_fill_verification.oneOf.0.state","typeLabel":"enum\u003cstring>"},"exchange_order_id":{"type":"string","description":"Exact venue-order generation covered by the barrier.","isRequired":true,"uniqueKey":"terminal_fill_verification.oneOf.0.exchange_order_id","typeLabel":"string"},"reason":{"type":"string","enum":["explicit_cancel","venue_absent"],"isRequired":true,"uniqueKey":"terminal_fill_verification.oneOf.0.reason","typeLabel":"enum\u003cstring>"},"target_status":{"type":"string","enum":["cancelled","expired"],"isRequired":true,"uniqueKey":"terminal_fill_verification.oneOf.0.target_status","typeLabel":"enum\u003cstring>"},"started_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"terminal_fill_verification.oneOf.0.started_at","typeLabel":"string\u003cdate-time>"},"final_filled_quantity":{"oneOf":[{"type":"string","description":"Exact venue cumulative, including explicit `0`; required when state is complete.","uniqueKey":"terminal_fill_verification.oneOf.0.final_filled_quantity.oneOf.0","typeLabel":"string"},{"type":"null","description":"Exact venue cumulative, including explicit `0`; required when state is complete.","uniqueKey":"terminal_fill_verification.oneOf.0.final_filled_quantity.oneOf.1","typeLabel":"null"}],"uniqueKey":"terminal_fill_verification.oneOf.0.final_filled_quantity","typeLabel":"string | null"},"verified_at":{"oneOf":[{"type":"string","format":"date-time","description":"Receipt completion timestamp; required when state is complete.","uniqueKey":"terminal_fill_verification.oneOf.0.verified_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Receipt completion timestamp; required when state is complete.","uniqueKey":"terminal_fill_verification.oneOf.0.verified_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"terminal_fill_verification.oneOf.0.verified_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"terminal_fill_verification.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"terminal_fill_verification.oneOf.1","typeLabel":"null"}],"uniqueKey":"terminal_fill_verification","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"order_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","venue_reconciled":true,"message":"\u003cstring>","filled_quantity":"\u003cstring>","avg_fill_price":"\u003cstring>","reconciled_position":{"exchange_id":"kalshi","market_id":"\u003cstring>","token_id":"\u003cstring>","outcome":"\u003cstring>","net_size":"\u003cstring>","base_established":true,"market_resolved":true},"terminal_fill_verification":{"state":"pending","exchange_order_id":"\u003cstring>","reason":"explicit_cancel","target_status":"cancelled","started_at":"2023-11-07T05:31:56Z","final_filled_quantity":"\u003cstring>","verified_at":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d7ce57dd-d975-4107-a806-8561f6c70325":{"description":"No executor is registered for the order's exchange. Empty body (status code only).","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"876b4565-108c-44e9-b6d7-ee84e1f12d51":{"description":"No valid credential presented — missing/invalid API-key headers or an invalid/expired session token.\n","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","example":"Unauthorized","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Unauthorized"}}},"exampleType":"generated"}},"exampleType":"generated"},"fbd6c646-365e-4acd-aed9-15c886bfe445":{"description":"Order belongs to another user, missing `trade:execute` scope, or API-key access to the order's provider is disabled. Note this endpoint is behind the service-token/CSRF/API-key mutation gate, whose own rejections are `403` with a minimal `error` body. Otherwise empty body (status code only).","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"2e7bed8e-4f88-4db4-a2d6-83161a58793f":{"description":"No order with that id, or the order disappeared mid-cancel. Empty body (status code only).","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"75e344b3-7d48-4d9e-88e7-3cb9a02cd892":{"description":"Database read/write failed, credentials could not be loaded, or the cancel outcome could not be confirmed at all. Empty body (status code only).","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"59957c91-d0fa-4d5c-8959-ccbca5f28097":{"description":"API-key access to the order's provider could not be checked (fails closed). Empty body (status code only).","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"afbc5e7f-7bd5-481d-8e49-e1f1c9a9669a":{"apiKeyClientId":{"type":"apiKey","in":"header","name":"X-Client-Id","description":"Credential client id (`kairos_ck_...`). Must be sent together with X-Api-Key and X-Api-Secret.","scopes":[],"schemeName":"apiKeyClientId"},"apiKeyKey":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"64-char hex API key.","scopes":[],"schemeName":"apiKeyKey"},"apiKeySecret":{"type":"apiKey","in":"header","name":"X-Api-Secret","description":"64-char hex API secret.","scopes":[],"schemeName":"apiKeySecret"}}},"servers":{"9bc67f8e-5181-4b03-98cf-fbceabe854b0":{"url":"https://execution.kairos.trade","description":"Production"},"cb0a88b3-acda-4eb3-bea7-b35af48f7eef":{"url":"https://staging-execution.kairos.trade","description":"Staging"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Client-Id","description":"Credential client id (`kairos_ck_...`). Must be sent together with X-Api-Key and X-Api-Secret.","scopes":[],"schemeName":"apiKeyClientId"},"schema":{"title":"X-Client-Id","type":"string","description":"Credential client id (`kairos_ck_...`). Must be sent together with X-Api-Key and X-Api-Secret.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyClientId","name":"X-Client-Id"},{"scheme":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"64-char hex API key.","scopes":[],"schemeName":"apiKeyKey"},"schema":{"title":"X-Api-Key","type":"string","description":"64-char hex API key.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyKey","name":"X-Api-Key"},{"scheme":{"type":"apiKey","in":"header","name":"X-Api-Secret","description":"64-char hex API secret.","scopes":[],"schemeName":"apiKeySecret"},"schema":{"title":"X-Api-Secret","type":"string","description":"64-char hex API secret.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeySecret","name":"X-Api-Secret"}],"title":"apiKeyClientId \u0026 apiKeyKey \u0026 apiKeySecret"}]},"originalFileLocation":"openapi/execution.yaml"},"subdomain":"kairos-c5456474","siteName":"Kairos","title":"Cancel a single order - Kairos","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T21:19:25.404Z","originalFileLocation":"api-reference/execution/orders/cancel-a-single-order.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Cancels one order by internal id. Polymarket cancellation is an L2 API-key (HMAC) operation on the venue side, so no EOA/wallet signature is required — this works identically for custodial and self-custody orders. This endpoint almost always returns 200, even on failure to cancel. success: false with a message covers: the order is already terminal (filled/cancelled/expired/failed), or the venue currently refuses the cancel (still live — retry). Non-2xx status codes are reserved for auth/ownership/not-found/infrastructure failures, not \u0026quot;the cancel didn\u0026#x27;t happen.\u0026quot; Cancel-before-submit race. If the order hasn\u0026#x27;t reached the exchange yet (still pending/queued), it is cancelled locally via an atomic conditional update that races safely against the in-flight submission. If the submission wins that race (order mid-submission), the response is success: false asking the caller to retry shortly. Fill-during-cancel. A venue acknowledgement is followed by terminal fill verification. Until the response carries terminal_fill_verification.state: complete, it returns success: false and consumers must keep protection active. The completed receipt\u0026#x27;s final_filled_quantity is the authoritative venue cumulative (never the latest fill delta), including explicit zero, and is published only after the corresponding Trade/Position fold. Kalshi may complete this barrier synchronously; other venues normally complete through the polling worker and expose the retained receipt on retry or GET /orders/{order_id}. Auth \u0026amp; scope. Requires trade:execute and ownership of the order (403 otherwise).\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kairos\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kairos-c5456474/9YOcCIzMBy0Rv1b-/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/kairos-c5456474/9YOcCIzMBy0Rv1b-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kairos-c5456474/9YOcCIzMBy0Rv1b-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kairos-c5456474/9YOcCIzMBy0Rv1b-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kairos-c5456474/9YOcCIzMBy0Rv1b-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kairos-c5456474/9YOcCIzMBy0Rv1b-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kairos-c5456474/9YOcCIzMBy0Rv1b-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/kairos-c5456474/9YOcCIzMBy0Rv1b-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/kairos-c5456474/9YOcCIzMBy0Rv1b-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel a single order - Kairos\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cancels one order by internal id. Polymarket cancellation is an L2 API-key (HMAC) operation on the venue side, so no EOA/wallet signature is required — this works identically for custodial and self-custody orders. This endpoint almost always returns 200, even on failure to cancel. success: false with a message covers: the order is already terminal (filled/cancelled/expired/failed), or the venue currently refuses the cancel (still live — retry). Non-2xx status codes are reserved for auth/ownership/not-found/infrastructure failures, not \u0026quot;the cancel didn\u0026#x27;t happen.\u0026quot; Cancel-before-submit race. If the order hasn\u0026#x27;t reached the exchange yet (still pending/queued), it is cancelled locally via an atomic conditional update that races safely against the in-flight submission. If the submission wins that race (order mid-submission), the response is success: false asking the caller to retry shortly. Fill-during-cancel. A venue acknowledgement is followed by terminal fill verification. Until the response carries terminal_fill_verification.state: complete, it returns success: false and consumers must keep protection active. The completed receipt\u0026#x27;s final_filled_quantity is the authoritative venue cumulative (never the latest fill delta), including explicit zero, and is published only after the corresponding Trade/Position fold. Kalshi may complete this barrier synchronously; other venues normally complete through the polling worker and expose the retained receipt on retry or GET /orders/{order_id}. Auth \u0026amp; scope. Requires trade:execute and ownership of the order (403 otherwise).\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kairos\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kairos.trade/api-reference/execution/orders/cancel-a-single-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kairos-c5456474.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Cancel+a+single+order\u0026amp;description=Cancels+one+order+by+internal+id.+Polymarket+cancellation+is+an+L2+API-key+%28HMAC%29+operation+on+the+venue+side%2C+so+no+EOA%2Fwallet+signature+is+required+%E2%80%94+this+wor\u0026amp;theme=fe31eb3b296ab03f29461de2\u0026amp;signature=3a4c0583469d0b2a9554c227bd1ee88b23b6d5b43da922ea9e5454f12d26c460\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Cancel a single order - Kairos\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cancels one order by internal id. Polymarket cancellation is an L2 API-key (HMAC) operation on the venue side, so no EOA/wallet signature is required — this works identically for custodial and self-custody orders. This endpoint almost always returns 200, even on failure to cancel. success: false with a message covers: the order is already terminal (filled/cancelled/expired/failed), or the venue currently refuses the cancel (still live — retry). Non-2xx status codes are reserved for auth/ownership/not-found/infrastructure failures, not \u0026quot;the cancel didn\u0026#x27;t happen.\u0026quot; Cancel-before-submit race. If the order hasn\u0026#x27;t reached the exchange yet (still pending/queued), it is cancelled locally via an atomic conditional update that races safely against the in-flight submission. If the submission wins that race (order mid-submission), the response is success: false asking the caller to retry shortly. Fill-during-cancel. A venue acknowledgement is followed by terminal fill verification. Until the response carries terminal_fill_verification.state: complete, it returns success: false and consumers must keep protection active. The completed receipt\u0026#x27;s final_filled_quantity is the authoritative venue cumulative (never the latest fill delta), including explicit zero, and is published only after the corresponding Trade/Position fold. Kalshi may complete this barrier synchronously; other venues normally complete through the polling worker and expose the retained receipt on retry or GET /orders/{order_id}. Auth \u0026amp; scope. Requires trade:execute and ownership of the order (403 otherwise).\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kairos-c5456474.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Cancel+a+single+order\u0026amp;description=Cancels+one+order+by+internal+id.+Polymarket+cancellation+is+an+L2+API-key+%28HMAC%29+operation+on+the+venue+side%2C+so+no+EOA%2Fwallet+signature+is+required+%E2%80%94+this+wor\u0026amp;theme=fe31eb3b296ab03f29461de2\u0026amp;signature=3a4c0583469d0b2a9554c227bd1ee88b23b6d5b43da922ea9e5454f12d26c460\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/kairos-c5456474/9YOcCIzMBy0Rv1b-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kairos\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#807dfe\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kairos.trade/api-reference/execution/orders/cancel-a-single-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/execution/orders/cancel-a-single-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kairos.trade/#organization\",\"name\":\"Kairos\",\"url\":\"https://docs.kairos.trade\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kairos-c5456474/JzYk92-enXUuMl0B/logo/kairos-wing.png?fit=max\u0026auto=format\u0026n=JzYk92-enXUuMl0B\u0026q=85\u0026s=c7c397bb87847c7f0e27019d68594bff\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kairos.trade#website\",\"name\":\"Kairos\",\"url\":\"https://docs.kairos.trade\",\"publisher\":{\"@id\":\"https://docs.kairos.trade/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kairos.trade/api-reference/execution/orders/cancel-a-single-order#webpage\",\"url\":\"https://docs.kairos.trade/api-reference/execution/orders/cancel-a-single-order\",\"name\":\"Cancel a single order\",\"description\":\"Cancels one order by internal id. Polymarket cancellation is an L2 API-key (HMAC) operation on the venue side, so no EOA/wallet signature is required — this works identically for custodial and self-custody orders. This endpoint almost always returns 200, even on failure to cancel. success: false with a message covers: the order is already terminal (filled/cancelled/expired/failed), or the venue currently refuses the cancel (still live — retry). Non-2xx status codes are reserved for auth/ownership/not-found/infrastructure failures, not \\\"the cancel didn't happen.\\\" Cancel-before-submit race. If the order hasn't reached the exchange yet (still pending/queued), it is cancelled locally via an atomic conditional update that races safely against the in-flight submission. If the submission wins that race (order mid-submission), the response is success: false asking the caller to retry shortly. Fill-during-cancel. A venue acknowledgement is followed by terminal fill verification. Until the response carries terminal_fill_verification.state: complete, it returns success: false and consumers must keep protection active. The completed receipt's final_filled_quantity is the authoritative venue cumulative (never the latest fill delta), including explicit zero, and is published only after the corresponding Trade/Position fold. Kalshi may complete this barrier synchronously; other venues normally complete through the polling worker and expose the retained receipt on retry or GET /orders/{order_id}. Auth \u0026 scope. Requires trade:execute and ownership of the order (403 otherwise).\",\"dateModified\":\"2026-11-18T21:19:25.404Z\",\"isPartOf\":{\"@id\":\"https://docs.kairos.trade#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kairos.trade/api-reference/execution/orders/cancel-a-single-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kairos.trade/api-reference/execution/orders/cancel-a-single-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Execution API\",\"item\":\"https://docs.kairos.trade/api-reference/execution/synthetic-books/create-or-join-a-synthetic-book-definition\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Orders\",\"item\":\"https://docs.kairos.trade/api-reference/execution/orders/list-the-authenticated-users-orders\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cancel a single order\",\"item\":\"https://docs.kairos.trade/api-reference/execution/orders/cancel-a-single-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.kairos.trade/api-reference/execution/orders/cancel-a-single-order#apireference\",\"headline\":\"Cancel a single order\",\"name\":\"Cancel a single order\",\"description\":\"Cancels one order by internal id. Polymarket cancellation is an L2 API-key (HMAC) operation on the venue side, so no EOA/wallet signature is required — this works identically for custodial and self-custody orders. This endpoint almost always returns 200, even on failure to cancel. success: false with a message covers: the order is already terminal (filled/cancelled/expired/failed), or the venue currently refuses the cancel (still live — retry). Non-2xx status codes are reserved for auth/ownership/not-found/infrastructure failures, not \\\"the cancel didn't happen.\\\" Cancel-before-submit race. If the order hasn't reached the exchange yet (still pending/queued), it is cancelled locally via an atomic conditional update that races safely against the in-flight submission. If the submission wins that race (order mid-submission), the response is success: false asking the caller to retry shortly. Fill-during-cancel. A venue acknowledgement is followed by terminal fill verification. Until the response carries terminal_fill_verification.state: complete, it returns success: false and consumers must keep protection active. The completed receipt's final_filled_quantity is the authoritative venue cumulative (never the latest fill delta), including explicit zero, and is published only after the corresponding Trade/Position fold. Kalshi may complete this barrier synchronously; other venues normally complete through the polling worker and expose the retained receipt on retry or GET /orders/{order_id}. Auth \u0026 scope. Requires trade:execute and ownership of the order (403 otherwise).\",\"url\":\"https://docs.kairos.trade/api-reference/execution/orders/cancel-a-single-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kairos.trade/api-reference/execution/orders/cancel-a-single-order#webpage\"},\"dateModified\":\"2026-11-18T21:19:25.404Z\",\"publisher\":{\"@id\":\"https://docs.kairos.trade/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kairos.trade#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kairos\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kairos\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/execution/orders/cancel-a-single-order.md","siteName":"Kairos","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Partner API","pages":[{"title":"Partner API","href":"/wallets/overview"}]},{"tab":"Trading API","pages":[{"title":"Trading API","href":"/guides/order-types"}]},{"tab":"Market Data","pages":[{"title":"Market Data","href":"/market-data/overview"}]},{"tab":"API Reference","groups":[{"group":"Overview","icon":"book","pages":[{"title":"API Reference","icon":"book","href":"/api-reference"}]},{"group":"Market Data API","icon":"database","pages":[{"group":"Status","pages":[{"title":"Liveness probe","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /health","href":"/api-reference/market-data/status/liveness-probe"},{"title":"Readiness probe","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /ready","href":"/api-reference/market-data/status/readiness-probe"}]},{"group":"Markets","pages":[{"title":"Get one market's metadata","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/markets/{provider}/{market_id}","href":"/api-reference/market-data/markets/get-one-markets-metadata"},{"title":"Fetch multiple markets by id, one provider at a time","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml post /v1/markets/batch","href":"/api-reference/market-data/markets/fetch-multiple-markets-by-id-one-provider-at-a-time"},{"title":"Resolve venue-specific identifiers to canonical Kairos market ids","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml post /v1/market-identifiers/resolve","href":"/api-reference/market-data/markets/resolve-venue-specific-identifiers-to-canonical-kairos-market-ids"},{"title":"Paginate active markets for one provider","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/markets","href":"/api-reference/market-data/markets/paginate-active-markets-for-one-provider"},{"title":"Current valid tick grid for one market","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/markets/tick-size","href":"/api-reference/market-data/markets/current-valid-tick-grid-for-one-market"},{"title":"Current tick grids for up to 200 markets of one provider","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml post /v1/markets/tick-size/batch","href":"/api-reference/market-data/markets/current-tick-grids-for-up-to-200-markets-of-one-provider"}]},{"group":"Resolutions","pages":[{"title":"Batch resolution fractions for up to 200 markets","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/resolutions","href":"/api-reference/market-data/resolutions/batch-resolution-fractions-for-up-to-200-markets"},{"title":"Resolution lifecycle snapshots for up to 200 markets","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/resolutions/status","href":"/api-reference/market-data/resolutions/resolution-lifecycle-snapshots-for-up-to-200-markets"},{"title":"Current resolution lifecycle snapshot for one market","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/markets/{provider}/{market_id}/resolution","href":"/api-reference/market-data/resolutions/current-resolution-lifecycle-snapshot-for-one-market"},{"title":"Full resolution lifecycle timeline for one market","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/markets/{provider}/{market_id}/resolution/events","href":"/api-reference/market-data/resolutions/full-resolution-lifecycle-timeline-for-one-market"}]},{"group":"Marks","pages":[{"title":"Latest mark (last trade price) for up to 200 contract/token pairs","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/marks","href":"/api-reference/market-data/marks/latest-mark-last-trade-price-for-up-to-200-contracttoken-pairs"}]},{"group":"Candles","pages":[{"title":"Get a single OHLCV candle series","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/candles","href":"/api-reference/market-data/candles/get-a-single-ohlcv-candle-series"},{"title":"Get up to 200 candle series in one request","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml post /v1/candles/batch","href":"/api-reference/market-data/candles/get-up-to-200-candle-series-in-one-request"}]},{"group":"Trades","pages":[{"title":"Recent trade tape for a contract","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/trades","href":"/api-reference/market-data/trades/recent-trade-tape-for-a-contract"},{"title":"Historical trade tape for a contract, paged by cursor","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/trades/tape","href":"/api-reference/market-data/trades/historical-trade-tape-for-a-contract-paged-by-cursor"},{"title":"Aggregate trade volume/pressure metrics for a contract window","deprecated":null,"version":null,"openapi":"/openapi/market-data-api.yaml get /v1/trades/metrics","href":"/api-reference/market-data/trades/aggregate-trade-volumepressure-metrics-for-a-contract-window"}]}]},{"group":"Data API","icon":"server","pages":[{"group":"Markets","pages":[{"title":"Enumerate active markets for a provider (MMC cursor page)","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /markets/active","href":"/api-reference/data/markets/enumerate-active-markets-for-a-provider-mmc-cursor-page"},{"title":"Fetch market details (name/category/status/ids)","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml post /markets/details","href":"/api-reference/data/markets/fetch-market-details-namecategorystatusids"},{"title":"Batch fetch current prices for multiple markets","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml post /markets/batch-prices","href":"/api-reference/data/markets/batch-fetch-current-prices-for-multiple-markets"},{"title":"Get full market metadata (rules, images, contract spec)","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /markets/metadata","href":"/api-reference/data/markets/get-full-market-metadata-rules-images-contract-spec"},{"title":"Batch fetch market metadata for multiple contracts","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml post /markets/metadata/batch","href":"/api-reference/data/markets/batch-fetch-market-metadata-for-multiple-contracts"},{"title":"Get all sibling outcomes for the event containing a market","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /markets/outcomes","href":"/api-reference/data/markets/get-all-sibling-outcomes-for-the-event-containing-a-market"},{"title":"Get 5m/15m/1h crypto up-or-down prediction markets for a window","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /markets/crypto","href":"/api-reference/data/markets/get-5m15m1h-crypto-up-or-down-prediction-markets-for-a-window"},{"title":"Get historical oracle (spot) prices for crypto chart pre-population","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /markets/crypto/oracle-history","href":"/api-reference/data/markets/get-historical-oracle-spot-prices-for-crypto-chart-pre-population"},{"title":"Get Price-to-Beat (PTB) values for crypto up/down contracts","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /markets/crypto/ptb","href":"/api-reference/data/markets/get-price-to-beat-ptb-values-for-crypto-updown-contracts"},{"title":"Get last-known prices for equity/forex/commodity symbols","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /markets/equity/snapshot","href":"/api-reference/data/markets/get-last-known-prices-for-equityforexcommodity-symbols"},{"title":"Cross-venue arbitrage opportunities from the Arb Bets feed","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /arb-bets/","href":"/api-reference/data/markets/cross-venue-arbitrage-opportunities-from-the-arb-bets-feed"},{"title":"Ranked cross-venue links with a union book","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /market-links/featured","href":"/api-reference/data/markets/ranked-cross-venue-links-with-a-union-book"},{"title":"The cross-venue link holding each venue market","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /market-links/lookup","href":"/api-reference/data/markets/the-cross-venue-link-holding-each-venue-market"},{"title":"Every cross-venue link with a live edge, best first","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /market-links/edges","href":"/api-reference/data/markets/every-cross-venue-link-with-a-live-edge-best-first"},{"title":"Why each matcher pair is or is not an approved link","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /market-links/coverage","href":"/api-reference/data/markets/why-each-matcher-pair-is-or-is-not-an-approved-link"},{"title":"Cross-venue cluster membership for a set of markets","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /market-clusters","href":"/api-reference/data/markets/cross-venue-cluster-membership-for-a-set-of-markets"}]},{"group":"Candles","pages":[{"title":"Fetch OHLCV candles for a single contract","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /candles","href":"/api-reference/data/candles/fetch-ohlcv-candles-for-a-single-contract"},{"title":"Fetch candles for up to 200 contracts in one request","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml post /candles/batch","href":"/api-reference/data/candles/fetch-candles-for-up-to-200-contracts-in-one-request"}]},{"group":"Trades","pages":[{"title":"Fetch normalized, Kairos-ingested trade history for a contract","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /trades/history","href":"/api-reference/data/trades/fetch-normalized-kairos-ingested-trade-history-for-a-contract"},{"title":"Fetch volume and outcome-pressure metrics for a contract","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /trades/metrics","href":"/api-reference/data/trades/fetch-volume-and-outcome-pressure-metrics-for-a-contract"}]},{"group":"Trader Analytics","pages":[{"title":"Get a trader's realized-PnL time series","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /trader-stats/pnl-history/{wallet_address}","href":"/api-reference/data/trader-analytics/get-a-traders-realized-pnl-time-series"},{"title":"Get a trader's performance stats without the position list","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /trader-stats/summary/{wallet_address}","href":"/api-reference/data/trader-analytics/get-a-traders-performance-stats-without-the-position-list"},{"title":"Get a trader's PnL windows, win/loss, ROI distribution and daily PnL calendar","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /trader-stats/analysis/{wallet_address}","href":"/api-reference/data/trader-analytics/get-a-traders-pnl-windows-winloss-roi-distribution-and-daily-pnl-calendar"},{"title":"Get a trader's open/closed positions and derived performance stats","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /trader-stats/positions/{wallet_address}","href":"/api-reference/data/trader-analytics/get-a-traders-openclosed-positions-and-derived-performance-stats"},{"title":"Get a trader's recent trade/fill history","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /trader-stats/trades/{wallet_address}","href":"/api-reference/data/trader-analytics/get-a-traders-recent-tradefill-history"},{"title":"Get top token holders for one or more markets","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /top-holders","href":"/api-reference/data/trader-analytics/get-top-token-holders-for-one-or-more-markets"},{"title":"Search for a trader's public profile by wallet address","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /search-traders","href":"/api-reference/data/trader-analytics/search-for-a-traders-public-profile-by-wallet-address"}]},{"group":"PnL","pages":[{"title":"List available PnL providers","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /pnl/providers","href":"/api-reference/data/pnl/list-available-pnl-providers"},{"title":"Get merged PnL data for a user across one or more wallets/providers","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /pnl/{user_id}","href":"/api-reference/data/pnl/get-merged-pnl-data-for-a-user-across-one-or-more-walletsproviders"},{"title":"Batch public wallet identities and market position summaries","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml post /pnl/market-wallets","href":"/api-reference/data/pnl/batch-public-wallet-identities-and-market-position-summaries"},{"title":"Live per-market PnL for a (wallet, market) pair","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /pnl/hover/{provider_id}/{wallet}/{contract_id}","href":"/api-reference/data/pnl/live-per-market-pnl-for-a-wallet-market-pair"},{"title":"Wallet-wide PnL totals across all markets","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /pnl/wallet-totals/{provider_id}/{wallet}","href":"/api-reference/data/pnl/wallet-wide-pnl-totals-across-all-markets"}]},{"group":"Search","pages":[{"title":"Search markets by text query","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /search/markets","href":"/api-reference/data/search/search-markets-by-text-query"},{"title":"Search both markets and events with combined relevance scoring","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /search/markets-and-events","href":"/api-reference/data/search/search-both-markets-and-events-with-combined-relevance-scoring"},{"title":"Fast simple search for navbar/autocomplete overlay","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /search/simple","href":"/api-reference/data/search/fast-simple-search-for-navbarautocomplete-overlay"},{"title":"Resolve a pasted Polymarket/Kalshi/predict.fun market or event URL","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /search/resolve-url","href":"/api-reference/data/search/resolve-a-pasted-polymarketkalshipredictfun-market-or-event-url"},{"title":"Autocomplete suggestions for search-as-you-type","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /search/suggest","href":"/api-reference/data/search/autocomplete-suggestions-for-search-as-you-type"},{"title":"Find markets by what their book and tape are doing","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /search/screener","href":"/api-reference/data/search/find-markets-by-what-their-book-and-tape-are-doing"},{"title":"One-click screens the screener offers","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /search/screener/presets","href":"/api-reference/data/search/one-click-screens-the-screener-offers"}]},{"group":"Discover","pages":[{"title":"Paginated, filtered, event-grouped market list for the Discover page","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /api/markets/discover/v2","href":"/api-reference/data/discover/paginated-filtered-event-grouped-market-list-for-the-discover-page"},{"title":"Compact full market list for client-side instant search","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /api/markets/discover/v2/search-index","href":"/api-reference/data/discover/compact-full-market-list-for-client-side-instant-search"},{"title":"Top markets for the discover page ticker bar","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /api/markets/discover/v2/ticker","href":"/api-reference/data/discover/top-markets-for-the-discover-page-ticker-bar"},{"title":"Market pulse — latest trending movers for the Pulse rail","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /api/markets/discover/v2/breaking","href":"/api-reference/data/discover/market-pulse-—-latest-trending-movers-for-the-pulse-rail"},{"title":"Markets expiring soonest, with actionable prices","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /api/markets/discover/v2/expiring","href":"/api-reference/data/discover/markets-expiring-soonest-with-actionable-prices"},{"title":"Available subcategories (subtopics) for a topic category, with live market counts","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /api/markets/discover/v2/subcategories","href":"/api-reference/data/discover/available-subcategories-subtopics-for-a-topic-category-with-live-market-counts"},{"title":"Kalshi sports events matched against live Polymarket games","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /api/sports/kalshi-live","href":"/api-reference/data/discover/kalshi-sports-events-matched-against-live-polymarket-games"},{"title":"Trending markets by 1h volume","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /api/markets/trending","href":"/api-reference/data/discover/trending-markets-by-1h-volume"},{"title":"Trending market ids for a live-price subscription","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /api/markets/trending/ws","href":"/api-reference/data/discover/trending-market-ids-for-a-live-price-subscription"}]},{"group":"Providers","pages":[{"title":"List all active provider configurations","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /providers/configs","href":"/api-reference/data/providers/list-all-active-provider-configurations"},{"title":"List providers available to API-key callers","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /providers/api-access","href":"/api-reference/data/providers/list-providers-available-to-api-key-callers"},{"title":"Get a single provider configuration by id","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /providers/configs/{provider_id}","href":"/api-reference/data/providers/get-a-single-provider-configuration-by-id"}]},{"group":"Sports","pages":[{"title":"Top live/upcoming sports markets matched across Polymarket and Kalshi","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/trending-matched","href":"/api-reference/data/sports/top-liveupcoming-sports-markets-matched-across-polymarket-and-kalshi"},{"title":"Cross-platform matching-market records for a set of market slugs","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/matching-markets","href":"/api-reference/data/sports/cross-platform-matching-market-records-for-a-set-of-market-slugs"},{"title":"Kalshi Sport -> Competition -> Scope taxonomy","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/kalshi-filters","href":"/api-reference/data/sports/kalshi-sport->-competition->-scope-taxonomy"},{"title":"Active sports games with urgency scores and cross-provider prices","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/live-events","href":"/api-reference/data/sports/active-sports-games-with-urgency-scores-and-cross-provider-prices"},{"title":"All markets for a single sports event","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/event-markets","href":"/api-reference/data/sports/all-markets-for-a-single-sports-event"},{"title":"Currently-live Kalshi sports games (NHL/NBA/MLB/NFL+UFL/soccer/esports)","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/kalshi-live-games","href":"/api-reference/data/sports/currently-live-kalshi-sports-games-nhlnbamlbnfl+uflsocceresports"},{"title":"Live game pairings between Polymarket and Kalshi","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/poly-kalshi-pairings","href":"/api-reference/data/sports/live-game-pairings-between-polymarket-and-kalshi"},{"title":"Enriched catalog of sport categories and leagues","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/catalog","href":"/api-reference/data/sports/enriched-catalog-of-sport-categories-and-leagues"},{"title":"Upcoming (not-yet-live) sports events within a time window","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/upcoming-events","href":"/api-reference/data/sports/upcoming-not-yet-live-sports-events-within-a-time-window"},{"title":"Tournament bracket with live cross-provider prices per tie","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/tournament-bracket","href":"/api-reference/data/sports/tournament-bracket-with-live-cross-provider-prices-per-tie"},{"title":"Cross-venue market families for a single game, grouped by section","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/game-markets","href":"/api-reference/data/sports/cross-venue-market-families-for-a-single-game-grouped-by-section"},{"title":"Catalog of combo-eligible Polymarket markets","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/combo-markets","href":"/api-reference/data/sports/catalog-of-combo-eligible-polymarket-markets"},{"title":"Synced sports teams and leagues reference data","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /sports/metadata","href":"/api-reference/data/sports/synced-sports-teams-and-leagues-reference-data"},{"title":"List sports fixtures with live status and win probabilities","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /txodds/fixtures","href":"/api-reference/data/sports/list-sports-fixtures-with-live-status-and-win-probabilities"},{"title":"Score, timeline, and possession metrics for one fixture","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /txodds/fixtures/{fixture_id}","href":"/api-reference/data/sports/score-timeline-and-possession-metrics-for-one-fixture"},{"title":"Source-observed soccer and NFL fixture timing","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /txodds/fixtures/{fixture_id}/timing","href":"/api-reference/data/sports/source-observed-soccer-and-nfl-fixture-timing"},{"title":"Win-probability history and market read for one fixture","deprecated":null,"version":null,"openapi":"/openapi/data-api.yaml get /txodds/fixtures/{fixture_id}/timeseries","href":"/api-reference/data/sports/win-probability-history-and-market-read-for-one-fixture"}]}]},{"group":"Execution API","icon":"paper-plane","pages":[{"group":"Synthetic Books","pages":[{"title":"Create or join a Synthetic Book definition","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /v1/synthetics","href":"/api-reference/execution/synthetic-books/create-or-join-a-synthetic-book-definition"},{"title":"Refresh a Synthetic Book lease","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /v1/synthetics/subscriptions/{subscription_id}/refresh","href":"/api-reference/execution/synthetic-books/refresh-a-synthetic-book-lease"},{"title":"Release a Synthetic Book lease","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml delete /v1/synthetics/subscriptions/{subscription_id}","href":"/api-reference/execution/synthetic-books/release-a-synthetic-book-lease"},{"title":"Inspect a Synthetic Book definition","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /v1/synthetics/{synthetic_id}","href":"/api-reference/execution/synthetic-books/inspect-a-synthetic-book-definition"}]},{"group":"Orders","pages":[{"title":"List the authenticated user's orders","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /orders","href":"/api-reference/execution/orders/list-the-authenticated-users-orders"},{"title":"Submit a new order","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /orders","href":"/api-reference/execution/orders/submit-a-new-order"},{"title":"Get a single order by internal id","description":"Returns the full order row (including `raw`, the unredacted venue response, and `metadata`) for a single order the caller owns. Use this after `POST /orders` to poll a specific order's terminal state, or after `GET /orders` (which strips `raw`/`metadata`) to drill into one row.","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /orders/{order_id}","href":"/api-reference/execution/orders/get-a-single-order-by-internal-id"},{"title":"Cancel a single order","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /orders/{order_id}/cancel","href":"/api-reference/execution/orders/cancel-a-single-order"},{"title":"Reprice a resting limit order in place","description":"Moves a resting limit order's price in one venue round trip. The order keeps its Kairos `order_id` AND its venue `exchange_order_id` — that is the property this endpoint exists to provide: no supersession to record, and no second order whose fill could be booked twice. The cancel-and-replace it replaces leaves the book empty of the order for the whole cancel round trip and mints a second id to reconcile.\n**Venue support.** Only venues advertising `supports_native_amend` in `GET /exchanges/{exchange_id}/capabilities` — today `kalshi` alone. Anything else is `409` `EXCHANGE_AMEND_UNSUPPORTED`, answered before the order's own state is inspected so the verdict is a permanent property of the venue rather than of this moment. There is deliberately NO internal cancel-and-replace fallback: that substitution changes queue position, order identity and the caller's failure modes, so it is the caller's decision.\n**Reprice only.** `quantity` is accepted solely to be refused with `409` `EXCHANGE_AMEND_QUANTITY_UNSUPPORTED`, before the order is read — refused rather than silently ignored so a caller never believes it resized. Limit orders only; `price` must be strictly between 0 and 1, in the order's own outcome's terms.\n**This endpoint almost always returns `200`.** `success: false` is an ambiguous venue outcome, never a transport failure — the same convention `POST /orders/{order_id}/cancel` uses, because a 5xx invites a retry against an order that may already have been amended. It covers a terminal order, an order not yet at the venue, and a venue that refused; on every one of those the order is untouched and still resting on its old price. Branch on `success`, not on the status code.\n**Queue position.** Kalshi preserves it only when an amend DECREASES size; a reprice forfeits it — but so does the cancel/replace this replaces, so nothing is lost. The win is the closed off-book window, not priority.\n**Admission.** Runs the same checks a submit does — kill switch, side/kind/TIF circuit breakers evaluated against the order's own side and kind (an amend changes neither), and the order rate limit. An immediate fill from a crossing amend is booked through the normal poller path, not from this response.\n**Auth \u0026 scope.** Requires `trade:execute` and ownership of the order.","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /orders/{order_id}/amend","href":"/api-reference/execution/orders/reprice-a-resting-limit-order-in-place"},{"title":"Cancel a specific set of orders atomically at the selection layer","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /orders/cancel-batch","href":"/api-reference/execution/orders/cancel-a-specific-set-of-orders-atomically-at-the-selection-layer"},{"title":"Cancel all of the authenticated user's open orders on an exchange","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /orders/cancel-all","href":"/api-reference/execution/orders/cancel-all-of-the-authenticated-users-open-orders-on-an-exchange"},{"title":"Get a combined platform + exchange fee quote for a prospective trade","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /orders/fee-quote","href":"/api-reference/execution/orders/get-a-combined-platform-+-exchange-fee-quote-for-a-prospective-trade"},{"title":"Get the authenticated user's current live position exposure","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /positions/exposure","href":"/api-reference/execution/orders/get-the-authenticated-users-current-live-position-exposure"},{"title":"Shallow liveness probe","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /health","href":"/api-reference/execution/orders/shallow-liveness-probe"}]},{"group":"Exchanges","pages":[{"title":"List the venue ids this deployment has registered","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /exchanges","href":"/api-reference/execution/exchanges/list-the-venue-ids-this-deployment-has-registered"},{"title":"Get a venue's display info and full capability set","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /exchanges/{exchange_id}","href":"/api-reference/execution/exchanges/get-a-venues-display-info-and-full-capability-set"},{"title":"Get a venue's capability set","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /exchanges/{exchange_id}/capabilities","href":"/api-reference/execution/exchanges/get-a-venues-capability-set"},{"title":"Set the on-chain allowances the venue needs","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/{exchange_id}/allowances","href":"/api-reference/execution/exchanges/set-the-on-chain-allowances-the-venue-needs"},{"title":"Drop the service's cached copy of your venue credentials","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /credentials/invalidate","href":"/api-reference/execution/exchanges/drop-the-services-cached-copy-of-your-venue-credentials"},{"title":"Sponsor gas and set the venue's required allowances on a wallet","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/{exchange_id}/prepare-wallet","href":"/api-reference/execution/exchanges/sponsor-gas-and-set-the-venues-required-allowances-on-a-wallet"}]},{"group":"Routing","pages":[{"title":"Price a size across the legs of an approved cross-venue market link","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /orders/route-quote","href":"/api-reference/execution/routing/price-a-size-across-the-legs-of-an-approved-cross-venue-market-link"},{"title":"Get the per-leg fee model for an approved cross-venue market link","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /orders/route-fees","href":"/api-reference/execution/routing/get-the-per-leg-fee-model-for-an-approved-cross-venue-market-link"},{"title":"Buy a size split across both legs of an approved cross-venue market link","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /orders/route-buy","href":"/api-reference/execution/routing/buy-a-size-split-across-both-legs-of-an-approved-cross-venue-market-link"},{"title":"Close a routed position across both legs of a market link","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /orders/route-close","href":"/api-reference/execution/routing/close-a-routed-position-across-both-legs-of-a-market-link"},{"title":"List the caller's routed parent orders and their legs","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /orders/routes","href":"/api-reference/execution/routing/list-the-callers-routed-parent-orders-and-their-legs"},{"title":"Create (or preview) a self-serve cross-venue market link","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /orders/market-links","href":"/api-reference/execution/routing/create-or-preview-a-self-serve-cross-venue-market-link"}]},{"group":"Combo","pages":[{"title":"Price a Polymarket combo (parlay) without executing it","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /combo/quote","href":"/api-reference/execution/combo/price-a-polymarket-combo-parlay-without-executing-it"},{"title":"Buy a Polymarket combo (parlay) via the RFQ gateway","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /combo/execute","href":"/api-reference/execution/combo/buy-a-polymarket-combo-parlay-via-the-rfq-gateway"},{"title":"List the authenticated user's Polymarket combo positions","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /combo/positions","href":"/api-reference/execution/combo/list-the-authenticated-users-polymarket-combo-positions"},{"title":"Price a combo cash-out (SELL) without executing it","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /combo/cash-out-quote","href":"/api-reference/execution/combo/price-a-combo-cash-out-sell-without-executing-it"},{"title":"Sell an open combo position back to pUSD","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /combo/cash-out","href":"/api-reference/execution/combo/sell-an-open-combo-position-back-to-pusd"},{"title":"Redeem a resolved, winning combo back to pUSD","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /combo/redeem","href":"/api-reference/execution/combo/redeem-a-resolved-winning-combo-back-to-pusd"}]},{"group":"Onboarding","pages":[{"title":"Provision Polymarket CLOB credentials and set on-chain approvals","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/polymarket/enable-trading","href":"/api-reference/execution/onboarding/provision-polymarket-clob-credentials-and-set-on-chain-approvals"},{"title":"Provision CLOB credentials for an imported Polymarket wallet","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/polymarket/enable-imported-trading","href":"/api-reference/execution/onboarding/provision-clob-credentials-for-an-imported-polymarket-wallet"},{"title":"Set the on-chain approvals Predict.fun needs","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/predictfun/enable-trading","href":"/api-reference/execution/onboarding/set-the-on-chain-approvals-predictfun-needs"},{"title":"Connect your own Kalshi account by storing its API credentials","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/kalshi/enable-trading","href":"/api-reference/execution/onboarding/connect-your-own-kalshi-account-by-storing-its-api-credentials"},{"title":"Get the caller's Predict.fun account profile","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /exchanges/predictfun/account","href":"/api-reference/execution/onboarding/get-the-callers-predictfun-account-profile"},{"title":"Get the caller's Predict.fun campaign lootboxes","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /exchanges/predictfun/activities/{code}","href":"/api-reference/execution/onboarding/get-the-callers-predictfun-campaign-lootboxes"},{"title":"Reveal settled campaign matches","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/predictfun/activities/{code}/reveal","href":"/api-reference/execution/onboarding/reveal-settled-campaign-matches"},{"title":"Open revealed lootboxes","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/predictfun/activities/{code}/open","href":"/api-reference/execution/onboarding/open-revealed-lootboxes"},{"title":"Claim campaign rewards","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/predictfun/activities/{code}/claim","href":"/api-reference/execution/onboarding/claim-campaign-rewards"},{"title":"List the caller's campaign lootboxes","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /exchanges/predictfun/activities/{code}/boxes","href":"/api-reference/execution/onboarding/list-the-callers-campaign-lootboxes"},{"title":"Open one lootbox","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/predictfun/activities/{code}/boxes/{box_id}/open","href":"/api-reference/execution/onboarding/open-one-lootbox"},{"title":"Reveal one campaign match","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/predictfun/activities/{code}/matches/{match_id}/reveal","href":"/api-reference/execution/onboarding/reveal-one-campaign-match"},{"title":"List Predict.fun points seasons","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /exchanges/predictfun/points/seasons","href":"/api-reference/execution/onboarding/list-predictfun-points-seasons"},{"title":"Get the caller's Predict.fun points for a season","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /exchanges/predictfun/points","href":"/api-reference/execution/onboarding/get-the-callers-predictfun-points-for-a-season"},{"title":"Get the caller's Predict.fun season-token airdrop","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml get /exchanges/predictfun/airdrops/{season_id}","href":"/api-reference/execution/onboarding/get-the-callers-predictfun-season-token-airdrop"},{"title":"Choose Instant or Vesting for a Predict.fun airdrop","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/predictfun/airdrops/{season_id}/option","href":"/api-reference/execution/onboarding/choose-instant-or-vesting-for-a-predictfun-airdrop"},{"title":"Claim a vested Predict.fun airdrop","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/predictfun/airdrops/{season_id}/claim","href":"/api-reference/execution/onboarding/claim-a-vested-predictfun-airdrop"},{"title":"Set the payout address for a Predict.fun airdrop","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml put /exchanges/predictfun/airdrops/{season_id}/recipient","href":"/api-reference/execution/onboarding/set-the-payout-address-for-a-predictfun-airdrop"}]},{"group":"Hyperliquid","pages":[{"title":"Build the typed data for a Hyperliquid withdrawal (step 1 of 2)","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/hyperliquid/withdraw/prepare","href":"/api-reference/execution/hyperliquid/build-the-typed-data-for-a-hyperliquid-withdrawal-step-1-of-2"},{"title":"Submit a signed Hyperliquid withdrawal (step 2 of 2)","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/hyperliquid/withdraw","href":"/api-reference/execution/hyperliquid/submit-a-signed-hyperliquid-withdrawal-step-2-of-2"},{"title":"Build the typed data for a Hyperliquid spot↔perp transfer (step 1 of 2)","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/hyperliquid/transfer/prepare","href":"/api-reference/execution/hyperliquid/build-the-typed-data-for-a-hyperliquid-spot↔perp-transfer-step-1-of-2"},{"title":"Submit a signed Hyperliquid spot↔perp transfer (step 2 of 2)","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/hyperliquid/transfer","href":"/api-reference/execution/hyperliquid/submit-a-signed-hyperliquid-spot↔perp-transfer-step-2-of-2"}]},{"group":"Deposit wallet","pages":[{"title":"Deploy the caller's Polymarket deposit wallet and set its trading approvals","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/polymarket/deposit-wallet/onboard","href":"/api-reference/execution/deposit-wallet/deploy-the-callers-polymarket-deposit-wallet-and-set-its-trading-approvals"},{"title":"Read the relayer nonce (and GSN relay) for an imported Polymarket wallet","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/polymarket/imported/relay-info","href":"/api-reference/execution/deposit-wallet/read-the-relayer-nonce-and-gsn-relay-for-an-imported-polymarket-wallet"}]},{"group":"CTF","pages":[{"title":"Split collateral into a complete outcome-token set","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/{exchange_id}/ctf/split","href":"/api-reference/execution/ctf/split-collateral-into-a-complete-outcome-token-set"},{"title":"Merge a complete outcome-token set back into collateral","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/{exchange_id}/ctf/merge","href":"/api-reference/execution/ctf/merge-a-complete-outcome-token-set-back-into-collateral"},{"title":"Redeem winning outcome tokens after resolution","deprecated":null,"version":null,"openapi":"/openapi/execution.yaml post /exchanges/{exchange_id}/redeem","href":"/api-reference/execution/ctf/redeem-winning-outcome-tokens-after-resolution"}]}]}]}]},"basePath":"","title":"Cancel a single order - Kairos","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","SectionHeading-uish4Ed2.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js","Markdown-K6_WYP3x.js","AssistantPageLink-BrppVW5v.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}