Send orderId to cancel an agg order. Send venue, venueOrderId, signerAddress and cancelSignature to cancel a Polymarket or Hyperliquid limit order that one of your linked self-custody wallets placed outside AGG. signerAddress must be a wallet linked to this user and must be the wallet that produced cancelSignature. For an external order AGG reads the order from the venue, cancels it, and only after the venue confirms records it as a cancelled order; the returned orderIds[0] appears in GET /execution/orders?orderId=<id>. Fills that happened before the cancel are not recorded by AGG. An order that is already filled, cancelled or not owned by the wallet returns 409.
Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.
Authorization
string
header
required
JWT access token from POST /auth/verify. Required with x-app-id on user routes. On the smart-route quote it is optional and turns a preview into an executable quote.
Body
application/json
Option 1
Option 2
orderId
string
required
Minimum string length: 1
cancelSignature
object
Self-custody Polymarket limit orders only; omit it for managed orders. An EIP-712 signature by the order's signing wallet (the signingAddress the order was placed with) over Polymarket's CLOB L1 auth message: domain { name: "ClobAuthDomain", version: "1", chainId: 137 }, primary type ClobAuth with fields address (address), timestamp (string), nonce (uint256), message (string), where address is the signing wallet, timestamp is the timestamp below encoded as a decimal string, nonce is 0, and message is "This message attests that I control the given wallet". Ask the user to sign when they cancel. The signature is never persisted or logged. The CLOB credentials derived from it are used only for this request and are not stored.
Option 1
Option 2
Show child attributes
Response
200
quoteId
string | null
required
Quote whose orders were cancelled. null for limit orders and for orders placed directly on the venue.
orderIds
string[]
required
Ids of the affected orders. Can be empty for a venue order AGG did not know.
status
enum<string>
required
cancelled: done. cancel_pending: the venue has not confirmed yet; the order moves to cancelled (or fills) later.
Available options:
cancelled,
cancel_pending
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Agg.market — Prediction Market Aggregator","description":"White-label prediction market aggregator API: sign users in, quote the best price across venues, execute trades, and track them to a final status. Start with Quickstart: REST.","colors":{"primary":"#ED8200","light":"#FFA366","dark":"#C66F00"},"logo":{"light":"https://mintcdn.com/agg/SLxnoWBYT8Zyhg9W/assets/agg-dark.svg?fit=max\u0026auto=format\u0026n=SLxnoWBYT8Zyhg9W\u0026q=85\u0026s=f1b6e05f3e2529bc2c7698267234f5d1","dark":"https://mintcdn.com/agg/SLxnoWBYT8Zyhg9W/assets/agg-white.svg?fit=max\u0026auto=format\u0026n=SLxnoWBYT8Zyhg9W\u0026q=85\u0026s=4a896195354d17f32101e0ec90fb822c"},"favicon":"https://mintcdn.com/agg/OOif8Fd2iWonTlgU/assets/favicon.svg?fit=max\u0026auto=format\u0026n=OOif8Fd2iWonTlgU\u0026q=85\u0026s=6907ac01c9b9a95394f668f53099f108","background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://storybook.agg.market","label":"Storybook"}],"primary":{"type":"button","label":"Admin Dashboard","href":"https://admin.agg.market"}},"footer":{"socials":{"x":"https://x.com/Snag_Solutions","linkedin":"https://www.linkedin.com/company/snag-solutions"}},"banner":{"content":"AGG is currently in **alpha**. APIs, components, and docs may change.","dismissible":false},"metadata":{"timestamp":false},"markdown":{"instructions":["To integrate AGG, start with Quickstart: REST (https://docs.agg.market/quickstart/rest), then Order lifecycle \u0026 statuses (https://docs.agg.market/concepts/order-lifecycle).","Track every trade until it reaches a terminal status. Before retrying a failed or timed-out call, read Errors, retries \u0026 idempotency (https://docs.agg.market/concepts/errors).","The API reference is generated from https://docs.agg.market/openapi/openapi.json."]},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"agg","hasAudioNarration":false,"actualSubdomain":"agg","customDomains":["docs.agg.market"],"gitSource":{"type":"github","owner":"snag-solutions","repo":"agg","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aff4f795246eb87f3620b22","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Trading API","count":80},{"language":"default","tag":"Guides","count":73},{"language":"default","tag":"Trading","count":22},{"language":"default","tag":"Server API","count":21},{"language":"default","tag":"Users","count":13},{"language":"default","tag":"Core concepts","count":12},{"language":"default","tag":"Funding","count":12},{"language":"default","tag":"Market data","count":11},{"language":"default","tag":"Markets","count":10},{"language":"default","tag":"Partner Admin","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/trading/cancel-an-order","slug":"/api-reference/trading/cancel-an-order","pageMetadata":{"title":"Cancel an order","description":"Send `orderId` to cancel an agg order. Send `venue`, `venueOrderId`, `signerAddress` and `cancelSignature` to cancel a Polymarket or Hyperliquid limit order that one of your linked self-custody wallets placed outside AGG. `signerAddress` must be a wallet linked to this user and must be the wallet that produced `cancelSignature`. For an external order AGG reads the order from the venue, cancels it, and only after the venue confirms records it as a `cancelled` order; the returned `orderIds[0]` appears in `GET /execution/orders?orderId=\u003cid>`. Fills that happened before the cancel are not recorded by AGG. An order that is already filled, cancelled or not owned by the wallet returns 409.","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/orders/cancel","href":"/api-reference/trading/cancel-an-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 ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Send \", _jsx(_components.code, {\n children: \"orderId\"\n }), \" to cancel an agg order. Send \", _jsx(_components.code, {\n children: \"venue\"\n }), \", \", _jsx(_components.code, {\n children: \"venueOrderId\"\n }), \", \", _jsx(_components.code, {\n children: \"signerAddress\"\n }), \" and \", _jsx(_components.code, {\n children: \"cancelSignature\"\n }), \" to cancel a Polymarket or Hyperliquid limit order that one of your linked self-custody wallets placed outside AGG. \", _jsx(_components.code, {\n children: \"signerAddress\"\n }), \" must be a wallet linked to this user and must be the wallet that produced \", _jsx(_components.code, {\n children: \"cancelSignature\"\n }), \". For an external order AGG reads the order from the venue, cancels it, and only after the venue confirms records it as a \", _jsx(_components.code, {\n children: \"cancelled\"\n }), \" order; the returned \", _jsx(_components.code, {\n children: \"orderIds[0]\"\n }), \" appears in \", _jsx(_components.code, {\n children: \"GET /execution/orders?orderId=\u003cid>\"\n }), \". Fills that happened before the cancel are not recorded by AGG. An order that is already filled, cancelled or not owned by the wallet returns 409.\"]\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,li:`li`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading}=_components;if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`integration-guide`,children:`Integration guide`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Before you call:`}),` `,_jsx(_components.a,{href:`/concepts/authentication`,children:`Sign in and manage sessions`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Workflow:`}),` `,_jsx(_components.a,{href:`/recipes/limit-orders`,children:`Place, track, and cancel limit orders`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Next:`}),` `,_jsx(_components.a,{href:`/concepts/order-lifecycle`,children:`Track orders to a final state`}),`.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cancel an order","description":"Send `orderId` to cancel an agg order. Send `venue`, `venueOrderId`, `signerAddress` and `cancelSignature` to cancel a Polymarket or Hyperliquid limit order that one of your linked self-custody wallets placed outside AGG. `signerAddress` must be a wallet linked to this user and must be the wallet that produced `cancelSignature`. For an external order AGG reads the order from the venue, cancels it, and only after the venue confirms records it as a `cancelled` order; the returned `orderIds[0]` appears in `GET /execution/orders?orderId=\u003cid>`. Fills that happened before the cancel are not recorded by AGG. An order that is already filled, cancelled or not owned by the wallet returns 409.","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/orders/cancel","href":"/api-reference/trading/cancel-an-order","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Integration guide","slug":"integration-guide","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Send `orderId` to cancel an agg order. Send `venue`, `venueOrderId`, `signerAddress` and `cancelSignature` to cancel a Polymarket or Hyperliquid limit order that one of your linked self-custody wallets placed outside AGG. `signerAddress` must be a wallet linked to this user and must be the wallet that produced `cancelSignature`. For an external order AGG reads the order from the venue, cancels it, and only after the venue confirms records it as a `cancelled` order; the returned `orderIds[0]` appears in `GET /execution/orders?orderId=\u003cid>`. Fills that happened before the cancel are not recorded by AGG. An order that is already filled, cancelled or not owned by the wallet returns 409.","summary":"Cancel an order","tags":["Trading"],"operationId":"cancelOrder","responses":{"200":"7e9aabe1-f55f-453a-836a-926c1bddfdd2","400":"d9fd7aad-b177-4d8b-8080-239ae248d507","401":"64036e12-6a11-45a4-a865-f9df7c4be703","403":"b6cd5f63-04db-4a0e-864a-19a1d220be5c","404":"d626be31-2c84-4f81-81c2-435843d3b74b","409":"8ce6ba6e-bc01-4557-a14f-009de7da5158"},"requestBody":"65b6fb09-5615-495f-9c3f-e80ba3df458a","security":["60b6bb0f-60ae-49c3-8523-099f6456cc4c"],"x-mint":{"content":"## Integration guide\n\n- **Before you call:** [Sign in and manage sessions](/concepts/authentication).\n- **Workflow:** [Place, track, and cancel limit orders](/recipes/limit-orders).\n- **Next:** [Track orders to a final state](/concepts/order-lifecycle)."},"method":"post","type":"path","servers":["3915078d-e73f-42da-9155-945be58f38f6"],"path":"/execution/orders/cancel","baseUrlOptions":["https://api.agg.market"],"title":"Cancel an order","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["orderId"],"properties":{"orderId":{"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.orderId","typeLabel":"string"},"cancelSignature":{"oneOf":[{"type":"object","description":"Self-custody Polymarket limit orders only; omit it for managed orders. An EIP-712 signature by the order's signing wallet (the `signingAddress` the order was placed with) over Polymarket's CLOB L1 auth message: domain `{ name: \"ClobAuthDomain\", version: \"1\", chainId: 137 }`, primary type `ClobAuth` with fields `address` (address), `timestamp` (string), `nonce` (uint256), `message` (string), where `address` is the signing wallet, `timestamp` is the `timestamp` below encoded as a decimal string, `nonce` is 0, and `message` is \"This message attests that I control the given wallet\". Ask the user to sign when they cancel. The signature is never persisted or logged. The CLOB credentials derived from it are used only for this request and are not stored.","required":["signature","timestamp"],"properties":{"signature":{"pattern":"^0x[0-9a-fA-F]{130}$","description":"A 65-byte hex signature (`0x` + 130 hex characters).","type":"string","isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.0.signature","typeLabel":"string"},"timestamp":{"minimum":0,"description":"Unix seconds — the value that was signed. Use the current time. Rejected if more than 480 seconds in the future; Polymarket rejects one older than about two minutes.","type":"integer","isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.0.timestamp","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"oneOf.0.cancelSignature.oneOf.0","typeLabel":"object"},{"type":"object","description":"Hyperliquid cancellation signed by the linked EOA or its currently approved agg agent. Sign the single-order cancel action using the Hyperliquid L1 action signer, with nonce Date.now(). The asset and order ID must match this order. Never send the private key.","required":["venue","action","nonce","signature"],"properties":{"venue":{"type":"string","enum":["hyperliquid"],"isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.venue","typeLabel":"enum\u003cstring>"},"action":{"additionalProperties":false,"type":"object","required":["type","cancels"],"properties":{"type":{"type":"string","enum":["cancel"],"isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.action.type","typeLabel":"enum\u003cstring>"},"cancels":{"minItems":1,"maxItems":1,"type":"array","items":{"additionalProperties":false,"type":"object","required":["a","o"],"properties":{"a":{"minimum":0,"maximum":9007199254740991,"type":"integer","isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.action.cancels.items.[INDEX].a","typeLabel":"integer"},"o":{"minimum":1,"maximum":9007199254740991,"type":"integer","isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.action.cancels.items.[INDEX].o","typeLabel":"integer"}},"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.action.cancels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.action.cancels","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.action","typeLabel":"object"},"nonce":{"minimum":1,"maximum":9007199254740991,"type":"integer","isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.nonce","typeLabel":"integer"},"signature":{"additionalProperties":false,"type":"object","required":["r","s","v"],"properties":{"r":{"pattern":"^0x[0-9a-fA-F]{64}$","type":"string","isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.signature.r","typeLabel":"string"},"s":{"pattern":"^0x[0-9a-fA-F]{64}$","type":"string","isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.signature.s","typeLabel":"string"},"v":{"type":"number","enum":[27,28],"isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.signature.v","typeLabel":"enum\u003cnumber>"}},"isRequired":true,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1.signature","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.0.cancelSignature.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.cancelSignature","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["venue","venueOrderId","signerAddress","cancelSignature"],"properties":{"venue":{"type":"string","enum":["polymarket","hyperliquid"],"isRequired":true,"uniqueKey":"oneOf.1.venue","typeLabel":"enum\u003cstring>"},"venueOrderId":{"minLength":1,"maxLength":128,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.venueOrderId","typeLabel":"string"},"signerAddress":{"pattern":"^0x[0-9a-fA-F]{40}$","type":"string","isRequired":true,"uniqueKey":"oneOf.1.signerAddress","typeLabel":"string"},"cancelSignature":{"oneOf":[{"type":"object","description":"Self-custody Polymarket limit orders only; omit it for managed orders. An EIP-712 signature by the order's signing wallet (the `signingAddress` the order was placed with) over Polymarket's CLOB L1 auth message: domain `{ name: \"ClobAuthDomain\", version: \"1\", chainId: 137 }`, primary type `ClobAuth` with fields `address` (address), `timestamp` (string), `nonce` (uint256), `message` (string), where `address` is the signing wallet, `timestamp` is the `timestamp` below encoded as a decimal string, `nonce` is 0, and `message` is \"This message attests that I control the given wallet\". Ask the user to sign when they cancel. The signature is never persisted or logged. The CLOB credentials derived from it are used only for this request and are not stored.","required":["signature","timestamp"],"properties":{"signature":{"pattern":"^0x[0-9a-fA-F]{130}$","description":"A 65-byte hex signature (`0x` + 130 hex characters).","type":"string","isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.0.signature","typeLabel":"string"},"timestamp":{"minimum":0,"description":"Unix seconds — the value that was signed. Use the current time. Rejected if more than 480 seconds in the future; Polymarket rejects one older than about two minutes.","type":"integer","isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.0.timestamp","typeLabel":"integer"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.0","typeLabel":"object"},{"type":"object","description":"Hyperliquid cancellation signed by the linked EOA or its currently approved agg agent. Sign the single-order cancel action using the Hyperliquid L1 action signer, with nonce Date.now(). The asset and order ID must match this order. Never send the private key.","required":["venue","action","nonce","signature"],"properties":{"venue":{"type":"string","enum":["hyperliquid"],"isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.venue","typeLabel":"enum\u003cstring>"},"action":{"additionalProperties":false,"type":"object","required":["type","cancels"],"properties":{"type":{"type":"string","enum":["cancel"],"isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.action.type","typeLabel":"enum\u003cstring>"},"cancels":{"minItems":1,"maxItems":1,"type":"array","items":{"additionalProperties":false,"type":"object","required":["a","o"],"properties":{"a":{"minimum":0,"maximum":9007199254740991,"type":"integer","isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.action.cancels.items.[INDEX].a","typeLabel":"integer"},"o":{"minimum":1,"maximum":9007199254740991,"type":"integer","isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.action.cancels.items.[INDEX].o","typeLabel":"integer"}},"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.action.cancels.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.action.cancels","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.action","typeLabel":"object"},"nonce":{"minimum":1,"maximum":9007199254740991,"type":"integer","isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.nonce","typeLabel":"integer"},"signature":{"additionalProperties":false,"type":"object","required":["r","s","v"],"properties":{"r":{"pattern":"^0x[0-9a-fA-F]{64}$","type":"string","isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.signature.r","typeLabel":"string"},"s":{"pattern":"^0x[0-9a-fA-F]{64}$","type":"string","isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.signature.s","typeLabel":"string"},"v":{"type":"number","enum":[27,28],"isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.signature.v","typeLabel":"enum\u003cnumber>"}},"isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1.signature","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.cancelSignature.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.1.cancelSignature","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"example":{"orderId":"cmf3r1a2b00c4mw0lq8y7e3uj"},"examples":{"Example":{"title":"Example","value":{"orderId":"cmf3r1a2b00c4mw0lq8y7e3uj"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"7e9aabe1-f55f-453a-836a-926c1bddfdd2":{"description":"200","content":{"application/json":{"schema":{"type":"object","required":["quoteId","orderIds","status"],"properties":{"quoteId":{"oneOf":[{"description":"Quote whose orders were cancelled. `null` for limit orders and for orders placed directly on the venue.","type":"string","isRequired":true,"uniqueKey":"quoteId.oneOf.0","typeLabel":"string"},{"description":"Quote whose orders were cancelled. `null` for limit orders and for orders placed directly on the venue.","type":"null","isRequired":true,"uniqueKey":"quoteId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"quoteId","typeLabel":"string | null"},"orderIds":{"description":"Ids of the affected orders. Can be empty for a venue order AGG did not know.","type":"array","items":{"type":"string","uniqueKey":"orderIds.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"orderIds","typeLabel":"string[]"},"status":{"description":"`cancelled`: done. `cancel_pending`: the venue has not confirmed yet; the order moves to `cancelled` (or fills) later.","type":"string","enum":["cancelled","cancel_pending"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"example":{"quoteId":null,"orderIds":["cmf3r1a2b00c4mw0lq8y7e3uj"],"status":"cancelled"},"examples":{"Example":{"title":"Example","value":{"quoteId":null,"orderIds":["cmf3r1a2b00c4mw0lq8y7e3uj"],"status":"cancelled"}}},"exampleType":"examples"}},"exampleType":"examples"},"d9fd7aad-b177-4d8b-8080-239ae248d507":{"description":"400","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"64036e12-6a11-45a4-a865-f9df7c4be703":{"description":"401","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b6cd5f63-04db-4a0e-864a-19a1d220be5c":{"description":"403","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"d626be31-2c84-4f81-81c2-435843d3b74b":{"description":"404","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"8ce6ba6e-bc01-4557-a14f-009de7da5158":{"description":"409","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"60b6bb0f-60ae-49c3-8523-099f6456cc4c":{"appId":{"type":"apiKey","in":"header","name":"x-app-id","description":"Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.","scopes":[],"schemeName":"appId"},"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT access token from POST /auth/verify. Required with x-app-id on user routes. On the smart-route quote it is optional and turns a preview into an executable quote.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"3915078d-e73f-42da-9155-945be58f38f6":{"url":"https://api.agg.market","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-app-id","description":"Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.","scopes":[],"schemeName":"appId"},"schema":{"title":"x-app-id","type":"string","description":"Your application ID. Required on app-tier and user-tier routes. Omitted on routes that authenticate with x-app-api-key only.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"appId","name":"x-app-id"},{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT access token from POST /auth/verify. Required with x-app-id on user routes. On the smart-route quote it is optional and turns a preview into an executable quote.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"JWT access token from POST /auth/verify. Required with x-app-id on user routes. On the smart-route quote it is optional and turns a preview into an executable quote.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"appId \u0026 bearerAuth"}]},"originalFileLocation":"openapi/openapi.json"},"subdomain":"agg","siteName":"Agg.market — Prediction Market Aggregator","title":"Cancel an order - Agg.market — Prediction Market Aggregator","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-19T18:31:38.758Z","originalFileLocation":"api-reference/trading/cancel-an-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=\"system\"}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=\"Send orderId to cancel an agg order. Send venue, venueOrderId, signerAddress and cancelSignature to cancel a Polymarket or Hyperliquid limit order that one of your linked self-custody wallets placed outside AGG. signerAddress must be a wallet linked to this user and must be the wallet that produced cancelSignature. For an external order AGG reads the order from the venue, cancels it, and only after the venue confirms records it as a cancelled order; the returned orderIds[0] appears in GET /execution/orders?orderId=. Fills that happened before the cancel are not recorded by AGG. An order that is already filled, cancelled or not owned by the wallet returns 409.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Agg.market — Prediction Market Aggregator\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_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/agg/DToJYvh64DP_aQ9r/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/agg/DToJYvh64DP_aQ9r/_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/agg/DToJYvh64DP_aQ9r/_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/agg/DToJYvh64DP_aQ9r/_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/agg/DToJYvh64DP_aQ9r/_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/agg/DToJYvh64DP_aQ9r/_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/agg/DToJYvh64DP_aQ9r/_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/agg/DToJYvh64DP_aQ9r/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel an order - Agg.market — Prediction Market Aggregator\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send orderId to cancel an agg order. Send venue, venueOrderId, signerAddress and cancelSignature to cancel a Polymarket or Hyperliquid limit order that one of your linked self-custody wallets placed outside AGG. signerAddress must be a wallet linked to this user and must be the wallet that produced cancelSignature. For an external order AGG reads the order from the venue, cancels it, and only after the venue confirms records it as a cancelled order; the returned orderIds[0] appears in GET /execution/orders?orderId=. Fills that happened before the cancel are not recorded by AGG. An order that is already filled, cancelled or not owned by the wallet returns 409.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Agg.market — Prediction Market Aggregator\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.agg.market/api-reference/trading/cancel-an-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://agg.mintlify.site/_mintlify/api/og/v2?division=Trading\u0026amp;title=Cancel+an+order\u0026amp;description=Send+%60orderId%60+to+cancel+an+agg+order.+Send+%60venue%60%2C+%60venueOrderId%60%2C+%60signerAddress%60+and+%60cancelSignature%60+to+cancel+a+Polymarket+or+Hyperliquid+limit+order+tha\u0026amp;theme=e3d91c6fb16e65bc3c49f43b\u0026amp;signature=2097bfa02f6a8310fe00c79e317560f2ecb2baa7ee1869676e3b387b37fced9e\">\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 an order - Agg.market — Prediction Market Aggregator\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send orderId to cancel an agg order. Send venue, venueOrderId, signerAddress and cancelSignature to cancel a Polymarket or Hyperliquid limit order that one of your linked self-custody wallets placed outside AGG. signerAddress must be a wallet linked to this user and must be the wallet that produced cancelSignature. For an external order AGG reads the order from the venue, cancels it, and only after the venue confirms records it as a cancelled order; the returned orderIds[0] appears in GET /execution/orders?orderId=. Fills that happened before the cancel are not recorded by AGG. An order that is already filled, cancelled or not owned by the wallet returns 409.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://agg.mintlify.site/_mintlify/api/og/v2?division=Trading\u0026amp;title=Cancel+an+order\u0026amp;description=Send+%60orderId%60+to+cancel+an+agg+order.+Send+%60venue%60%2C+%60venueOrderId%60%2C+%60signerAddress%60+and+%60cancelSignature%60+to+cancel+a+Polymarket+or+Hyperliquid+limit+order+tha\u0026amp;theme=e3d91c6fb16e65bc3c49f43b\u0026amp;signature=2097bfa02f6a8310fe00c79e317560f2ecb2baa7ee1869676e3b387b37fced9e\">\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/agg/DToJYvh64DP_aQ9r/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Agg.market — Prediction Market Aggregator\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ED8200\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.agg.market/api-reference/trading/cancel-an-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/trading/cancel-an-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.agg.market/#organization\",\"name\":\"Agg.market — Prediction Market Aggregator\",\"url\":\"https://docs.agg.market\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/agg/SLxnoWBYT8Zyhg9W/assets/agg-dark.svg?fit=max\u0026auto=format\u0026n=SLxnoWBYT8Zyhg9W\u0026q=85\u0026s=f1b6e05f3e2529bc2c7698267234f5d1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.agg.market#website\",\"name\":\"Agg.market — Prediction Market Aggregator\",\"url\":\"https://docs.agg.market\",\"publisher\":{\"@id\":\"https://docs.agg.market/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.agg.market/api-reference/trading/cancel-an-order#webpage\",\"url\":\"https://docs.agg.market/api-reference/trading/cancel-an-order\",\"name\":\"Cancel an order\",\"description\":\"Send orderId to cancel an agg order. Send venue, venueOrderId, signerAddress and cancelSignature to cancel a Polymarket or Hyperliquid limit order that one of your linked self-custody wallets placed outside AGG. signerAddress must be a wallet linked to this user and must be the wallet that produced cancelSignature. For an external order AGG reads the order from the venue, cancels it, and only after the venue confirms records it as a cancelled order; the returned orderIds[0] appears in GET /execution/orders?orderId=. Fills that happened before the cancel are not recorded by AGG. An order that is already filled, cancelled or not owned by the wallet returns 409.\",\"dateModified\":\"2026-11-19T18:31:38.758Z\",\"isPartOf\":{\"@id\":\"https://docs.agg.market#website\"},\"breadcrumb\":{\"@id\":\"https://docs.agg.market/api-reference/trading/cancel-an-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.agg.market/api-reference/trading/cancel-an-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trading\",\"item\":\"https://docs.agg.market/api-reference/trading/get-a-quote-smart-route\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cancel an order\",\"item\":\"https://docs.agg.market/api-reference/trading/cancel-an-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.agg.market/api-reference/trading/cancel-an-order#apireference\",\"headline\":\"Cancel an order\",\"name\":\"Cancel an order\",\"description\":\"Send orderId to cancel an agg order. Send venue, venueOrderId, signerAddress and cancelSignature to cancel a Polymarket or Hyperliquid limit order that one of your linked self-custody wallets placed outside AGG. signerAddress must be a wallet linked to this user and must be the wallet that produced cancelSignature. For an external order AGG reads the order from the venue, cancels it, and only after the venue confirms records it as a cancelled order; the returned orderIds[0] appears in GET /execution/orders?orderId=. Fills that happened before the cancel are not recorded by AGG. An order that is already filled, cancelled or not owned by the wallet returns 409.\",\"url\":\"https://docs.agg.market/api-reference/trading/cancel-an-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.agg.market/api-reference/trading/cancel-an-order#webpage\"},\"dateModified\":\"2026-11-19T18:31:38.758Z\",\"publisher\":{\"@id\":\"https://docs.agg.market/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.agg.market#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Agg.market — Prediction Market Aggregator\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Agg.market — Prediction Market Aggregator\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/trading/cancel-an-order.md","siteName":"Agg.market — Prediction Market Aggregator","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/reference"}]},{"tab":"Trading API","groups":[{"group":"Authentication","pages":[{"title":"Start authentication","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /auth/start","href":"/api-reference/authentication/start-authentication"},{"title":"Verify sign-in","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /auth/verify","href":"/api-reference/authentication/verify-sign-in"},{"title":"Complete redirect sign-in","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /auth/token/exchange","href":"/api-reference/authentication/complete-redirect-sign-in"},{"title":"Refresh access token","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /auth/token/refresh","href":"/api-reference/authentication/refresh-access-token"},{"title":"Sign out","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /auth/sign-out","href":"/api-reference/authentication/sign-out"},{"title":"Fetch Turnstile site key","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /bot-protection/site-key","href":"/api-reference/authentication/fetch-turnstile-site-key"},{"title":"Verify Turnstile token","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /bot-protection/verify","href":"/api-reference/authentication/verify-turnstile-token"}]},{"group":"Markets","pages":[{"title":"Get the first useful event view","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-events/{id}/bootstrap","href":"/api-reference/markets/get-the-first-useful-event-view"},{"title":"Search events or markets","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /search","href":"/api-reference/markets/search-events-or-markets"},{"title":"List catalog changes","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /catalog/changes","href":"/api-reference/markets/list-catalog-changes"},{"title":"List venue events","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-events","href":"/api-reference/markets/list-venue-events"},{"title":"Get Venue Event","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-events/{id}","href":"/api-reference/markets/get-venue-event"},{"title":"List venue markets","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-markets","href":"/api-reference/markets/list-venue-markets"},{"title":"Look up venue market outcomes by external identifier","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-market-outcomes","href":"/api-reference/markets/look-up-venue-market-outcomes-by-external-identifier"},{"title":"List categories","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /categories","href":"/api-reference/markets/list-categories"},{"title":"Get the per-app UI config (disabled venues + categories)","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /app/config","href":"/api-reference/markets/get-the-per-app-ui-config-disabled-venues-+-categories"},{"title":"List recurring crypto window markets","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /crypto/recurring-markets","href":"/api-reference/markets/list-recurring-crypto-window-markets"}]},{"group":"Market Data","pages":[{"title":"Get bounded outcome snapshots","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /orderbooks/outcomes","href":"/api-reference/market-data/get-bounded-outcome-snapshots"},{"title":"Get live orderbooks for multiple markets","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /orderbooks","href":"/api-reference/market-data/get-live-orderbooks-for-multiple-markets"},{"title":"Get live orderbook for a single outcome","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /orderbook/outcome/{outcomeId}","href":"/api-reference/market-data/get-live-orderbook-for-a-single-outcome"},{"title":"Get live midpoints for multiple markets","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /midpoints","href":"/api-reference/market-data/get-live-midpoints-for-multiple-markets"},{"title":"Get versioned chart history references","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /charts/history/manifest","href":"/api-reference/market-data/get-versioned-chart-history-references"},{"title":"Get chart bars","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /charts/bars","href":"/api-reference/market-data/get-chart-bars"},{"title":"Get live crypto reference prices","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /crypto/reference-prices","href":"/api-reference/market-data/get-live-crypto-reference-prices"},{"title":"Get live sports scores","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /sports/live","href":"/api-reference/market-data/get-live-sports-scores"}]},{"group":"Trading","pages":[{"title":"Get a quote (smart route)","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /orderbook/{venueMarketOutcomeId}/route","href":"/api-reference/trading/get-a-quote-smart-route"},{"title":"Execute quote","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/fill","href":"/api-reference/trading/execute-quote"},{"title":"Submit signatures for a pending self-custody fill","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/fill/{quoteId}/signatures","href":"/api-reference/trading/submit-signatures-for-a-pending-self-custody-fill"},{"title":"Get execution status","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/status","href":"/api-reference/trading/get-execution-status"},{"title":"Place an order directly","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/orders","href":"/api-reference/trading/place-an-order-directly"},{"title":"Place limit order","description":"Places a venue-specific limit order. Managed orders reserve funds or shares. Self-custody buys can fund across supported chains using the existing client-signature flow; poll quoteId until the order is open or terminal. Fills are reconciled asynchronously.","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/limit-orders","href":"/api-reference/trading/place-limit-order"},{"title":"Cancel an order","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/orders/cancel","href":"/api-reference/trading/cancel-an-order"},{"title":"Redeem winnings for resolved positions","description":"Claims a user's settled positions as USDC: winning shares, and split payouts such as a Polymarket 50/50. EVM venue redemptions need no user wallet prompt and complete asynchronously; listen for redeem_event on the WebSocket. Venues that settle on their own need no redeem call, and their positions report redeemStatus ineligible or redeemed.","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/redeem","href":"/api-reference/trading/redeem-winnings-for-resolved-positions"},{"title":"Get the per-venue blocked-country lists (ISO 3166-1 alpha-2)","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /app/venue-geo-policy","href":"/api-reference/trading/get-the-per-venue-blocked-country-lists-iso-3166-1-alpha-2"}]},{"group":"Portfolio","pages":[{"title":"Get user orders","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/orders","href":"/api-reference/portfolio/get-user-orders"},{"title":"Get balances","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/balances","href":"/api-reference/portfolio/get-balances"},{"title":"Get user positions","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/positions","href":"/api-reference/portfolio/get-user-positions"},{"title":"Get user activity feed","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/activity","href":"/api-reference/portfolio/get-user-activity-feed"},{"title":"Trader leaderboard","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /leaderboard","href":"/api-reference/portfolio/trader-leaderboard"},{"title":"Trader leaderboard series","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /leaderboard/series","href":"/api-reference/portfolio/trader-leaderboard-series"}]},{"group":"Funding","pages":[{"title":"Get deposit addresses","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/deposit-addresses","href":"/api-reference/funding/get-deposit-addresses"},{"title":"Quote withdrawable amount","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/withdrawable/quote","href":"/api-reference/funding/quote-withdrawable-amount"},{"title":"Preview a withdrawal","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/withdraw/preview","href":"/api-reference/funding/preview-a-withdrawal"},{"title":"Withdraw funds","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/withdraw","href":"/api-reference/funding/withdraw-funds"},{"title":"Get withdrawal status","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/withdrawals/{withdrawalId}","href":"/api-reference/funding/get-withdrawal-status"},{"title":"List managed balance refill policies","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/balance-refill-policies","href":"/api-reference/funding/list-managed-balance-refill-policies"},{"title":"Create a managed balance refill policy","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/balance-refill-policies","href":"/api-reference/funding/create-a-managed-balance-refill-policy"},{"title":"Update or pause a managed balance refill policy","deprecated":null,"version":null,"openapi":"/openapi/openapi.json patch /execution/balance-refill-policies/{policyId}","href":"/api-reference/funding/update-or-pause-a-managed-balance-refill-policy"},{"title":"List recent managed balance refill attempts","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /execution/balance-refill-policies/{policyId}/attempts","href":"/api-reference/funding/list-recent-managed-balance-refill-attempts"},{"title":"Get crypto purchase quotes","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /ramp/quotes","href":"/api-reference/funding/get-crypto-purchase-quotes"},{"title":"Create a ramp widget session for checkout","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /ramp/session","href":"/api-reference/funding/create-a-ramp-widget-session-for-checkout"},{"title":"Submit signatures for a pending self-custody withdrawal","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /execution/withdrawals/{withdrawalId}/signatures","href":"/api-reference/funding/submit-signatures-for-a-pending-self-custody-withdrawal"}]},{"group":"Users","pages":[{"title":"Get current user","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/me","href":"/api-reference/users/get-current-user"},{"title":"Update username","deprecated":null,"version":null,"openapi":"/openapi/openapi.json patch /users/me","href":"/api-reference/users/update-username"},{"title":"Link partner external user ID (HMAC-verified)","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/external-id","href":"/api-reference/users/link-partner-external-user-id-hmac-verified"},{"title":"Get avatar upload URL","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/avatar","href":"/api-reference/users/get-avatar-upload-url"},{"title":"Disconnect auth provider","deprecated":null,"version":null,"openapi":"/openapi/openapi.json delete /users/me/accounts/{provider}","href":"/api-reference/users/disconnect-auth-provider"},{"title":"Start account linking","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/link-account/start","href":"/api-reference/users/start-account-linking"},{"title":"Confirm account linking","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/link-account/confirm","href":"/api-reference/users/confirm-account-linking"},{"title":"Get shared KYC status","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /kyc/status","href":"/api-reference/users/get-shared-kyc-status"},{"title":"Initiate KYC","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /kyc/{venue}","href":"/api-reference/users/initiate-kyc"},{"title":"Upsert a venue API key","deprecated":null,"version":null,"openapi":"/openapi/openapi.json put /venue-keys","href":"/api-reference/users/upsert-a-venue-api-key"},{"title":"List venue keys","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-keys","href":"/api-reference/users/list-venue-keys"},{"title":"Delete a venue key","deprecated":null,"version":null,"openapi":"/openapi/openapi.json delete /venue-keys/{venue}","href":"/api-reference/users/delete-a-venue-key"},{"title":"Get venue key connection status","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /venue-keys/{venue}/status","href":"/api-reference/users/get-venue-key-connection-status"}]},{"group":"Hosted Venue Accounts","pages":[{"title":"Get hosted venue deposit address","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/me/venue-accounts/{venue}/deposit-address","href":"/api-reference/hosted-venue-accounts/get-hosted-venue-deposit-address"},{"title":"Withdraw hosted venue funds","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/venue-accounts/{venue}/withdrawals","href":"/api-reference/hosted-venue-accounts/withdraw-hosted-venue-funds"},{"title":"Get hosted venue withdrawal","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/me/venue-accounts/{venue}/withdrawals/{withdrawalId}","href":"/api-reference/hosted-venue-accounts/get-hosted-venue-withdrawal"},{"title":"Get hosted venue account activity","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/me/venue-accounts/{venue}/activity","href":"/api-reference/hosted-venue-accounts/get-hosted-venue-account-activity"},{"title":"Get hosted venue account","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /users/me/venue-accounts/{venue}","href":"/api-reference/hosted-venue-accounts/get-hosted-venue-account"},{"title":"Provision hosted venue account","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /users/me/venue-accounts/{venue}","href":"/api-reference/hosted-venue-accounts/provision-hosted-venue-account"}]},{"group":"News","pages":[{"title":"Get news articles for markets with market impact summaries","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /news-feed/market-news","href":"/api-reference/news/get-news-articles-for-markets-with-market-impact-summaries"},{"title":"Article-centric news feed for a category - latest articles with linked markets and live prices","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /news-feed/{category}","href":"/api-reference/news/article-centric-news-feed-for-a-category--latest-articles-with-linked-markets-and-live-prices"},{"title":"Market-centric news feed - markets grouped with their news timeline","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /news-feed/{category}/markets","href":"/api-reference/news/market-centric-news-feed--markets-grouped-with-their-news-timeline"},{"title":"List available news feeds with IDs and item counts","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /news-feed","href":"/api-reference/news/list-available-news-feeds-with-ids-and-item-counts"}]},{"group":"Correlated Markets","pages":[{"title":"Get correlated market signals for a market","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /correlated-markets/{venueMarketId}","href":"/api-reference/correlated-markets/get-correlated-market-signals-for-a-market"},{"title":"Find correlated markets by semantic similarity","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /correlated-markets/query","href":"/api-reference/correlated-markets/find-correlated-markets-by-semantic-similarity"},{"title":"Find events connected via shared market signals","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /correlated-markets/connections/{venueMarketId}","href":"/api-reference/correlated-markets/find-events-connected-via-shared-market-signals"},{"title":"Get ripple effect of a market resolving (by market ID)","deprecated":null,"version":null,"openapi":"/openapi/openapi.json get /correlated-markets/cascade/{venueMarketId}","href":"/api-reference/correlated-markets/get-ripple-effect-of-a-market-resolving-by-market-id"},{"title":"Resolve a market by venue ID, slug, or text and return cascade","deprecated":null,"version":null,"openapi":"/openapi/openapi.json post /correlated-markets/resolve","href":"/api-reference/correlated-markets/resolve-a-market-by-venue-id-slug-or-text-and-return-cascade"}]}]},{"tab":"Server API","pages":[{"title":"Server API","href":"/api-reference/webhooks/rotate-webhook-signing-secret"}]},{"tab":"WebSocket API","pages":[{"title":"WebSocket API","href":"/api-reference/websockets/orderbook"}]}]},"basePath":"","title":"Cancel an order - Agg.market — Prediction Market Aggregator","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-BOAJk9BH.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CiUHMMOm.js","snippetPresets-BgfXU7Bw.js","utils-DWvOwgy_.js","style-to-object-BY3JEAdk.js","utils-BN7RXSMJ.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CFw8bq89.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CAwdfOU2.js","_Uint8Array-BJr8e-ZL.js","isObject-FP1Yky1u.js","ApiExamples-XX0UgMZK.js","usePlaygroundInputsStore-DXDFSa1V.js","shallow-CdX5aREi.js","isEqual-CoOaxexF.js","CodeSnippets-Cg2wpzWm.js","CodeSnippet-D_HwgQO_.js","getApiPlaygroundDisplay-CmCoerhe.js","Page-CVJ-f_k1.js","DynamicMarkdown-CQM9Bhbv.js","SectionHeading-DpbrP8nQ.js","icon-BPCgijHy.js","MethodPill-GQ8DuY0c.js","getPastedJson-Cb5mT31m.js","Check2Icon-a7bUI6e8.js","axios-CsQoIw0U.js","Markdown-CX2QY19L.js","AssistantPageLink-CY3bFglh.js"]}