Submit multiple cancel-and-replace operations in one request. Each executed operation has the same non-atomic behavior as POST /orders/cancel-replace, and one operation result does not stop later operations.
Send operations as an array of 1 to 4 cancel-and-replace operations. Each item contains cancel, replacement, mode, and optional onBehalfOf fields as described in the single-operation reference.Use HMAC authentication with the trading scope and sign the exact JSON body with the path /orders/cancel-replace/batch. Each signed replacement remains a normal EIP-712 order; delegated body onBehalfOf operations follow the same authorized-owner and delegated-signing rules. The x-on-behalf-of header is not supported.
A request-level validation, authorization, market, signature, maintenance-mode, or receive-window error rejects the batch without a results array; maintenance-mode and receive-window failures return 425 Too Early. Duplicate cancellation targets and duplicate normalized replacement clientOrderId values also reject the entire request. Accepted operations then report independent cancellation and replacement outcomes.
The order values below illustrate the request shape. Generate each order.signature from its complete replacement payload instead of copying the placeholder signatures.
Accepted operations execute sequentially and the response preserves request order: every result has the zero-based index of its input operation. Operations produce independent outcomes, so inspect both cancel and replacement for every index rather than treating the HTTP status as an item-level result. A failed operation does not stop later operations.If all items have top-level cancel.status: "SUCCESS" and replacement.status: "SUCCESS", the endpoint returns 200 OK. If any item has another top-level status, it returns 207 Multi-Status with every result, including successful items.
STOP_ON_FAILURE produces NOT_ATTEMPTED only for the affected operation. ALLOW_FAILURE still attempts that operation’s replacement. Cancellation and replacement outcomes can also be UNKNOWN when the final result cannot be determined.Insufficient balance or allowance can produce a successful cancellation with an item-level replacement FAILURE and an HTTP-status error code such as "400". The batch continues and returns 207 Multi-Status with all results.A receive-window or trading-availability rejection can likewise produce a successful cancellation with an item-level replacement FAILURE and error.code: "425".Operation error codes are strings, not a closed enum. A missing cancellation target uses ORDER_NOT_FOUND; request failures use decimal HTTP status strings such as 400, 404, 409, 425, or 500; other failures use INTERNAL_ERROR. FAILURE identifies a known failure and UNKNOWN an inconclusive outcome. Cancellation authorization failures remain request-level 401 or 403 responses.Request-level errors use their ordinary HTTP status instead of 207 Multi-Status. A 207 is returned when at least one operation has a non-success top-level result.
HTTP 200 versus 207 follows the top-level cancellation and placement statuses. An accepted replacement stays top-level SUCCESS even if its nested execution.settlementStatus is FAILED; the nested reason carries the settlement failure.
Scoped API token with HMAC-SHA256 signing. Requires three headers: lmts-api-key (token ID), lmts-timestamp (ISO-8601), lmts-signature (Base64-encoded HMAC). See Authentication docs for details.
Outcomes in input order. Each item includes its zero-based input index.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Limitless Exchange","colors":{"primary":"#9AB83A","light":"#DCF58C","dark":"#7A9A1E"},"logo":{"light":"https://mintcdn.com/limitless/r7gW3TwphUtCZ8zM/logo/light.svg?fit=max\u0026auto=format\u0026n=r7gW3TwphUtCZ8zM\u0026q=85\u0026s=0d6f32ed5e8a1f35ba9d1fa2e0b57a4b","dark":"https://mintcdn.com/limitless/r7gW3TwphUtCZ8zM/logo/dark.svg?fit=max\u0026auto=format\u0026n=r7gW3TwphUtCZ8zM\u0026q=85\u0026s=6500e01609e582f758db1a9610b63bd8"},"favicon":"https://mintcdn.com/limitless/r7gW3TwphUtCZ8zM/favicon.svg?fit=max\u0026auto=format\u0026n=r7gW3TwphUtCZ8zM\u0026q=85\u0026s=345f02206803d94b3b1911d2a80bf9c3","api":{"playground":{}},"navbar":{"links":[{"href":"mailto:help@limitless.network","label":"Support"}]},"footer":{"socials":{"x":"https://x.com/trylimitless","discord":"https://discord.com/invite/yb4SscD8RZ"}},"seo":{"metatags":{"twitter:card":"summary_large_image"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Limitless Exchange","icon":"arrow-up-right-from-square","href":"https://limitless.exchange"},{"anchor":"Builders Chat","icon":"telegram","href":"https://t.me/LimitlessBuildersChat"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/yb4SscD8RZ"},{"anchor":"Twitter","icon":"x-twitter","href":"https://x.com/trylimitless"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"limitless","hasAudioNarration":false,"actualSubdomain":"limitless","customDomains":["docs.limitless.exchange"],"gitSource":{"type":"github","owner":"limitless-labs-group","repo":"limitless-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae2027fd6a250fd1db9a4f3","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"API Reference","count":81},{"language":"default","tag":"For Developers","count":67},{"language":"default","tag":"User Guide","count":26},{"language":"default","tag":"Portfolio","count":14},{"language":"default","tag":"Trading","count":14},{"language":"default","tag":"Getting Started","count":14},{"language":"default","tag":"Go SDK","count":11},{"language":"default","tag":"Python SDK","count":11},{"language":"default","tag":"Rust SDK","count":11},{"language":"default","tag":"TypeScript SDK","count":11}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/trading/cancel-replace-batch","slug":"/api-reference/trading/cancel-replace-batch","pageMetadata":{"title":"Cancel and Replace Orders (Batch)","openapi":"POST /orders/cancel-replace/batch","description":null,"href":"/api-reference/trading/cancel-replace-batch"},"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`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Submit multiple cancel-and-replace operations in one request. Each executed operation has the same non-atomic behavior as `,_jsx(_components.a,{href:`/api-reference/trading/cancel-replace`,children:_jsx(_components.code,{children:`POST /orders/cancel-replace`})}),`, and one operation result does not stop later operations.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`operations`}),` as an array of 1 to 4 cancel-and-replace operations. Each item contains `,_jsx(_components.code,{children:`cancel`}),`, `,_jsx(_components.code,{children:`replacement`}),`, `,_jsx(_components.code,{children:`mode`}),`, and optional `,_jsx(_components.code,{children:`onBehalfOf`}),` fields as described in the `,_jsx(_components.a,{href:`/api-reference/trading/cancel-replace#request`,children:`single-operation reference`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Use HMAC authentication with the `,_jsx(_components.code,{children:`trading`}),` scope and sign the exact JSON body with the path `,_jsx(_components.code,{children:`/orders/cancel-replace/batch`}),`. Each signed replacement remains a normal EIP-712 order; delegated body `,_jsx(_components.code,{children:`onBehalfOf`}),` operations follow the same authorized-owner and delegated-signing rules. The `,_jsx(_components.code,{children:`x-on-behalf-of`}),` header is not supported.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`A request-level validation, authorization, market, signature, maintenance-mode, or receive-window error rejects the batch without a `,_jsx(_components.code,{children:`results`}),` array; maintenance-mode and receive-window failures return `,_jsx(_components.code,{children:`425 Too Early`}),`. Duplicate cancellation targets and duplicate normalized replacement `,_jsx(_components.code,{children:`clientOrderId`}),` values also reject the entire request. Accepted operations then report independent cancellation and replacement outcomes.`]})}),`\n`,_jsxs(_components.p,{children:[`The order values below illustrate the request shape. Generate each `,_jsx(_components.code,{children:`order.signature`}),` from its complete replacement payload instead of copying the placeholder signatures.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`58`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`58`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"operations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"orderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"replacement\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ownerId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12345`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"orderType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GTC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"marketSlug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"btc-100k\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"clientOrderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"replacement-101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"salt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1778155025318314496\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"signer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x0000000000000000000000000000000000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokenId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"19633204485790857949828516737993423758628930235371629943999544859324645414627\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"makerAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5000000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"takerAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10000000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"nonce\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"feeRateBps\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"side\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"signature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"signatureType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"STOP_ON_FAILURE\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"clientOrderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"missing-order-102\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"replacement\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ownerId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`12345`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"orderType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GTC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"marketSlug\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"btc-100k\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"clientOrderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"replacement-102\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"order\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"salt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1778155025318314497\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"signer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x742d35Cc6634C0532925a3b844Bc454e4438f44e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taker\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x0000000000000000000000000000000000000000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tokenId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"19633204485790857949828516737993423758628930235371629943999544859324645414627\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"makerAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5500000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"takerAmount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10000000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"nonce\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"price\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.55`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"feeRateBps\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"side\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"signature\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x5678\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"signatureType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ALLOW_FAILURE\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`ordering-and-partial-failures`,children:`Ordering and partial failures`}),`\n`,_jsxs(_components.p,{children:[`Accepted operations execute sequentially and the response preserves request order: every result has the zero-based `,_jsx(_components.code,{children:`index`}),` of its input operation. Operations produce independent outcomes, so inspect both `,_jsx(_components.code,{children:`cancel`}),` and `,_jsx(_components.code,{children:`replacement`}),` for every index rather than treating the HTTP status as an item-level result. A failed operation does not stop later operations.`]}),`\n`,_jsxs(_components.p,{children:[`If all items have top-level `,_jsx(_components.code,{children:`cancel.status: \"SUCCESS\"`}),` and `,_jsx(_components.code,{children:`replacement.status: \"SUCCESS\"`}),`, the endpoint returns `,_jsx(_components.code,{children:`200 OK`}),`. If any item has another top-level status, it returns `,_jsx(_components.code,{children:`207 Multi-Status`}),` with every result, including successful items.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`35`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`35`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"results\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"index\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SUCCESS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"orderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"replacement\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FAILURE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"425\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"order receive window expired: elapsed=2500ms, window=1500ms\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"index\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cancel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FAILURE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ORDER_NOT_FOUND\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Order not found\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"replacement\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FAILURE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"400\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Insufficient balance\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`STOP_ON_FAILURE`}),` produces `,_jsx(_components.code,{children:`NOT_ATTEMPTED`}),` only for the affected operation. `,_jsx(_components.code,{children:`ALLOW_FAILURE`}),` still attempts that operation’s replacement. Cancellation and replacement outcomes can also be `,_jsx(_components.code,{children:`UNKNOWN`}),` when the final result cannot be determined.`]}),`\n`,_jsxs(_components.p,{children:[`Insufficient balance or allowance can produce a successful cancellation with an item-level replacement `,_jsx(_components.code,{children:`FAILURE`}),` and an HTTP-status error code such as `,_jsx(_components.code,{children:`\"400\"`}),`. The batch continues and returns `,_jsx(_components.code,{children:`207 Multi-Status`}),` with all results.`]}),`\n`,_jsxs(_components.p,{children:[`A receive-window or trading-availability rejection can likewise produce a successful cancellation with an item-level replacement `,_jsx(_components.code,{children:`FAILURE`}),` and `,_jsx(_components.code,{children:`error.code: \"425\"`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Operation error codes are strings, not a closed enum. A missing cancellation target uses `,_jsx(_components.code,{children:`ORDER_NOT_FOUND`}),`; request failures use decimal HTTP status strings such as `,_jsx(_components.code,{children:`400`}),`, `,_jsx(_components.code,{children:`404`}),`, `,_jsx(_components.code,{children:`409`}),`, `,_jsx(_components.code,{children:`425`}),`, or `,_jsx(_components.code,{children:`500`}),`; other failures use `,_jsx(_components.code,{children:`INTERNAL_ERROR`}),`. `,_jsx(_components.code,{children:`FAILURE`}),` identifies a known failure and `,_jsx(_components.code,{children:`UNKNOWN`}),` an inconclusive outcome. Cancellation authorization failures remain request-level `,_jsx(_components.code,{children:`401`}),` or `,_jsx(_components.code,{children:`403`}),` responses.`]}),`\n`,_jsxs(_components.p,{children:[`Request-level errors use their ordinary HTTP status instead of `,_jsx(_components.code,{children:`207 Multi-Status`}),`. A `,_jsx(_components.code,{children:`207`}),` is returned when at least one operation has a non-success top-level result.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`HTTP `,_jsx(_components.code,{children:`200`}),` versus `,_jsx(_components.code,{children:`207`}),` follows the top-level cancellation and placement statuses. An accepted replacement stays top-level `,_jsx(_components.code,{children:`SUCCESS`}),` even if its nested `,_jsx(_components.code,{children:`execution.settlementStatus`}),` is `,_jsx(_components.code,{children:`FAILED`}),`; the nested `,_jsx(_components.code,{children:`reason`}),` carries the settlement failure.`]})})]})}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 and Replace Orders (Batch)","openapi":"POST /orders/cancel-replace/batch","description":null,"href":"/api-reference/trading/cancel-replace-batch"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Ordering and partial failures","slug":"ordering-and-partial-failures","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"OrderController_cancelReplaceBatch","parameters":[],"requestBody":"8c8fae00-d276-48ed-9e2d-d15623d5419b","responses":{"200":"6f2770db-fc1c-47fe-ace3-d3494a1820f0","207":"511ea82b-320e-4ab3-85f0-47029cc2c40a","400":"7e0d3a08-bfa6-4248-943c-0ab9ab9c2c7d","401":"f77007e6-4b84-4592-b205-2806719e0ae3","403":"3d5d653b-0d2b-4f3c-92ef-7c4a8ff09404","404":"654cb00f-ea2a-4bcc-be4b-271e924e9ee7","425":"4226af51-1f03-41be-b61b-2f3e64334696","500":"b33999ad-45cf-4b94-8082-d53305e9086a"},"security":["66ceca00-08ca-4629-92f0-5fa059c26a7d"],"summary":"Cancel and replace orders sequentially and non-atomically","tags":["Trading"],"method":"post","type":"path","servers":["09c89b92-1b1b-488d-af55-0f936f286701"],"path":"/orders/cancel-replace/batch","baseUrlOptions":["https://api.limitless.exchange"],"title":"Cancel and replace orders sequentially and non-atomically","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"operations":{"minItems":1,"maxItems":4,"description":"Independent cancel-and-replace operations","type":"array","items":{"type":"object","properties":{"cancel":{"oneOf":[{"type":"object","description":"Order to cancel; provide exactly one identifier","required":["orderId"],"properties":{"orderId":{"type":"string","description":"Internal order ID. Provide exactly one of orderId or clientOrderId.","example":"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203","format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$","isRequired":true,"uniqueKey":"operations.items.[INDEX].cancel.oneOf.0.orderId","typeLabel":"string\u003cuuid>"},"clientOrderId":{"type":"string","description":"Client-provided order ID from order creation. Provide exactly one of orderId or clientOrderId.","example":"partner-order-001","maxLength":128,"uniqueKey":"operations.items.[INDEX].cancel.oneOf.0.clientOrderId","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"operations.items.[INDEX].cancel.oneOf.0","typeLabel":"object"},{"type":"object","description":"Order to cancel; provide exactly one identifier","required":["clientOrderId"],"properties":{"clientOrderId":{"type":"string","description":"Client-provided order ID from order creation. Provide exactly one of orderId or clientOrderId.","example":"partner-order-001","maxLength":128,"isRequired":true,"uniqueKey":"operations.items.[INDEX].cancel.oneOf.1.clientOrderId","typeLabel":"string"},"orderId":{"type":"string","description":"Internal order ID. Provide exactly one of orderId or clientOrderId.","example":"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203","format":"uuid","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$","uniqueKey":"operations.items.[INDEX].cancel.oneOf.1.orderId","typeLabel":"string\u003cuuid>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"operations.items.[INDEX].cancel.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"operations.items.[INDEX].cancel","typeLabel":"object"},"replacement":{"type":"object","properties":{"order":{"oneOf":[{"type":"object","description":"Order details including signature and amounts","required":["salt","maker","signer","tokenId","makerAmount","takerAmount","nonce","feeRateBps","side","signature","signatureType"],"properties":{"salt":{"oneOf":[{"type":"string","description":"Unique random value for signature uniqueness. Send unsafe integers as decimal strings to preserve EIP-712 bytes.","pattern":"^\\d+$","example":"1778155025318314496","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.salt.oneOf.0","typeLabel":"string"},{"type":"number","description":"Unique random value for signature uniqueness. Send unsafe integers as decimal strings to preserve EIP-712 bytes.","example":1234567890,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.salt.oneOf.1","typeLabel":"number"}],"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.salt","typeLabel":"string | number"},"maker":{"type":"string","description":"Ethereum address of the maker (order creator)","example":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.maker","typeLabel":"string"},"signer":{"type":"string","description":"Address that signed the order","example":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.signer","typeLabel":"string"},"tokenId":{"type":"string","description":"Token ID being traded (YES or NO position ID from conditional token)","example":"19633204485790857949828516737993423758628930235371629943999544859324645414627","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.tokenId","typeLabel":"string"},"makerAmount":{"type":"integer","description":"Raw 6-decimal amount offered by the maker. For GTC/FAK: collateral for BUY or contracts for SELL. For FOK: maximum collateral for BUY or contracts for SELL.","example":5000000,"minimum":100,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.makerAmount","typeLabel":"integer"},"takerAmount":{"type":"integer","description":"Raw 6-decimal amount requested. For GTC/FAK: contracts for BUY or collateral for SELL. For FOK this must equal 1.","example":10000000,"minimum":1,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.takerAmount","typeLabel":"integer"},"nonce":{"type":"number","description":"Required numeric zero.","example":0,"enum":[0],"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.nonce","typeLabel":"enum\u003cnumber>"},"feeRateBps":{"type":"number","description":"Fee rate in basis points (1% = 100)","example":0,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.feeRateBps","typeLabel":"number"},"side":{"type":"number","description":"Order side: 0 = BUY, 1 = SELL","enum":[0,1],"example":0,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.side","typeLabel":"enum\u003cnumber>"},"signature":{"type":"string","description":"EIP-712 signature of order details as a 0x-prefixed hex string with full-byte (even) length. Optional when using delegated signing.","example":"0x6e3a3f2c2c2bb1ce3a14c4f5e4ad6f3c8b1ad9c44d4d5fa1c4cd5b6e74a4d4a36cc4ad9c44d4d5fa1c4cd5b6e74a4d4a36cc4ad9c44d4d5fa1c4cd5b6e74a4d41b","pattern":"^0x([a-fA-F0-9]{2})*$","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.signature","typeLabel":"string"},"signatureType":{"type":"number","description":"Signature type (0-3). Optional when using delegated signing.","enum":[0,1,2,3],"example":2,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.signatureType","typeLabel":"enum\u003cnumber>"},"taker":{"type":"string","description":"Specific taker address (optional for open orders)","example":"0x0000000000000000000000000000000000000000","pattern":"^0x[a-fA-F0-9]{40}$","uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.taker","typeLabel":"string"},"expiration":{"type":"string","description":"Omission is signed as zero; if supplied, the value must represent zero because non-zero expiration is unsupported.","example":"0","pattern":"^0+$","uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.expiration","typeLabel":"string"},"price":{"type":"number","description":"Required for GTC/FAK and forbidden for FOK. Decimal price with at most three places; price × contracts must equal the collateral amount exactly as an integer.","example":0.75,"minimum":0.001,"maximum":0.999,"multipleOf":0.001,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0.price","typeLabel":"number"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.0","typeLabel":"object"},{"type":"object","description":"Order details including signature and amounts","required":["salt","maker","signer","tokenId","makerAmount","takerAmount","nonce","feeRateBps","side"],"properties":{"salt":{"oneOf":[{"type":"string","description":"Unique random value for signature uniqueness. Send unsafe integers as decimal strings to preserve EIP-712 bytes.","pattern":"^\\d+$","example":"1778155025318314496","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.salt.oneOf.0","typeLabel":"string"},{"type":"number","description":"Unique random value for signature uniqueness. Send unsafe integers as decimal strings to preserve EIP-712 bytes.","example":1234567890,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.salt.oneOf.1","typeLabel":"number"}],"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.salt","typeLabel":"string | number"},"maker":{"type":"string","description":"Ethereum address of the maker (order creator)","example":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.maker","typeLabel":"string"},"signer":{"type":"string","description":"Address that signed the order","example":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.signer","typeLabel":"string"},"tokenId":{"type":"string","description":"Token ID being traded (YES or NO position ID from conditional token)","example":"19633204485790857949828516737993423758628930235371629943999544859324645414627","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.tokenId","typeLabel":"string"},"makerAmount":{"type":"integer","description":"Raw 6-decimal amount offered by the maker. For GTC/FAK: collateral for BUY or contracts for SELL. For FOK: maximum collateral for BUY or contracts for SELL.","example":5000000,"minimum":100,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.makerAmount","typeLabel":"integer"},"takerAmount":{"type":"integer","description":"Raw 6-decimal amount requested. For GTC/FAK: contracts for BUY or collateral for SELL. For FOK this must equal 1.","example":10000000,"minimum":1,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.takerAmount","typeLabel":"integer"},"nonce":{"type":"number","description":"Required numeric zero.","example":0,"enum":[0],"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.nonce","typeLabel":"enum\u003cnumber>"},"feeRateBps":{"type":"number","description":"Fee rate in basis points (1% = 100)","example":0,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.feeRateBps","typeLabel":"number"},"side":{"type":"number","description":"Order side: 0 = BUY, 1 = SELL","enum":[0,1],"example":0,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.side","typeLabel":"enum\u003cnumber>"},"taker":{"type":"string","description":"Specific taker address (optional for open orders)","example":"0x0000000000000000000000000000000000000000","pattern":"^0x[a-fA-F0-9]{40}$","uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.taker","typeLabel":"string"},"expiration":{"type":"string","description":"Omission is signed as zero; if supplied, the value must represent zero because non-zero expiration is unsupported.","example":"0","pattern":"^0+$","uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.expiration","typeLabel":"string"},"price":{"type":"number","description":"Required for GTC/FAK and forbidden for FOK. Decimal price with at most three places; price × contracts must equal the collateral amount exactly as an integer.","example":0.75,"minimum":0.001,"maximum":0.999,"multipleOf":0.001,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.price","typeLabel":"number"},"signature":{"type":"string","description":"EIP-712 signature of order details as a 0x-prefixed hex string with full-byte (even) length. Optional when using delegated signing.","example":"0x6e3a3f2c2c2bb1ce3a14c4f5e4ad6f3c8b1ad9c44d4d5fa1c4cd5b6e74a4d4a36cc4ad9c44d4d5fa1c4cd5b6e74a4d4a36cc4ad9c44d4d5fa1c4cd5b6e74a4d41b","pattern":"^0x([a-fA-F0-9]{2})*$","uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.signature","typeLabel":"string"},"signatureType":{"type":"number","description":"Signature type (0-3). Optional when using delegated signing.","enum":[0,1,2,3],"example":2,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1.signatureType","typeLabel":"enum\u003cnumber>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.order","typeLabel":"object"},"ownerId":{"type":"integer","description":"Required profile ID of the order owner. For delegated signing, send the target profile ID as both ownerId and onBehalfOf.","example":12345,"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.ownerId","typeLabel":"integer"},"orderType":{"type":"string","description":"Order type (GTC=Good Till Cancelled, FAK=Fill And Kill, FOK=Fill Or Kill)","enum":["FAK","FOK","GTC"],"example":"GTC","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.orderType","typeLabel":"enum\u003cstring>"},"marketSlug":{"type":"string","description":"Market identifier slug","example":"biden-vs-trump-2024","isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement.marketSlug","typeLabel":"string"},"postOnly":{"type":"boolean","description":"Reject the order if it would match immediately. Supported only for GTC orders.","example":true,"uniqueKey":"operations.items.[INDEX].replacement.postOnly","typeLabel":"boolean"},"clientOrderId":{"type":"string","description":"Optional owner-scoped uniqueness and deduplication key. The submitted value is limited to 128 characters, then trimmed; blank values are rejected. Reuse returns 409 rather than replaying an earlier response.","example":"client-order-001","maxLength":128,"uniqueKey":"operations.items.[INDEX].replacement.clientOrderId","typeLabel":"string"},"timestamp":{"type":"integer","description":"Optional client-stamped order creation time, Unix ms epoch. Top-level request field; not part of the EIP-712 signed order payload.","example":1735689600000,"minimum":0,"uniqueKey":"operations.items.[INDEX].replacement.timestamp","typeLabel":"integer"},"recvWindow":{"type":"integer","description":"Optional maximum accepted order age in milliseconds. Valid range: 1 to 10000. If omitted, the server applies a 2000 ms default receive window. Top-level request field; not part of the EIP-712 signed order payload.","example":1500,"maximum":10000,"minimum":1,"uniqueKey":"operations.items.[INDEX].replacement.recvWindow","typeLabel":"integer"},"stpPolicy":{"type":"string","description":"Self-trade prevention policy. If omitted, defaults to cancel_maker. Top-level request field; not part of the EIP-712 signed order payload.","enum":["cancel_both","cancel_maker","cancel_taker"],"example":"cancel_maker","uniqueKey":"operations.items.[INDEX].replacement.stpPolicy","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"description":"Replacement order fields. This is the POST /orders request shape without onBehalfOf; delegation is set on the enclosing cancel-replace operation.","required":["order","ownerId","orderType","marketSlug"],"isRequired":true,"uniqueKey":"operations.items.[INDEX].replacement","typeLabel":"object"},"mode":{"type":"string","enum":["ALLOW_FAILURE","STOP_ON_FAILURE"],"description":"Whether to stop this operation or attempt replacement after cancellation failure","example":"STOP_ON_FAILURE","isRequired":true,"uniqueKey":"operations.items.[INDEX].mode","typeLabel":"enum\u003cstring>"},"onBehalfOf":{"type":"number","minimum":1,"description":"Authorized partner sub-account profile ID. Applies to both cancellation and replacement.","example":12345,"uniqueKey":"operations.items.[INDEX].onBehalfOf","typeLabel":"number"}},"additionalProperties":false,"required":["cancel","replacement","mode"],"uniqueKey":"operations.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"operations","typeLabel":"object[]"}},"additionalProperties":false,"required":["operations"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"operations":[{"cancel":{"orderId":"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203","clientOrderId":"partner-order-001"},"replacement":{"order":{"salt":"1778155025318314496","maker":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","signer":"0x742d35Cc6634C0532925a3b844Bc454e4438f44e","tokenId":"19633204485790857949828516737993423758628930235371629943999544859324645414627","makerAmount":5000000,"takerAmount":10000000,"nonce":0,"feeRateBps":0,"side":0,"signature":"0x6e3a3f2c2c2bb1ce3a14c4f5e4ad6f3c8b1ad9c44d4d5fa1c4cd5b6e74a4d4a36cc4ad9c44d4d5fa1c4cd5b6e74a4d4a36cc4ad9c44d4d5fa1c4cd5b6e74a4d41b","signatureType":2,"taker":"0x0000000000000000000000000000000000000000","expiration":"0","price":0.75},"ownerId":12345,"orderType":"GTC","marketSlug":"biden-vs-trump-2024","postOnly":true,"clientOrderId":"client-order-001","timestamp":1735689600000,"recvWindow":1500,"stpPolicy":"cancel_maker"},"mode":"STOP_ON_FAILURE","onBehalfOf":12345}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"6f2770db-fc1c-47fe-ace3-d3494a1820f0":{"description":"Every operation succeeded","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","description":"Outcomes in input order. Each item includes its zero-based input index.","items":{"type":"object","description":"Independent cancellation and replacement outcomes.","required":["index","cancel","replacement"],"properties":{"cancel":{"oneOf":[{"type":"object","required":["status","orderId"],"properties":{"status":{"type":"string","enum":["SUCCESS"],"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.0.status","typeLabel":"enum\u003cstring>"},"orderId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.0.orderId","typeLabel":"string\u003cuuid>"},"clientOrderId":{"type":"string","uniqueKey":"results.items.[INDEX].cancel.oneOf.0.clientOrderId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.0","typeLabel":"object"},{"type":"object","description":"FAILURE covers a missing target or expected HTTP error below 500. UNKNOWN means the cancellation outcome could not be determined.","required":["status","error"],"properties":{"status":{"type":"string","enum":["FAILURE","UNKNOWN"],"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.1.status","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"ORDER_NOT_FOUND, a decimal HTTP status such as 400/404/409/425/500, or INTERNAL_ERROR.","example":"ORDER_NOT_FOUND","isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.1.error.code","typeLabel":"string"},"message":{"type":"string","example":"Order not found","isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.1.error.message","typeLabel":"string"}},"description":"Operation-level error. Code is not a closed enum: ORDER_NOT_FOUND identifies a missing cancellation target, decimal HTTP status strings identify captured HTTP failures, and INTERNAL_ERROR identifies uncategorized errors.","required":["code","message"],"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.1.error","typeLabel":"object"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel","typeLabel":"object"},"replacement":{"oneOf":[{"type":"object","description":"The matching engine accepted the replacement. The canonical created-order, owner, maker-match, and execution schemas are reused; nested settlementStatus may still be FAILED with a free-form reason.","required":["status","data"],"properties":{"status":{"type":"string","enum":["SUCCESS"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.status","typeLabel":"enum\u003cstring>"},"data":{"type":"object","properties":{"order":{"type":"object","description":"Order details including slim market and owner","required":["id","salt","maker","signer","tokenId","signatureType","signature","orderType","side","marketId","ownerId","createdAt","market","makerAmount","takerAmount","nonce","owner"],"properties":{"id":{"type":"string","format":"uuid","description":"Internal order ID","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.id","typeLabel":"string\u003cuuid>"},"salt":{"type":"string","description":"Order salt as a decimal string","example":"1778155025318314496","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.salt","typeLabel":"string"},"maker":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.maker","typeLabel":"string"},"signer":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.signer","typeLabel":"string"},"tokenId":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.tokenId","typeLabel":"string"},"signatureType":{"type":"number","enum":[0,1,2,3],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.signatureType","typeLabel":"enum\u003cnumber>"},"signature":{"type":"string","pattern":"^0x([a-fA-F0-9]{2})*$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.signature","typeLabel":"string"},"orderType":{"type":"string","enum":["GTC","FAK","FOK"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.orderType","typeLabel":"enum\u003cstring>"},"side":{"type":"number","enum":[0,1],"description":"0 = BUY, 1 = SELL","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.side","typeLabel":"enum\u003cnumber>"},"marketId":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.marketId","typeLabel":"string"},"ownerId":{"type":"integer","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.ownerId","typeLabel":"integer"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.createdAt","typeLabel":"string\u003cdate-time>"},"market":{"type":"object","properties":{"id":{"type":"integer","example":7348,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.id","typeLabel":"integer"},"slug":{"type":"string","example":"btc-up-or-down-1-hour","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.slug","typeLabel":"string"},"title":{"type":"string","example":"BTC Up or Down - Hourly","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.title","typeLabel":"string"},"status":{"type":"string","example":"FUNDED","enum":["CREATED","DRAFTED","FUNDED","LOCKED","RESOLVED"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.status","typeLabel":"enum\u003cstring>"},"yesPositionId":{"oneOf":[{"type":"string","example":"11514974713064423461...","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.yesPositionId.oneOf.0","typeLabel":"string"},{"type":"null","example":"11514974713064423461...","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.yesPositionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.yesPositionId","typeLabel":"string | null"},"noPositionId":{"oneOf":[{"type":"string","example":"14525308260861904048...","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.noPositionId.oneOf.0","typeLabel":"string"},{"type":"null","example":"14525308260861904048...","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.noPositionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.noPositionId","typeLabel":"string | null"},"group":{"type":"object","properties":{"id":{"type":"integer","example":42,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.group.id","typeLabel":"integer"},"slug":{"type":"string","example":"btc-price-markets","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.group.slug","typeLabel":"string"},"title":{"type":"string","example":"BTC Price Markets","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.group.title","typeLabel":"string"}},"required":["id","slug","title"],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.group","typeLabel":"object"}},"required":["id","slug","title","status","yesPositionId","noPositionId"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market","typeLabel":"object"},"makerAmount":{"type":"integer","description":"Raw 6-decimal amount","example":5000000,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.makerAmount","typeLabel":"integer"},"takerAmount":{"type":"integer","description":"Raw 6-decimal amount","example":10000000,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.takerAmount","typeLabel":"integer"},"nonce":{"type":"number","enum":[0],"description":"Numeric zero","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.nonce","typeLabel":"enum\u003cnumber>"},"owner":{"type":"object","properties":{"id":{"type":"integer","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.id","typeLabel":"integer"},"account":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.account","typeLabel":"string"},"client":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.client","typeLabel":"string"},"tradeWalletOption":{"oneOf":[{"type":"string","enum":["eoa","smartWallet"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.tradeWalletOption.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["eoa","smartWallet"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.tradeWalletOption.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.tradeWalletOption","typeLabel":"enum\u003cstring> | null"},"smartWallet":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.smartWallet.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.smartWallet.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.smartWallet","typeLabel":"string | null"},"username":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.username","typeLabel":"string"},"displayName":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.displayName","typeLabel":"string"},"pfpUrl":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.pfpUrl.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.pfpUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.pfpUrl","typeLabel":"string | null"},"socialUrl":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.socialUrl.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.socialUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.socialUrl","typeLabel":"string | null"},"rankName":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.rankName","typeLabel":"string"},"points":{"type":"number","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.points","typeLabel":"number"},"referredUsersCount":{"type":"integer","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.referredUsersCount","typeLabel":"integer"},"isTop100":{"type":"boolean","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.isTop100","typeLabel":"boolean"},"leaderboardPosition":{"type":"integer","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.leaderboardPosition","typeLabel":"integer"}},"required":["id","account","client","tradeWalletOption","smartWallet","username","displayName","pfpUrl","socialUrl","rankName","points","referredUsersCount"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner","typeLabel":"object"},"taker":{"oneOf":[{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.taker.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^0x[a-fA-F0-9]{40}$","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.taker.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.taker","typeLabel":"string | null"},"expiration":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.expiration.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.expiration.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.expiration","typeLabel":"string\u003cdate-time> | null"},"feeRateBps":{"oneOf":[{"type":"integer","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.feeRateBps.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.feeRateBps.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.feeRateBps","typeLabel":"integer | null"},"price":{"type":"number","example":0.75,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.price","typeLabel":"number"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order","typeLabel":"object"},"execution":{"type":"object","description":"Execution and settlement summary","required":["matched","settlementStatus","feeRateBps","effectiveFeeBps","totalsRaw"],"properties":{"matched":{"type":"boolean","example":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.matched","typeLabel":"boolean"},"settlementStatus":{"type":"string","example":"MINED","enum":["UNMATCHED","MATCHED","MINED","CONFIRMED","RETRYING","FAILED","DELAYED","CANCELED"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.settlementStatus","typeLabel":"enum\u003cstring>"},"feeRateBps":{"type":"number","example":25,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.feeRateBps","typeLabel":"number"},"effectiveFeeBps":{"type":"number","example":26,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.effectiveFeeBps","typeLabel":"number"},"totalsRaw":{"type":"object","properties":{"contractsGross":{"type":"string","example":"1000000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.contractsGross","typeLabel":"string"},"contractsFee":{"type":"string","example":"1000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.contractsFee","typeLabel":"string"},"contractsNet":{"type":"string","example":"999000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.contractsNet","typeLabel":"string"},"usdGross":{"type":"string","example":"500000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.usdGross","typeLabel":"string"},"usdFee":{"type":"string","example":"500","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.usdFee","typeLabel":"string"},"usdNet":{"type":"string","example":"499500","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.usdNet","typeLabel":"string"}},"required":["contractsGross","contractsFee","contractsNet","usdGross","usdFee","usdNet"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw","typeLabel":"object"},"reason":{"type":"string","example":"settlement transaction reverted","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.reason","typeLabel":"string"},"eligibleAt":{"oneOf":[{"type":"string","example":"2026-06-08T10:15:30.000Z","format":"date-time","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.eligibleAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","example":"2026-06-08T10:15:30.000Z","format":"date-time","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.eligibleAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.eligibleAt","typeLabel":"string\u003cdate-time> | null"},"tradeEventId":{"type":"string","example":"4aa706dd-6c57-4f3c-945a-99818dfd95f1","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.tradeEventId","typeLabel":"string"},"txHash":{"oneOf":[{"type":"string","example":"0xabc123","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.txHash.oneOf.0","typeLabel":"string"},{"type":"null","example":"0xabc123","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.txHash.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.txHash","typeLabel":"string | null"},"clientOrderId":{"type":"string","example":"client-order-001","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.clientOrderId","typeLabel":"string"},"stpMakerCancels":{"example":["4aa706dd-6c57-4f3c-945a-99818dfd95f1"],"type":"array","items":{"type":"string","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.stpMakerCancels.items.[INDEX]","typeLabel":"string"},"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.stpMakerCancels","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution","typeLabel":"object"},"makerMatches":{"description":"Maker matches if order was matched immediately","type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"matchedSize":{"type":"string","description":"Matched contracts in raw 6-decimal units.","example":"1000000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].matchedSize","typeLabel":"string"},"fillPrice":{"type":"string","description":"Effective taker-perspective fill price.","example":"0.55","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].fillPrice","typeLabel":"string"},"fillCost":{"type":"string","description":"Fill collateral cost in raw 6-decimal units.","example":"550000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].fillCost","typeLabel":"string"},"orderId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].orderId","typeLabel":"string\u003cuuid>"},"order":{"type":"object","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.id","typeLabel":"string\u003cuuid>"},"maker":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.maker","typeLabel":"string"},"price":{"oneOf":[{"type":"string","example":"0.55","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.price.oneOf.0","typeLabel":"string"},{"type":"null","example":"0.55","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.price.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.price","typeLabel":"string | null"},"side":{"type":"number","enum":[0,1],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.side","typeLabel":"enum\u003cnumber>"},"tokenId":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.tokenId","typeLabel":"string"},"owner":{"type":"object","properties":{"id":{"type":"integer","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.id","typeLabel":"integer"},"account":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.account","typeLabel":"string"},"client":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.client","typeLabel":"string"},"tradeWalletOption":{"oneOf":[{"type":"string","enum":["eoa","smartWallet"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.tradeWalletOption.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["eoa","smartWallet"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.tradeWalletOption.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.tradeWalletOption","typeLabel":"enum\u003cstring> | null"},"smartWallet":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.smartWallet.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.smartWallet.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.smartWallet","typeLabel":"string | null"},"username":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.username","typeLabel":"string"},"displayName":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.displayName","typeLabel":"string"},"pfpUrl":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.pfpUrl.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.pfpUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.pfpUrl","typeLabel":"string | null"},"socialUrl":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.socialUrl.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.socialUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.socialUrl","typeLabel":"string | null"},"points":{"type":"number","enum":[0],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.points","typeLabel":"enum\u003cnumber>"},"referredUsersCount":{"type":"number","enum":[0],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.referredUsersCount","typeLabel":"enum\u003cnumber>"}},"required":["id","account","client","tradeWalletOption","smartWallet","username","displayName","pfpUrl","socialUrl","points","referredUsersCount"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner","typeLabel":"object"}},"required":["id","maker","price","side","tokenId","owner"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order","typeLabel":"object"}},"required":["id","matchedSize","fillPrice","fillCost","orderId","order"],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX]","typeLabel":"object"},"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches","typeLabel":"object[]"}},"required":["order","execution"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data","typeLabel":"object"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0","typeLabel":"object"},{"type":"object","description":"FAILURE covers rejected and thrown placement errors, including balance or allowance rejection and an execution-time 425 after cancellation. UNKNOWN means placement reported an inconclusive result.","required":["status","error"],"properties":{"status":{"type":"string","enum":["FAILURE","UNKNOWN"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.1.status","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"ORDER_NOT_FOUND, a decimal HTTP status such as 400/404/409/425/500, or INTERNAL_ERROR.","example":"ORDER_NOT_FOUND","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.1.error.code","typeLabel":"string"},"message":{"type":"string","example":"Order not found","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.1.error.message","typeLabel":"string"}},"description":"Operation-level error. Code is not a closed enum: ORDER_NOT_FOUND identifies a missing cancellation target, decimal HTTP status strings identify captured HTTP failures, and INTERNAL_ERROR identifies uncategorized errors.","required":["code","message"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.1.error","typeLabel":"object"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.1","typeLabel":"object"},{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["NOT_ATTEMPTED"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.2.status","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement","typeLabel":"object"},"index":{"type":"integer","minimum":0,"description":"Zero-based input operation index","isRequired":true,"uniqueKey":"results.items.[INDEX].index","typeLabel":"integer"}},"uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"results","typeLabel":"object[]"}},"required":["results"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"results":[{"cancel":{"status":"SUCCESS","orderId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","clientOrderId":"\u003cstring>"},"replacement":{"status":"SUCCESS","data":{"order":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","salt":"1778155025318314496","maker":"\u003cstring>","signer":"\u003cstring>","tokenId":"\u003cstring>","signatureType":0,"signature":"\u003cstring>","orderType":"GTC","side":0,"marketId":"\u003cstring>","ownerId":123,"createdAt":"2023-11-07T05:31:56Z","market":{"id":7348,"slug":"btc-up-or-down-1-hour","title":"BTC Up or Down - Hourly","status":"FUNDED","yesPositionId":"11514974713064423461...","noPositionId":"14525308260861904048...","group":{"id":42,"slug":"btc-price-markets","title":"BTC Price Markets"}},"makerAmount":5000000,"takerAmount":10000000,"nonce":0,"owner":{"id":123,"account":"\u003cstring>","client":"\u003cstring>","tradeWalletOption":"eoa","smartWallet":"\u003cstring>","username":"\u003cstring>","displayName":"\u003cstring>","pfpUrl":"\u003cstring>","socialUrl":"\u003cstring>","rankName":"\u003cstring>","points":123,"referredUsersCount":123,"isTop100":true,"leaderboardPosition":123},"taker":"\u003cstring>","expiration":"2023-11-07T05:31:56Z","feeRateBps":123,"price":0.75},"execution":{"matched":true,"settlementStatus":"MINED","feeRateBps":25,"effectiveFeeBps":26,"totalsRaw":{"contractsGross":"1000000","contractsFee":"1000","contractsNet":"999000","usdGross":"500000","usdFee":"500","usdNet":"499500"},"reason":"settlement transaction reverted","eligibleAt":"2026-06-08T10:15:30.000Z","tradeEventId":"4aa706dd-6c57-4f3c-945a-99818dfd95f1","txHash":"0xabc123","clientOrderId":"client-order-001","stpMakerCancels":["4aa706dd-6c57-4f3c-945a-99818dfd95f1"]},"makerMatches":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","matchedSize":"1000000","fillPrice":"0.55","fillCost":"550000","orderId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","order":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","maker":"\u003cstring>","price":"0.55","side":0,"tokenId":"\u003cstring>","owner":{"id":123,"account":"\u003cstring>","client":"\u003cstring>","tradeWalletOption":"eoa","smartWallet":"\u003cstring>","username":"\u003cstring>","displayName":"\u003cstring>","pfpUrl":"\u003cstring>","socialUrl":"\u003cstring>","points":0,"referredUsersCount":0}}}]}},"index":1}]}}},"exampleType":"generated"}},"exampleType":"generated"},"511ea82b-320e-4ab3-85f0-47029cc2c40a":{"description":"At least one operation did not succeed","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","description":"Outcomes in input order. Each item includes its zero-based input index.","items":{"type":"object","description":"Independent cancellation and replacement outcomes.","required":["index","cancel","replacement"],"properties":{"cancel":{"oneOf":[{"type":"object","required":["status","orderId"],"properties":{"status":{"type":"string","enum":["SUCCESS"],"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.0.status","typeLabel":"enum\u003cstring>"},"orderId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.0.orderId","typeLabel":"string\u003cuuid>"},"clientOrderId":{"type":"string","uniqueKey":"results.items.[INDEX].cancel.oneOf.0.clientOrderId","typeLabel":"string"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.0","typeLabel":"object"},{"type":"object","description":"FAILURE covers a missing target or expected HTTP error below 500. UNKNOWN means the cancellation outcome could not be determined.","required":["status","error"],"properties":{"status":{"type":"string","enum":["FAILURE","UNKNOWN"],"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.1.status","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"ORDER_NOT_FOUND, a decimal HTTP status such as 400/404/409/425/500, or INTERNAL_ERROR.","example":"ORDER_NOT_FOUND","isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.1.error.code","typeLabel":"string"},"message":{"type":"string","example":"Order not found","isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.1.error.message","typeLabel":"string"}},"description":"Operation-level error. Code is not a closed enum: ORDER_NOT_FOUND identifies a missing cancellation target, decimal HTTP status strings identify captured HTTP failures, and INTERNAL_ERROR identifies uncategorized errors.","required":["code","message"],"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.1.error","typeLabel":"object"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].cancel","typeLabel":"object"},"replacement":{"oneOf":[{"type":"object","description":"The matching engine accepted the replacement. The canonical created-order, owner, maker-match, and execution schemas are reused; nested settlementStatus may still be FAILED with a free-form reason.","required":["status","data"],"properties":{"status":{"type":"string","enum":["SUCCESS"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.status","typeLabel":"enum\u003cstring>"},"data":{"type":"object","properties":{"order":{"type":"object","description":"Order details including slim market and owner","required":["id","salt","maker","signer","tokenId","signatureType","signature","orderType","side","marketId","ownerId","createdAt","market","makerAmount","takerAmount","nonce","owner"],"properties":{"id":{"type":"string","format":"uuid","description":"Internal order ID","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.id","typeLabel":"string\u003cuuid>"},"salt":{"type":"string","description":"Order salt as a decimal string","example":"1778155025318314496","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.salt","typeLabel":"string"},"maker":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.maker","typeLabel":"string"},"signer":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.signer","typeLabel":"string"},"tokenId":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.tokenId","typeLabel":"string"},"signatureType":{"type":"number","enum":[0,1,2,3],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.signatureType","typeLabel":"enum\u003cnumber>"},"signature":{"type":"string","pattern":"^0x([a-fA-F0-9]{2})*$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.signature","typeLabel":"string"},"orderType":{"type":"string","enum":["GTC","FAK","FOK"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.orderType","typeLabel":"enum\u003cstring>"},"side":{"type":"number","enum":[0,1],"description":"0 = BUY, 1 = SELL","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.side","typeLabel":"enum\u003cnumber>"},"marketId":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.marketId","typeLabel":"string"},"ownerId":{"type":"integer","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.ownerId","typeLabel":"integer"},"createdAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.createdAt","typeLabel":"string\u003cdate-time>"},"market":{"type":"object","properties":{"id":{"type":"integer","example":7348,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.id","typeLabel":"integer"},"slug":{"type":"string","example":"btc-up-or-down-1-hour","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.slug","typeLabel":"string"},"title":{"type":"string","example":"BTC Up or Down - Hourly","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.title","typeLabel":"string"},"status":{"type":"string","example":"FUNDED","enum":["CREATED","DRAFTED","FUNDED","LOCKED","RESOLVED"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.status","typeLabel":"enum\u003cstring>"},"yesPositionId":{"oneOf":[{"type":"string","example":"11514974713064423461...","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.yesPositionId.oneOf.0","typeLabel":"string"},{"type":"null","example":"11514974713064423461...","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.yesPositionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.yesPositionId","typeLabel":"string | null"},"noPositionId":{"oneOf":[{"type":"string","example":"14525308260861904048...","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.noPositionId.oneOf.0","typeLabel":"string"},{"type":"null","example":"14525308260861904048...","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.noPositionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.noPositionId","typeLabel":"string | null"},"group":{"type":"object","properties":{"id":{"type":"integer","example":42,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.group.id","typeLabel":"integer"},"slug":{"type":"string","example":"btc-price-markets","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.group.slug","typeLabel":"string"},"title":{"type":"string","example":"BTC Price Markets","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.group.title","typeLabel":"string"}},"required":["id","slug","title"],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market.group","typeLabel":"object"}},"required":["id","slug","title","status","yesPositionId","noPositionId"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.market","typeLabel":"object"},"makerAmount":{"type":"integer","description":"Raw 6-decimal amount","example":5000000,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.makerAmount","typeLabel":"integer"},"takerAmount":{"type":"integer","description":"Raw 6-decimal amount","example":10000000,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.takerAmount","typeLabel":"integer"},"nonce":{"type":"number","enum":[0],"description":"Numeric zero","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.nonce","typeLabel":"enum\u003cnumber>"},"owner":{"type":"object","properties":{"id":{"type":"integer","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.id","typeLabel":"integer"},"account":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.account","typeLabel":"string"},"client":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.client","typeLabel":"string"},"tradeWalletOption":{"oneOf":[{"type":"string","enum":["eoa","smartWallet"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.tradeWalletOption.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["eoa","smartWallet"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.tradeWalletOption.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.tradeWalletOption","typeLabel":"enum\u003cstring> | null"},"smartWallet":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.smartWallet.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.smartWallet.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.smartWallet","typeLabel":"string | null"},"username":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.username","typeLabel":"string"},"displayName":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.displayName","typeLabel":"string"},"pfpUrl":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.pfpUrl.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.pfpUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.pfpUrl","typeLabel":"string | null"},"socialUrl":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.socialUrl.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.socialUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.socialUrl","typeLabel":"string | null"},"rankName":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.rankName","typeLabel":"string"},"points":{"type":"number","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.points","typeLabel":"number"},"referredUsersCount":{"type":"integer","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.referredUsersCount","typeLabel":"integer"},"isTop100":{"type":"boolean","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.isTop100","typeLabel":"boolean"},"leaderboardPosition":{"type":"integer","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner.leaderboardPosition","typeLabel":"integer"}},"required":["id","account","client","tradeWalletOption","smartWallet","username","displayName","pfpUrl","socialUrl","rankName","points","referredUsersCount"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.owner","typeLabel":"object"},"taker":{"oneOf":[{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.taker.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^0x[a-fA-F0-9]{40}$","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.taker.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.taker","typeLabel":"string | null"},"expiration":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.expiration.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.expiration.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.expiration","typeLabel":"string\u003cdate-time> | null"},"feeRateBps":{"oneOf":[{"type":"integer","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.feeRateBps.oneOf.0","typeLabel":"integer"},{"type":"null","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.feeRateBps.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.feeRateBps","typeLabel":"integer | null"},"price":{"type":"number","example":0.75,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order.price","typeLabel":"number"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.order","typeLabel":"object"},"execution":{"type":"object","description":"Execution and settlement summary","required":["matched","settlementStatus","feeRateBps","effectiveFeeBps","totalsRaw"],"properties":{"matched":{"type":"boolean","example":true,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.matched","typeLabel":"boolean"},"settlementStatus":{"type":"string","example":"MINED","enum":["UNMATCHED","MATCHED","MINED","CONFIRMED","RETRYING","FAILED","DELAYED","CANCELED"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.settlementStatus","typeLabel":"enum\u003cstring>"},"feeRateBps":{"type":"number","example":25,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.feeRateBps","typeLabel":"number"},"effectiveFeeBps":{"type":"number","example":26,"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.effectiveFeeBps","typeLabel":"number"},"totalsRaw":{"type":"object","properties":{"contractsGross":{"type":"string","example":"1000000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.contractsGross","typeLabel":"string"},"contractsFee":{"type":"string","example":"1000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.contractsFee","typeLabel":"string"},"contractsNet":{"type":"string","example":"999000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.contractsNet","typeLabel":"string"},"usdGross":{"type":"string","example":"500000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.usdGross","typeLabel":"string"},"usdFee":{"type":"string","example":"500","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.usdFee","typeLabel":"string"},"usdNet":{"type":"string","example":"499500","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw.usdNet","typeLabel":"string"}},"required":["contractsGross","contractsFee","contractsNet","usdGross","usdFee","usdNet"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.totalsRaw","typeLabel":"object"},"reason":{"type":"string","example":"settlement transaction reverted","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.reason","typeLabel":"string"},"eligibleAt":{"oneOf":[{"type":"string","example":"2026-06-08T10:15:30.000Z","format":"date-time","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.eligibleAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","example":"2026-06-08T10:15:30.000Z","format":"date-time","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.eligibleAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.eligibleAt","typeLabel":"string\u003cdate-time> | null"},"tradeEventId":{"type":"string","example":"4aa706dd-6c57-4f3c-945a-99818dfd95f1","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.tradeEventId","typeLabel":"string"},"txHash":{"oneOf":[{"type":"string","example":"0xabc123","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.txHash.oneOf.0","typeLabel":"string"},{"type":"null","example":"0xabc123","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.txHash.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.txHash","typeLabel":"string | null"},"clientOrderId":{"type":"string","example":"client-order-001","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.clientOrderId","typeLabel":"string"},"stpMakerCancels":{"example":["4aa706dd-6c57-4f3c-945a-99818dfd95f1"],"type":"array","items":{"type":"string","uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.stpMakerCancels.items.[INDEX]","typeLabel":"string"},"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution.stpMakerCancels","typeLabel":"string[]"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.execution","typeLabel":"object"},"makerMatches":{"description":"Maker matches if order was matched immediately","type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"matchedSize":{"type":"string","description":"Matched contracts in raw 6-decimal units.","example":"1000000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].matchedSize","typeLabel":"string"},"fillPrice":{"type":"string","description":"Effective taker-perspective fill price.","example":"0.55","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].fillPrice","typeLabel":"string"},"fillCost":{"type":"string","description":"Fill collateral cost in raw 6-decimal units.","example":"550000","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].fillCost","typeLabel":"string"},"orderId":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].orderId","typeLabel":"string\u003cuuid>"},"order":{"type":"object","properties":{"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.id","typeLabel":"string\u003cuuid>"},"maker":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.maker","typeLabel":"string"},"price":{"oneOf":[{"type":"string","example":"0.55","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.price.oneOf.0","typeLabel":"string"},{"type":"null","example":"0.55","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.price.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.price","typeLabel":"string | null"},"side":{"type":"number","enum":[0,1],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.side","typeLabel":"enum\u003cnumber>"},"tokenId":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.tokenId","typeLabel":"string"},"owner":{"type":"object","properties":{"id":{"type":"integer","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.id","typeLabel":"integer"},"account":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.account","typeLabel":"string"},"client":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.client","typeLabel":"string"},"tradeWalletOption":{"oneOf":[{"type":"string","enum":["eoa","smartWallet"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.tradeWalletOption.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["eoa","smartWallet"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.tradeWalletOption.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.tradeWalletOption","typeLabel":"enum\u003cstring> | null"},"smartWallet":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.smartWallet.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.smartWallet.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.smartWallet","typeLabel":"string | null"},"username":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.username","typeLabel":"string"},"displayName":{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.displayName","typeLabel":"string"},"pfpUrl":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.pfpUrl.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.pfpUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.pfpUrl","typeLabel":"string | null"},"socialUrl":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.socialUrl.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.socialUrl.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.socialUrl","typeLabel":"string | null"},"points":{"type":"number","enum":[0],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.points","typeLabel":"enum\u003cnumber>"},"referredUsersCount":{"type":"number","enum":[0],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner.referredUsersCount","typeLabel":"enum\u003cnumber>"}},"required":["id","account","client","tradeWalletOption","smartWallet","username","displayName","pfpUrl","socialUrl","points","referredUsersCount"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order.owner","typeLabel":"object"}},"required":["id","maker","price","side","tokenId","owner"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX].order","typeLabel":"object"}},"required":["id","matchedSize","fillPrice","fillCost","orderId","order"],"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches.items.[INDEX]","typeLabel":"object"},"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data.makerMatches","typeLabel":"object[]"}},"required":["order","execution"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0.data","typeLabel":"object"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.0","typeLabel":"object"},{"type":"object","description":"FAILURE covers rejected and thrown placement errors, including balance or allowance rejection and an execution-time 425 after cancellation. UNKNOWN means placement reported an inconclusive result.","required":["status","error"],"properties":{"status":{"type":"string","enum":["FAILURE","UNKNOWN"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.1.status","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"code":{"type":"string","description":"ORDER_NOT_FOUND, a decimal HTTP status such as 400/404/409/425/500, or INTERNAL_ERROR.","example":"ORDER_NOT_FOUND","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.1.error.code","typeLabel":"string"},"message":{"type":"string","example":"Order not found","isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.1.error.message","typeLabel":"string"}},"description":"Operation-level error. Code is not a closed enum: ORDER_NOT_FOUND identifies a missing cancellation target, decimal HTTP status strings identify captured HTTP failures, and INTERNAL_ERROR identifies uncategorized errors.","required":["code","message"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.1.error","typeLabel":"object"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.1","typeLabel":"object"},{"type":"object","required":["status"],"properties":{"status":{"type":"string","enum":["NOT_ATTEMPTED"],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.2.status","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"results.items.[INDEX].replacement","typeLabel":"object"},"index":{"type":"integer","minimum":0,"description":"Zero-based input operation index","isRequired":true,"uniqueKey":"results.items.[INDEX].index","typeLabel":"integer"}},"uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"results","typeLabel":"object[]"}},"required":["results"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"results":[{"cancel":{"status":"SUCCESS","orderId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","clientOrderId":"\u003cstring>"},"replacement":{"status":"SUCCESS","data":{"order":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","salt":"1778155025318314496","maker":"\u003cstring>","signer":"\u003cstring>","tokenId":"\u003cstring>","signatureType":0,"signature":"\u003cstring>","orderType":"GTC","side":0,"marketId":"\u003cstring>","ownerId":123,"createdAt":"2023-11-07T05:31:56Z","market":{"id":7348,"slug":"btc-up-or-down-1-hour","title":"BTC Up or Down - Hourly","status":"FUNDED","yesPositionId":"11514974713064423461...","noPositionId":"14525308260861904048...","group":{"id":42,"slug":"btc-price-markets","title":"BTC Price Markets"}},"makerAmount":5000000,"takerAmount":10000000,"nonce":0,"owner":{"id":123,"account":"\u003cstring>","client":"\u003cstring>","tradeWalletOption":"eoa","smartWallet":"\u003cstring>","username":"\u003cstring>","displayName":"\u003cstring>","pfpUrl":"\u003cstring>","socialUrl":"\u003cstring>","rankName":"\u003cstring>","points":123,"referredUsersCount":123,"isTop100":true,"leaderboardPosition":123},"taker":"\u003cstring>","expiration":"2023-11-07T05:31:56Z","feeRateBps":123,"price":0.75},"execution":{"matched":true,"settlementStatus":"MINED","feeRateBps":25,"effectiveFeeBps":26,"totalsRaw":{"contractsGross":"1000000","contractsFee":"1000","contractsNet":"999000","usdGross":"500000","usdFee":"500","usdNet":"499500"},"reason":"settlement transaction reverted","eligibleAt":"2026-06-08T10:15:30.000Z","tradeEventId":"4aa706dd-6c57-4f3c-945a-99818dfd95f1","txHash":"0xabc123","clientOrderId":"client-order-001","stpMakerCancels":["4aa706dd-6c57-4f3c-945a-99818dfd95f1"]},"makerMatches":[{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","matchedSize":"1000000","fillPrice":"0.55","fillCost":"550000","orderId":"3c90c3cc-0d44-4b50-8888-8dd25736052a","order":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","maker":"\u003cstring>","price":"0.55","side":0,"tokenId":"\u003cstring>","owner":{"id":123,"account":"\u003cstring>","client":"\u003cstring>","tradeWalletOption":"eoa","smartWallet":"\u003cstring>","username":"\u003cstring>","displayName":"\u003cstring>","pfpUrl":"\u003cstring>","socialUrl":"\u003cstring>","points":0,"referredUsersCount":0}}}]}},"index":1}]}}},"exampleType":"generated"}},"exampleType":"generated"},"7e0d3a08-bfa6-4248-943c-0ab9ab9c2c7d":{"description":"Request validation or any operation preflight failed before mutation","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["message","error","statusCode"],"properties":{"message":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","example":"orderIds","isRequired":true,"uniqueKey":"oneOf.0.message.items.[INDEX].field","typeLabel":"string"},"message":{"type":"string","example":"orderIds should not be empty","isRequired":true,"uniqueKey":"oneOf.0.message.items.[INDEX].message","typeLabel":"string"}},"additionalProperties":false,"required":["field","message"],"uniqueKey":"oneOf.0.message.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"object[]"},"error":{"type":"string","enum":["Bad Request"],"isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"enum\u003cstring>"},"statusCode":{"type":"number","enum":[400],"isRequired":true,"uniqueKey":"oneOf.0.statusCode","typeLabel":"enum\u003cnumber>"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["message","error","statusCode"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"string"},"statusCode":{"type":"integer","isRequired":true,"uniqueKey":"oneOf.1.statusCode","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.2.message","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":[{"field":"orderIds","message":"orderIds should not be empty"}],"error":"Bad Request","statusCode":400}}},"exampleType":"generated"}},"exampleType":"generated"},"f77007e6-4b84-4592-b205-2806719e0ae3":{"description":"Authentication or cancellation authorization failed before mutation","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"statusCode":{"type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"additionalProperties":false,"required":["message","error","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","error":"\u003cstring>","statusCode":123}}},"exampleType":"generated"}},"exampleType":"generated"},"3d5d653b-0d2b-4f3c-92ef-7c4a8ff09404":{"description":"Required scope, delegated target authorization, or replacement ownership check failed","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["message","error","statusCode"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"string"},"statusCode":{"type":"integer","isRequired":true,"uniqueKey":"oneOf.1.statusCode","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"654cb00f-ea2a-4bcc-be4b-271e924e9ee7":{"description":"A replacement market or profile was not found during preflight","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"statusCode":{"type":"integer","isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"additionalProperties":false,"required":["message","error","statusCode"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","error":"\u003cstring>","statusCode":123}}},"exampleType":"generated"}},"exampleType":"generated"},"4226af51-1f03-41be-b61b-2f3e64334696":{"description":"Request-wide receive-window or maintenance-mode preflight failure before any cancellation","content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["code","message","mode"],"properties":{"code":{"type":"string","enum":["post_only_mode","cancel_only_mode","trading_disabled"],"isRequired":true,"uniqueKey":"oneOf.1.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","example":"Trading is currently cancel-only. New orders are not accepted, but cancels are allowed.","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"mode":{"type":"string","enum":["post_only","cancel_only","disabled"],"isRequired":true,"uniqueKey":"oneOf.1.mode","typeLabel":"enum\u003cstring>"},"resumeAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"oneOf.1.resumeAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"oneOf.1.resumeAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.resumeAt","typeLabel":"string\u003cdate-time> | null"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"b33999ad-45cf-4b94-8082-d53305e9086a":{"description":"Unexpected request-wide server error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"additionalProperties":false,"required":["message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"66ceca00-08ca-4629-92f0-5fa059c26a7d":{"HmacAuth":{"type":"apiKey","in":"header","name":"lmts-api-key","description":"Scoped API token with HMAC-SHA256 signing. Requires three headers: lmts-api-key (token ID), lmts-timestamp (ISO-8601), lmts-signature (Base64-encoded HMAC). See Authentication docs for details.","scopes":[],"schemeName":"HmacAuth"}}},"servers":{"09c89b92-1b1b-488d-af55-0f936f286701":{"url":"https://api.limitless.exchange","description":"Production API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"lmts-api-key","description":"Scoped API token with HMAC-SHA256 signing. Requires three headers: lmts-api-key (token ID), lmts-timestamp (ISO-8601), lmts-signature (Base64-encoded HMAC). See Authentication docs for details.","scopes":[],"schemeName":"HmacAuth"},"schema":{"title":"lmts-api-key","type":"string","description":"Scoped API token with HMAC-SHA256 signing. Requires three headers: lmts-api-key (token ID), lmts-timestamp (ISO-8601), lmts-signature (Base64-encoded HMAC). See Authentication docs for details.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"HmacAuth","name":"lmts-api-key"}],"title":"HmacAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"limitless","siteName":"Limitless Exchange","title":"Cancel and Replace Orders (Batch) - Limitless Exchange","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-20T19:52:57.013Z","originalFileLocation":"api-reference/trading/cancel-replace-batch.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=\"application-name\" content=\"Limitless Exchange\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/limitless/eKG_O-mKVQpNZHIN/_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/limitless/eKG_O-mKVQpNZHIN/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/limitless/eKG_O-mKVQpNZHIN/_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/limitless/eKG_O-mKVQpNZHIN/_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/limitless/eKG_O-mKVQpNZHIN/_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/limitless/eKG_O-mKVQpNZHIN/_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/limitless/eKG_O-mKVQpNZHIN/_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/limitless/eKG_O-mKVQpNZHIN/_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/limitless/eKG_O-mKVQpNZHIN/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel and Replace Orders (Batch) - Limitless Exchange\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Limitless Exchange\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.limitless.exchange/api-reference/trading/cancel-replace-batch\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://limitless.mintlify.site/_mintlify/api/og/v2?division=Trading\u0026amp;title=Cancel+and+Replace+Orders+%28Batch%29\u0026amp;theme=888cee6df57f640d9a30d0c6\u0026amp;signature=1bf38ff4b137fb8bf3ffe0326995f9769f6babdef54ee34345ccd58896d4f92e\">\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 and Replace Orders (Batch) - Limitless Exchange\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://limitless.mintlify.site/_mintlify/api/og/v2?division=Trading\u0026amp;title=Cancel+and+Replace+Orders+%28Batch%29\u0026amp;theme=888cee6df57f640d9a30d0c6\u0026amp;signature=1bf38ff4b137fb8bf3ffe0326995f9769f6babdef54ee34345ccd58896d4f92e\">\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/limitless/eKG_O-mKVQpNZHIN/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Limitless Exchange\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9AB83A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.limitless.exchange/api-reference/trading/cancel-replace-batch\">\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-replace-batch.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.limitless.exchange/#organization\",\"name\":\"Limitless Exchange\",\"url\":\"https://docs.limitless.exchange\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/limitless/r7gW3TwphUtCZ8zM/logo/light.svg?fit=max\u0026auto=format\u0026n=r7gW3TwphUtCZ8zM\u0026q=85\u0026s=0d6f32ed5e8a1f35ba9d1fa2e0b57a4b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.limitless.exchange#website\",\"name\":\"Limitless Exchange\",\"url\":\"https://docs.limitless.exchange\",\"publisher\":{\"@id\":\"https://docs.limitless.exchange/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.limitless.exchange/api-reference/trading/cancel-replace-batch#webpage\",\"url\":\"https://docs.limitless.exchange/api-reference/trading/cancel-replace-batch\",\"name\":\"Cancel and Replace Orders (Batch)\",\"dateModified\":\"2026-10-20T19:52:57.013Z\",\"isPartOf\":{\"@id\":\"https://docs.limitless.exchange#website\"},\"breadcrumb\":{\"@id\":\"https://docs.limitless.exchange/api-reference/trading/cancel-replace-batch#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.limitless.exchange/api-reference/trading/cancel-replace-batch#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trading\",\"item\":\"https://docs.limitless.exchange/api-reference/trading/create-order\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cancel and Replace Orders (Batch)\",\"item\":\"https://docs.limitless.exchange/api-reference/trading/cancel-replace-batch\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.limitless.exchange/api-reference/trading/cancel-replace-batch#apireference\",\"headline\":\"Cancel and Replace Orders (Batch)\",\"name\":\"Cancel and Replace Orders (Batch)\",\"url\":\"https://docs.limitless.exchange/api-reference/trading/cancel-replace-batch\",\"mainEntityOfPage\":{\"@id\":\"https://docs.limitless.exchange/api-reference/trading/cancel-replace-batch#webpage\"},\"dateModified\":\"2026-10-20T19:52:57.013Z\",\"publisher\":{\"@id\":\"https://docs.limitless.exchange/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.limitless.exchange#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Limitless Exchange\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Limitless Exchange\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/trading/cancel-replace-batch.md","siteName":"Limitless Exchange","nav":{"global":{"anchors":[{"anchor":"Limitless Exchange","icon":"arrow-up-right-from-square","href":"https://limitless.exchange"},{"anchor":"Builders Chat","icon":"telegram","href":"https://t.me/LimitlessBuildersChat"},{"anchor":"Discord","icon":"discord","href":"https://discord.com/invite/yb4SscD8RZ"},{"anchor":"Twitter","icon":"x-twitter","href":"https://x.com/trylimitless"}]},"tabs":[{"tab":"User Guide","pages":[{"title":"User Guide","href":""}]},{"tab":"For Developers","pages":[{"title":"For Developers","href":"/developers/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"group":"System","pages":[{"title":"Maintenance Status","openapi":"GET /maintenance/status","href":"/api-reference/system/maintenance-status"}]},{"group":"Authentication","pages":[{"title":"User Logout","openapi":"POST /auth/logout","href":"/api-reference/auth/logout"},{"title":"Create API Key","openapi":"POST /auth/api-keys","href":"/api-reference/auth/create-api-key"},{"title":"Get Active API Key","openapi":"GET /auth/api-keys","href":"/api-reference/auth/get-api-key"},{"title":"Revoke API Key","openapi":"DELETE /auth/api-keys","href":"/api-reference/auth/revoke-api-key"}]},{"group":"Markets","pages":[{"title":"Browse Active Markets","openapi":"GET /markets/active","href":"/api-reference/markets/browse-active"},{"title":"Browse Active Markets by Category","openapi":"GET /markets/active/{categoryId}","href":"/api-reference/markets/browse-active-category"},{"title":"Get Category Counts","openapi":"GET /markets/categories/count","href":"/api-reference/markets/category-count"},{"title":"Get Active Market Slugs","openapi":"GET /markets/active/slugs","href":"/api-reference/markets/active-slugs"},{"title":"Market Timeline","href":"/api-reference/markets/timeline"},{"title":"Get Market Details","openapi":"GET /markets/{addressOrSlug}","href":"/api-reference/markets/get-market"},{"title":"Resolve Stable Slug","openapi":"GET /markets/stable/{slug}","href":"/api-reference/markets/resolve-stable-slug"},{"title":"Get Oracle Candlesticks","openapi":"GET /markets/{addressOrSlug}/oracle-candles","href":"/api-reference/markets/oracle-candles"},{"title":"Get Feed Events","openapi":"GET /markets/{slug}/get-feed-events","href":"/api-reference/markets/feed-events"},{"title":"Search Markets","openapi":"GET /markets/search","href":"/api-reference/markets/search"}]},{"group":"Packs","pages":[{"title":"List Packs","openapi":"GET /parlay/packs","href":"/api-reference/packs/list-packs"},{"title":"Search Active Packs","openapi":"GET /parlay/packs/search","href":"/api-reference/packs/search-packs"},{"title":"Get Pack","openapi":"GET /parlay/packs/{id}","href":"/api-reference/packs/get-pack"},{"title":"Quote Partner Pack","openapi":"POST /parlay/partner/quote","href":"/api-reference/packs/quote-pack"},{"title":"Buy Partner Pack","openapi":"POST /parlay/partner/buy","href":"/api-reference/packs/buy-pack"},{"title":"List Partner Pack Positions","openapi":"GET /parlay/partner/positions","href":"/api-reference/packs/list-positions"},{"title":"Get Partner Pack Position","openapi":"GET /parlay/partner/positions/{id}","href":"/api-reference/packs/get-position"},{"title":"Claim Partner Pack","openapi":"POST /parlay/partner/positions/{id}/claim","href":"/api-reference/packs/claim-position"},{"title":"Confirm Partner Pack Claim","openapi":"POST /parlay/partner/positions/{id}/claim/confirm","href":"/api-reference/packs/confirm-claim"}]},{"group":"Trading","pages":[{"title":"Create Order","openapi":"POST /orders","href":"/api-reference/trading/create-order"},{"title":"Get Order Status (Batch)","openapi":"POST /orders/status/batch","href":"/api-reference/trading/order-status-batch"},{"title":"Cancel Order (Combined)","openapi":"POST /orders/cancel","href":"/api-reference/trading/cancel"},{"title":"Batch Cancel Orders (Combined)","openapi":"POST /orders/batch-cancel","href":"/api-reference/trading/batch-cancel"},{"title":"Cancel and Replace Order","openapi":"POST /orders/cancel-replace","description":null,"href":"/api-reference/trading/cancel-replace"},{"title":"Cancel and Replace Orders (Batch)","openapi":"POST /orders/cancel-replace/batch","href":"/api-reference/trading/cancel-replace-batch"},{"title":"Cancel Order","openapi":"DELETE /orders/{orderId}","description":"Cancel an open order and return locked funds","href":"/api-reference/trading/cancel-order"},{"title":"Cancel Orders (Batch)","openapi":"POST /orders/cancel-batch","href":"/api-reference/trading/cancel-batch"},{"title":"Cancel All Orders","openapi":"DELETE /orders/all/{slug}","href":"/api-reference/trading/cancel-all"},{"title":"Market Maker Heartbeat","openapi":"POST /heartbeats","href":"/api-reference/trading/heartbeats"},{"title":"Get Orderbook","openapi":"GET /markets/{slug}/orderbook","href":"/api-reference/trading/orderbook"},{"title":"Get Historical Prices","openapi":"GET /markets/{slug}/historical-price","href":"/api-reference/trading/historical-price"},{"title":"Get User Orders","openapi":"GET /markets/{slug}/user-orders","href":"/api-reference/trading/user-orders"},{"title":"Get Market Events","openapi":"GET /markets/{slug}/events","href":"/api-reference/trading/market-events"}]},{"group":"Portfolio","pages":[{"title":"Get Current Profile","openapi":"GET /profiles/me","href":"/api-reference/portfolio/get-current-profile"},{"title":"Get Your Profile","openapi":"GET /profiles/{account}","href":"/api-reference/portfolio/get-profile"},{"title":"Get Trades","openapi":"GET /portfolio/trades","href":"/api-reference/portfolio/trades"},{"title":"Get Positions","openapi":"GET /portfolio/positions","href":"/api-reference/portfolio/positions"},{"title":"Redeem Resolved Positions","href":"/api-reference/portfolio/redeem"},{"title":"Split Collateral Into Outcome Set","href":"/api-reference/portfolio/split"},{"title":"Merge Outcome Set Into Collateral","href":"/api-reference/portfolio/merge"},{"title":"Withdraw From Server Wallet","href":"/api-reference/portfolio/withdraw"},{"title":"Add Withdrawal Address","href":"/api-reference/portfolio/add-withdrawal-address"},{"title":"Delete Withdrawal Address","href":"/api-reference/portfolio/delete-withdrawal-address"},{"title":"Get PnL Chart","openapi":"GET /portfolio/pnl-chart","href":"/api-reference/portfolio/pnl-chart"},{"title":"Get History","openapi":"GET /portfolio/history","href":"/api-reference/portfolio/history"},{"title":"Get Points Breakdown","openapi":"GET /portfolio/points","href":"/api-reference/portfolio/points"},{"title":"Get Trading Allowance","openapi":"GET /portfolio/trading/allowance","href":"/api-reference/portfolio/allowance"}]},{"group":"Market Pages \u0026 Navigation","pages":[{"title":"Get Navigation Tree","openapi":"GET /navigation","href":"/api-reference/navigation/get-navigation"},{"title":"Get Market Page by Path","openapi":"GET /market-pages/by-path","href":"/api-reference/navigation/get-page-by-path"},{"title":"List Markets for a Page","openapi":"GET /market-pages/{id}/markets","href":"/api-reference/navigation/list-page-markets"},{"title":"List Property Keys","openapi":"GET /property-keys","href":"/api-reference/navigation/list-property-keys"},{"title":"Get Property Key","openapi":"GET /property-keys/{id}","href":"/api-reference/navigation/get-property-key"},{"title":"List Property Options","openapi":"GET /property-keys/{id}/options","href":"/api-reference/navigation/list-property-options"}]},{"group":"API Tokens","pages":[{"title":"Get Partner Capabilities","openapi":"GET /auth/api-tokens/capabilities","href":"/api-reference/api-tokens/get-capabilities"},{"title":"Derive Scoped Token","openapi":"POST /auth/api-tokens/derive","href":"/api-reference/api-tokens/derive-token"},{"title":"List Active Tokens","openapi":"GET /auth/api-tokens","href":"/api-reference/api-tokens/list-tokens"},{"title":"Revoke Token","openapi":"DELETE /auth/api-tokens/{tokenId}","href":"/api-reference/api-tokens/revoke-token"}]},{"group":"Partner Accounts","pages":[{"title":"Create Partner Sub-Account","openapi":"POST /profiles/partner-accounts","href":"/api-reference/partner-accounts/create-partner-account"},{"title":"List Partner Sub-Accounts","openapi":"GET /profiles/partner-accounts","href":"/api-reference/partner-accounts/list-partner-accounts"},{"title":"Check Partner Account Allowances","openapi":"GET /profiles/partner-accounts/{profileId}/allowances","href":"/api-reference/partner-accounts/check-allowances"},{"title":"Retry Partner Account Allowances","openapi":"POST /profiles/partner-accounts/{profileId}/allowances/retry","href":"/api-reference/partner-accounts/retry-allowances"}]},{"group":"Public Portfolio","pages":[{"title":"Get User Traded Volume","openapi":"GET /portfolio/{account}/traded-volume","href":"/api-reference/public-portfolio/traded-volume"},{"title":"Get User Positions (Public)","openapi":"GET /portfolio/{account}/positions","href":"/api-reference/public-portfolio/positions"},{"title":"Get Realized PnL (Public)","openapi":"GET /portfolio/{account}/realized-pnl","href":"/api-reference/public-portfolio/realized-pnl"},{"title":"Get PnL Chart (Public)","openapi":"GET /portfolio/{account}/pnl-chart","href":"/api-reference/public-portfolio/pnl-chart"},{"title":"Get User History (Public)","openapi":"GET /portfolio/{account}/history","href":"/api-reference/public-portfolio/history"},{"title":"Get User Accuracy (Public)","openapi":"GET /user-stats/accuracy/{account}","href":"/api-reference/public-portfolio/accuracy"},{"title":"Get User Pack Positions (Public)","openapi":"GET /parlay/{account}/positions","href":"/api-reference/public-portfolio/pack-positions"}]},{"group":"Feed","pages":[{"title":"Get Trading Activity Feed","openapi":"GET /feed/trading","href":"/api-reference/feed/trading-feed"}]},{"group":"Referral","pages":[{"title":"Get My Referral Stats","openapi":"GET /referral/usdc/me","href":"/api-reference/referral/my-stats"},{"title":"Get My Referred Users","openapi":"GET /referral/usdc/referrals","href":"/api-reference/referral/my-referrals"},{"title":"Get Referral Leaderboard","openapi":"GET /referral/usdc/leaderboard","href":"/api-reference/referral/leaderboard"},{"title":"Get Friends Leaderboard","openapi":"GET /referral/usdc/leaderboard/friends","href":"/api-reference/referral/leaderboard-friends"}]},{"group":"Leaderboard","pages":[{"title":"Unrealized PnL Leaderboard by Market","openapi":"GET /leaderboard/pnl/unrealized/markets/{marketId}","href":"/api-reference/leaderboard/unrealized-pnl-market"},{"title":"Biggest Open Positions","openapi":"GET /leaderboard/pnl/unrealized/biggest-positions","href":"/api-reference/leaderboard/biggest-positions"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Cancel and Replace Orders (Batch) - Limitless Exchange","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C9Wu0MeN.js","utils-jWgu-6Qf.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BGuX1ui5.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BQHO1lnV.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js","Page-D6S0Yh6q.js","getPastedJson-CwiYOonh.js","icon-DYDpWmDf.js","MethodPill-C-J-l7_c.js","DuplicateIcon-B6ARwg9w.js","createIcon-Dsv4MtDq.js","DynamicMarkdown-CtasenyM.js","SectionHeading-YNcgYwjB.js","axios-vUo_bRtp.js","Markdown-CwLx6PAg.js","clsx-C3kuh_dz.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CmKHfscc.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-U3mI6Ljh.js"]}