Change the price (orderOdds) and/or volume (orderVolume) of an existing limit order.For partially-filled orders, 4casters cancels the existing order and submits a new one with the supplied values. The new orderVolume does not account for previously filled volume — if you originally placed bet: 10, $5 was filled, and you edit to `orderVolume: 10`, the previous order is cancelled (refunding $5) and a new order is created for $10 (debiting $10), leaving you net $5 down.
A newer gRPC variant lives at POST /session/v4/editOrder. It accepts the same request body and additionally returns errorType on validation failures. Prefer it for new integrations once you’ve confirmed the shape works for you.
Request
POST /session/editOrder
string
required
Order id to edit. Get it from data.unmatched.orderID of /session/v3/place or id from /user/getUnmatched.
integer
New American odds. Pass null to leave odds unchanged.
number
New bet amount. Pass null to leave volume unchanged.
The result mirrors the place order response shape — a cancelled summary plus the new matched / unmatched outcome:
object
Summary of the cancelled-and-replaced original order.
array
Fills produced by re-submitting at the new price/volume. Same shape as a MatchedFill in place order.
object
Resting offer for the unfilled remainder of the new order.
Errors
Status
Meaning
400
Validation error (v4/editOrder returns errorType for these).
503
Orders service unreachable.
Authorizations
Authorization
string
header
required
Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.
Body
application/json
sessionID
string
required
Order id to edit.
orderOdds
integer | null
New American odds. Pass null to leave odds unchanged.
orderVolume
number | null
New bet amount. Pass null to leave volume unchanged. Does not account for previously-filled volume.
orderType
enum<string>
Order placement strategy.
limit — default. Match against any liquidity at your price or better as a taker, rest the remainder as a maker.
post — guarantee maker. Reject if the order would match resting liquidity.
postArb — like post, but allowed to match if the matched odds are within 1% of yours, avoiding taker fees.
fillAndKill — guarantee taker. Match whatever size is available at your price or better and cancel the remainder; never rests. A partial fill is a success; rejected only when there is no matchable liquidity at all.
fillOrKill — all-or-nothing taker. Match the entire bet immediately or the whole order is rejected and any partial fills are rolled back; never rests.
Available options:
limit,
post,
postArb,
fillAndKill,
fillOrKill
userReference
string
intendedOrderVolume
number
Optional. The volume you originally intended to place; used by the server when reconciling partial fills.
expiryChange
string
Optional. New expiration in minutes (string).
blockIfNoOtherSideOrders
boolean
v4 only. Reject the edit if there is no resting opposite-side liquidity.
Response
Edit result. Mirrors the place-order response shape: a cancelled summary plus the new matched / unmatched outcome.
data
object
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"4casters API","colors":{"primary":"#343b86","light":"#979ed1","dark":"#3A4266"},"logo":{"light":"https://mintcdn.com/fourcasterllc/pVIXz8908VNrLZSR/logo/light.svg?fit=max\u0026auto=format\u0026n=pVIXz8908VNrLZSR\u0026q=85\u0026s=b278063748115576ca573e97593d611f","dark":"https://mintcdn.com/fourcasterllc/pVIXz8908VNrLZSR/logo/dark.svg?fit=max\u0026auto=format\u0026n=pVIXz8908VNrLZSR\u0026q=85\u0026s=3f9b1910993abc4e4bcfb6c6499e552c"},"favicon":"https://mintcdn.com/fourcasterllc/6mGQOoYH5gr5CdTZ/favicon.png?fit=max\u0026auto=format\u0026n=6mGQOoYH5gr5CdTZ\u0026q=85\u0026s=2a8cc2f92965802eb2463543c99424b2","footer":{"socials":{"telegram":"https://t.me/+EynAojaTFNhhMDlh"}},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","default":true,"href":"pages/introduction"},{"language":"es","href":"es/pages/introduction"},{"language":"pt-BR","banner":{"content":"Esta documentação foi traduzida por IA por conveniência e pode conter erros. **A versão em inglês é a oficial** — consulte-a antes de confiar nesta página. [Relatar um erro de tradução](https://github.com/4casters-io/docs/issues/new?labels=translation\u0026title=%5Bpt-BR%5D+Translation+issue\u0026body=%2A%2APage%3A%2A%2A+%3C%21--+paste+the+URL+of+the+page+--%3E%0A%0A%2A%2AWhat+reads+wrong%3A%2A%2A+%3C%21--+quote+the+text+--%3E%0A%0A%2A%2ASuggested+wording%3A%2A%2A%0A%0A---%0A_Language%3A+pt-BR.+The+English+page+is+authoritative._%0A)","dismissible":false,"type":"warning"},"href":"pt-BR/pages/introduction"},{"language":"zh-Hans","banner":{"content":"本文档由 AI 翻译,仅为方便阅读而提供,可能存在错误。**以英文文档为准**——依赖本页内容前请对照英文核对。[报告翻译问题](https://github.com/4casters-io/docs/issues/new?labels=translation\u0026title=%5Bzh-Hans%5D+Translation+issue\u0026body=%2A%2APage%3A%2A%2A+%3C%21--+paste+the+URL+of+the+page+--%3E%0A%0A%2A%2AWhat+reads+wrong%3A%2A%2A+%3C%21--+quote+the+text+--%3E%0A%0A%2A%2ASuggested+wording%3A%2A%2A%0A%0A---%0A_Language%3A+zh-Hans.+The+English+page+is+authoritative._%0A)","dismissible":false,"type":"warning"},"href":"zh-Hans/pages/introduction"},{"language":"zh-Hant","banner":{"content":"本文件由 AI 翻譯,僅為方便閱讀而提供,可能存在錯誤。**以英文文件為準**——依賴本頁內容前請對照英文核對。[報告翻譯問題](https://github.com/4casters-io/docs/issues/new?labels=translation\u0026title=%5Bzh-Hant%5D+Translation+issue\u0026body=%2A%2APage%3A%2A%2A+%3C%21--+paste+the+URL+of+the+page+--%3E%0A%0A%2A%2AWhat+reads+wrong%3A%2A%2A+%3C%21--+quote+the+text+--%3E%0A%0A%2A%2ASuggested+wording%3A%2A%2A%0A%0A---%0A_Language%3A+zh-Hant.+The+English+page+is+authoritative._%0A)","dismissible":false,"type":"warning"},"href":"zh-Hant/pages/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fourcasterllc","hasAudioNarration":false,"actualSubdomain":"fourcasterllc","customDomains":["docs.4casters.io"],"gitSource":{"type":"github","owner":"4casters-io","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6b0701de68b5b204fa3a25ab","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"en","tag":"REST API","count":35},{"language":"es","tag":"API REST","count":34},{"language":"pt-BR","tag":"API REST","count":33},{"language":"zh-Hans","tag":"REST API","count":33},{"language":"zh-Hant","tag":"REST API","count":33},{"language":"en","tag":"User","count":13},{"language":"es","tag":"Usuario","count":12},{"language":"pt-BR","tag":"Usuário","count":12},{"language":"zh-Hans","tag":"用户","count":12},{"language":"zh-Hant","tag":"使用者","count":12},{"language":"es","tag":"Órdenes","count":9},{"language":"en","tag":"Orders","count":9},{"language":"pt-BR","tag":"Ordens","count":9},{"language":"zh-Hans","tag":"订单","count":9},{"language":"zh-Hant","tag":"訂單","count":9},{"language":"es","tag":"Mercados","count":8},{"language":"en","tag":"Markets","count":8},{"language":"pt-BR","tag":"Mercados","count":8},{"language":"zh-Hans","tag":"市场","count":8},{"language":"zh-Hant","tag":"市場","count":8},{"language":"es","tag":"API de órdenes","count":4},{"language":"en","tag":"Orders API","count":4},{"language":"pt-BR","tag":"API de Ordens","count":4},{"language":"zh-Hans","tag":"订单 API","count":4},{"language":"zh-Hant","tag":"訂單 API","count":4},{"language":"es","tag":"Primeros pasos","count":3},{"language":"es","tag":"Streaming WebSocket","count":3},{"language":"en","tag":"Getting started","count":3},{"language":"en","tag":"WebSocket Streaming","count":3},{"language":"pt-BR","tag":"Streaming WebSocket","count":3},{"language":"zh-Hans","tag":"WebSocket 推送","count":3},{"language":"zh-Hant","tag":"WebSocket 推送","count":3},{"language":"es","tag":"Introducción","count":2},{"language":"es","tag":"Afiliados","count":2},{"language":"en","tag":"Introduction","count":2},{"language":"en","tag":"Affiliate","count":2},{"language":"pt-BR","tag":"Introdução","count":2},{"language":"pt-BR","tag":"Afiliados","count":2},{"language":"pt-BR","tag":"Primeiros passos","count":2},{"language":"zh-Hans","tag":"简介","count":2},{"language":"zh-Hans","tag":"联盟","count":2},{"language":"zh-Hans","tag":"入门","count":2},{"language":"zh-Hant","tag":"簡介","count":2},{"language":"zh-Hant","tag":"聯盟","count":2},{"language":"zh-Hant","tag":"入門","count":2},{"language":"es","tag":"Registro de cambios","count":1},{"language":"en","tag":"Changelog","count":1},{"language":"pt-BR","tag":"Registro de alterações","count":1},{"language":"zh-Hans","tag":"更新日志","count":1},{"language":"zh-Hant","tag":"更新日誌","count":1}]},"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"pages/rest/orders/edit-order","slug":"/pages/rest/orders/edit-order","pageMetadata":{"title":"Edit an order","description":"Change the price or volume of a resting order","openapi":"POST /session/editOrder","href":"/pages/rest/orders/edit-order"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Change the price or volume of a resting order\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Change the price (`,_jsx(_components.code,{children:`orderOdds`}),`) and/or volume (`,_jsx(_components.code,{children:`orderVolume`}),`) of an existing `,_jsx(_components.strong,{children:`limit`}),` order.`]}),`\n`,_jsxs(_components.p,{children:[`For partially-filled orders, 4casters cancels the existing order and submits a new one with the supplied values. The new `,_jsx(_components.code,{children:`orderVolume`}),` does `,_jsx(_components.strong,{children:`not`}),` account for previously filled volume — if you originally placed `,_jsx(_components.code,{children:`bet: 10`}),`, `,\"$5 was filled, and you edit to `orderVolume: 10`, the previous order is cancelled (refunding $\",`5) and a new order is created for `,`$10 (debiting $`,`10), leaving you net $5 down.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A newer gRPC variant lives at `,_jsx(_components.code,{children:`POST /session/v4/editOrder`}),`. It accepts the same request body and additionally returns `,_jsx(_components.code,{children:`errorType`}),` on validation failures. Prefer it for new integrations once you’ve confirmed the shape works for you.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /session/editOrder`})}),`\n`,_jsx(ParamField,{body:`sessionID`,type:`string`,required:true,id:`param-session-id`,children:_jsxs(_components.p,{children:[`Order id to edit. Get it from `,_jsx(_components.code,{children:`data.unmatched.orderID`}),` of `,_jsx(_components.code,{children:`/session/v3/place`}),` or `,_jsx(_components.code,{children:`id`}),` from `,_jsx(_components.code,{children:`/user/getUnmatched`}),`.`]})}),`\n`,_jsx(ParamField,{body:`orderOdds`,type:`integer`,id:`param-order-odds`,children:_jsxs(_components.p,{children:[`New American odds. Pass `,_jsx(_components.code,{children:`null`}),` to leave odds unchanged.`]})}),`\n`,_jsx(ParamField,{body:`orderVolume`,type:`number`,id:`param-order-volume`,children:_jsxs(_components.p,{children:[`New `,_jsx(_components.code,{children:`bet`}),` amount. Pass `,_jsx(_components.code,{children:`null`}),` to leave volume unchanged.`]})}),`\n`,_jsx(ParamField,{body:`orderType`,type:`string`,id:`param-order-type`,children:_jsxs(_components.p,{children:[`Defaults to `,_jsx(_components.code,{children:`limit`}),`. See `,_jsx(_components.a,{href:`/pages/rest/orders/place-order#order-types`,children:`order types`}),`.`]})}),`\n`,_jsx(ParamField,{body:`userReference`,type:`string`,id:`param-user-reference`,children:_jsxs(_components.p,{children:[`Optional. Replaces the existing `,_jsx(_components.code,{children:`userReference`}),` on the order.`]})}),`\n`,_jsx(ParamField,{body:`intendedOrderVolume`,type:`number`,id:`param-intended-order-volume`,children:_jsx(_components.p,{children:`Optional. The volume you originally intended to place; used by the server when reconciling partial fills.`})}),`\n`,_jsx(ParamField,{body:`expiryChange`,type:`string`,id:`param-expiry-change`,children:_jsx(_components.p,{children:`Optional. New expiration in minutes (string).`})}),`\n`,_jsx(ParamField,{body:`blockIfNoOtherSideOrders`,type:`boolean`,id:`param-block-if-no-other-side-orders`,children:_jsx(_components.p,{children:`v4 only. Reject the edit if there is no resting opposite-side liquidity.`})}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`curl`,numberOfLines:`8`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.4casters.io/session/editOrder`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sessionID\": \"6549b6df6634097d2704716f\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"orderOdds\": 185,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"orderVolume\": 100`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JSON body`,numberOfLines:`5`,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:`5`,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:` \"sessionID\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6549b6df6634097d2704716f\"`}),_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:` \"orderOdds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`185`}),_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:` \"orderVolume\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`The result mirrors the `,_jsx(_components.a,{href:`/pages/rest/orders/place-order#response`,children:`place order`}),` response shape — a `,_jsx(_components.code,{children:`cancelled`}),` summary plus the new `,_jsx(_components.code,{children:`matched`}),` / `,_jsx(_components.code,{children:`unmatched`}),` outcome:`]}),`\n`,_jsx(ResponseField,{name:`data.cancelled`,type:`object`,id:`param-data-cancelled`,children:_jsx(_components.p,{children:`Summary of the cancelled-and-replaced original order.`})}),`\n`,_jsx(ResponseField,{name:`data.matched`,type:`array`,id:`param-data-matched`,children:_jsxs(_components.p,{children:[`Fills produced by re-submitting at the new price/volume. Same shape as a `,_jsx(_components.code,{children:`MatchedFill`}),` in `,_jsx(_components.a,{href:`/pages/rest/orders/place-order#response`,children:`place order`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`data.unmatched`,type:`object`,id:`param-data-unmatched`,children:_jsx(_components.p,{children:`Resting offer for the unfilled remainder of the new order.`})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`Validation error (`,_jsx(_components.code,{children:`v4/editOrder`}),` returns `,_jsx(_components.code,{children:`errorType`}),` for these).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`503`})}),_jsx(_components.td,{children:`Orders service unreachable.`})]})]})]})]})}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":"Edit an order","description":"Change the price or volume of a resting order","openapi":"POST /session/editOrder","href":"/pages/rest/orders/edit-order"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Orders"],"summary":"Edit an order","description":"Change the price or volume of a resting order","requestBody":"a3eb9814-3afc-4501-93fc-8db63b19604d","responses":{"200":"a9a24144-e66f-4c25-8fe8-39126c94989e","400":"f687e012-e414-44fb-b60a-7da428c463dd","401":"5af737fe-0f4b-499b-b730-9900b0099461","503":"b5631c33-428c-4fc7-9f02-2a936d227423"},"method":"post","type":"path","servers":["ccc86785-8157-4fcc-ace4-bc2f3ad7b93f"],"security":["5ae18979-3665-4c20-9524-0f5f8d31552b"],"path":"/session/editOrder","baseUrlOptions":["https://api.4casters.io"],"title":"Edit an order","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["sessionID"],"properties":{"sessionID":{"type":"string","description":"Order id to edit.","isRequired":true,"uniqueKey":"sessionID","typeLabel":"string"},"orderOdds":{"oneOf":[{"type":"integer","description":"New American odds. Pass `null` to leave odds unchanged.","uniqueKey":"orderOdds.oneOf.0","typeLabel":"integer"},{"type":"null","description":"New American odds. Pass `null` to leave odds unchanged.","uniqueKey":"orderOdds.oneOf.1","typeLabel":"null"}],"uniqueKey":"orderOdds","typeLabel":"integer | null"},"orderVolume":{"oneOf":[{"type":"number","description":"New `bet` amount. Pass `null` to leave volume unchanged. **Does not** account for previously-filled volume.","uniqueKey":"orderVolume.oneOf.0","typeLabel":"number"},{"type":"null","description":"New `bet` amount. Pass `null` to leave volume unchanged. **Does not** account for previously-filled volume.","uniqueKey":"orderVolume.oneOf.1","typeLabel":"null"}],"uniqueKey":"orderVolume","typeLabel":"number | null"},"orderType":{"type":"string","enum":["limit","post","postArb","fillAndKill","fillOrKill"],"description":"Order placement strategy.\n\n- `limit` — default. Match against any liquidity at your price or better as a taker, rest the remainder as a maker.\n- `post` — guarantee maker. Reject if the order would match resting liquidity.\n- `postArb` — like `post`, but allowed to match if the matched odds are within 1% of yours, avoiding taker fees.\n- `fillAndKill` — guarantee taker. Match whatever size is available at your price or better and cancel the remainder; never rests. A partial fill is a success; rejected only when there is no matchable liquidity at all.\n- `fillOrKill` — all-or-nothing taker. Match the entire `bet` immediately or the whole order is rejected and any partial fills are rolled back; never rests.","uniqueKey":"orderType","typeLabel":"enum\u003cstring>"},"userReference":{"type":"string","uniqueKey":"userReference","typeLabel":"string"},"intendedOrderVolume":{"type":"number","description":"Optional. The volume you originally intended to place; used by the server when reconciling partial fills.","uniqueKey":"intendedOrderVolume","typeLabel":"number"},"expiryChange":{"type":"string","description":"Optional. New expiration in minutes (string).","uniqueKey":"expiryChange","typeLabel":"string"},"blockIfNoOtherSideOrders":{"type":"boolean","description":"v4 only. Reject the edit if there is no resting opposite-side liquidity.","uniqueKey":"blockIfNoOtherSideOrders","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"example":{"sessionID":"6549b6df6634097d2704716f","orderOdds":185,"orderVolume":100},"examples":{"Example":{"title":"Example","value":{"sessionID":"6549b6df6634097d2704716f","orderOdds":185,"orderVolume":100}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"a9a24144-e66f-4c25-8fe8-39126c94989e":{"description":"Edit result. Mirrors the place-order response shape: a `cancelled` summary plus the new `matched` / `unmatched` outcome.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"cancelled":{"type":"object","description":"Summary of the cancelled-and-replaced original order.","uniqueKey":"data.cancelled","typeLabel":"object"},"matched":{"type":"array","items":{"type":"object","description":"A portion of an order that matched against existing liquidity.","properties":{"amount":{"type":"number","description":"Stake on the matched portion.","uniqueKey":"data.matched.items.[INDEX].amount","typeLabel":"number"},"odds":{"type":"integer","description":"American odds of the fill.","uniqueKey":"data.matched.items.[INDEX].odds","typeLabel":"integer"},"number":{"oneOf":[{"type":"number","description":"Spread or total of the fill (`null` for moneylines).","uniqueKey":"data.matched.items.[INDEX].number.oneOf.0","typeLabel":"number"},{"type":"null","description":"Spread or total of the fill (`null` for moneylines).","uniqueKey":"data.matched.items.[INDEX].number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.matched.items.[INDEX].number","typeLabel":"number | null"},"type":{"type":"string","enum":["moneyline","spread","total","moneyline1x2"],"description":"Market type. `moneyline1x2` is **soccer-only** (three-way money line: home / away / draw).","uniqueKey":"data.matched.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"side":{"type":"string","description":"Order side. Meaning depends on `type`:\n\n- `moneyline`, `spread` — the participant id you are backing.\n- `total` — `\"over\"` or `\"under\"`.\n- `moneyline1x2` — `\"yes\"` or `\"no\"` on the outcome named by `market`.","uniqueKey":"data.matched.items.[INDEX].side","typeLabel":"string"},"market":{"type":"string","description":"Present for `moneyline1x2`.","uniqueKey":"data.matched.items.[INDEX].market","typeLabel":"string"},"orderID":{"type":"string","description":"Order id of the matched offer on the other side.","uniqueKey":"data.matched.items.[INDEX].orderID","typeLabel":"string"},"txID":{"type":"string","description":"Transaction id of the fill.","uniqueKey":"data.matched.items.[INDEX].txID","typeLabel":"string"},"wagerRequestID":{"type":"string","description":"Server-generated id grouping every fill / offer derived from the input order.","uniqueKey":"data.matched.items.[INDEX].wagerRequestID","typeLabel":"string"},"userReference":{"type":"string","uniqueKey":"data.matched.items.[INDEX].userReference","typeLabel":"string"},"risk":{"type":"number","uniqueKey":"data.matched.items.[INDEX].risk","typeLabel":"number"},"win":{"type":"number","description":"Win amount, net of taker commission.","uniqueKey":"data.matched.items.[INDEX].win","typeLabel":"number"},"winWithoutCommission":{"type":"number","description":"Win amount before commission.","uniqueKey":"data.matched.items.[INDEX].winWithoutCommission","typeLabel":"number"}},"uniqueKey":"data.matched.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.matched","typeLabel":"object[]"},"unmatched":{"type":"object","description":"Resting offer created from the unfilled remainder of a place request. May be empty (`{}`) when the order matched fully.","properties":{"orderID":{"type":"string","description":"Id of the new resting order.","uniqueKey":"data.unmatched.orderID","typeLabel":"string"},"wagerRequestID":{"type":"string","uniqueKey":"data.unmatched.wagerRequestID","typeLabel":"string"},"offered":{"type":"number","uniqueKey":"data.unmatched.offered","typeLabel":"number"},"odds":{"type":"integer","uniqueKey":"data.unmatched.odds","typeLabel":"integer"},"type":{"type":"string","enum":["moneyline","spread","total","moneyline1x2"],"description":"Market type. `moneyline1x2` is **soccer-only** (three-way money line: home / away / draw).","uniqueKey":"data.unmatched.type","typeLabel":"enum\u003cstring>"},"side":{"type":"string","description":"Order side. Meaning depends on `type`:\n\n- `moneyline`, `spread` — the participant id you are backing.\n- `total` — `\"over\"` or `\"under\"`.\n- `moneyline1x2` — `\"yes\"` or `\"no\"` on the outcome named by `market`.","uniqueKey":"data.unmatched.side","typeLabel":"string"},"market":{"type":"string","description":"Present for `moneyline1x2`.","uniqueKey":"data.unmatched.market","typeLabel":"string"},"number":{"oneOf":[{"type":"number","uniqueKey":"data.unmatched.number.oneOf.0","typeLabel":"number"},{"type":"null","uniqueKey":"data.unmatched.number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.unmatched.number","typeLabel":"number | null"},"userReference":{"type":"string","uniqueKey":"data.unmatched.userReference","typeLabel":"string"}},"uniqueKey":"data.unmatched","typeLabel":"object"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"cancelled":{},"matched":[{"amount":123,"odds":123,"number":123,"type":"moneyline","side":"\u003cstring>","market":"\u003cstring>","orderID":"\u003cstring>","txID":"\u003cstring>","wagerRequestID":"\u003cstring>","userReference":"\u003cstring>","risk":123,"win":123,"winWithoutCommission":123}],"unmatched":{"orderID":"\u003cstring>","wagerRequestID":"\u003cstring>","offered":123,"odds":123,"type":"moneyline","side":"\u003cstring>","market":"\u003cstring>","number":123,"userReference":"\u003cstring>"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"f687e012-e414-44fb-b60a-7da428c463dd":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable error message.","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"5af737fe-0f4b-499b-b730-9900b0099461":{"description":"Missing or invalid auth token","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"b5631c33-428c-4fc7-9f02-2a936d227423":{"description":"Orders service unreachable","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"5ae18979-3665-4c20-9524-0f5f8d31552b":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Pass your auth token in the `Authorization` header. The `Bearer` prefix is optional; the server also accepts a signed `auth` cookie or a `token` field in the request body.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"ccc86785-8157-4fcc-ace4-bc2f3ad7b93f":{"url":"https://api.4casters.io","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Pass your auth token in the `Authorization` header. The `Bearer` prefix is optional; the server also accepts a signed `auth` cookie or a `token` field in the request body.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Pass your auth token in the `Authorization` header. The `Bearer` prefix is optional; the server also accepts a signed `auth` cookie or a `token` field in the request body.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"fourcasterllc","siteName":"4casters API","title":"Edit an order - 4casters API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/pages/rest/orders/edit-order","matchLevel":0},"es":{"href":"/es/pages/rest/orders/edit-order","matchLevel":1},"pt-BR":{"href":"/pt-BR/pages/rest/orders/edit-order","matchLevel":1},"zh-Hans":{"href":"/zh-Hans/pages/rest/orders/edit-order","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/pages/rest/orders/edit-order","matchLevel":1}}},"lastModified":"2026-05-11T21:56:37.240Z","originalFileLocation":"pages/rest/orders/edit-order.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Change the price or volume of a resting order\">\u003cmeta data-mint-head name=\"application-name\" content=\"4casters API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/fourcasterllc/d8tavtFKOxggM_GO/_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/fourcasterllc/d8tavtFKOxggM_GO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/fourcasterllc/d8tavtFKOxggM_GO/_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/fourcasterllc/d8tavtFKOxggM_GO/_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/fourcasterllc/d8tavtFKOxggM_GO/_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/fourcasterllc/d8tavtFKOxggM_GO/_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/fourcasterllc/d8tavtFKOxggM_GO/_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/fourcasterllc/d8tavtFKOxggM_GO/_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/fourcasterllc/d8tavtFKOxggM_GO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Edit an order - 4casters API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Change the price or volume of a resting order\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"4casters API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.4casters.io/pages/rest/orders/edit-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fourcasterllc.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Edit+an+order\u0026amp;description=Change+the+price+or+volume+of+a+resting+order\u0026amp;theme=1dd00224c0e16f0e875f7bf3\u0026amp;signature=ddcddb13054edd489dc010a23c713ee6f6066c5e7abf29c18d6ae8ec692d0242\">\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=\"Edit an order - 4casters API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Change the price or volume of a resting order\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fourcasterllc.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Edit+an+order\u0026amp;description=Change+the+price+or+volume+of+a+resting+order\u0026amp;theme=1dd00224c0e16f0e875f7bf3\u0026amp;signature=ddcddb13054edd489dc010a23c713ee6f6066c5e7abf29c18d6ae8ec692d0242\">\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/fourcasterllc/d8tavtFKOxggM_GO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"4casters API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#343b86\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.4casters.io/pages/rest/orders/edit-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/pages/rest/orders/edit-order.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.4casters.io/pages/rest/orders/edit-order\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.4casters.io/es/pages/rest/orders/edit-order\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.4casters.io/pt-BR/pages/rest/orders/edit-order\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://docs.4casters.io/zh-Hans/pages/rest/orders/edit-order\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://docs.4casters.io/zh-Hant/pages/rest/orders/edit-order\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.4casters.io/pages/rest/orders/edit-order\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.4casters.io/#organization\",\"name\":\"4casters API\",\"url\":\"https://docs.4casters.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/fourcasterllc/pVIXz8908VNrLZSR/logo/light.svg?fit=max\u0026auto=format\u0026n=pVIXz8908VNrLZSR\u0026q=85\u0026s=b278063748115576ca573e97593d611f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.4casters.io#website\",\"name\":\"4casters API\",\"url\":\"https://docs.4casters.io\",\"publisher\":{\"@id\":\"https://docs.4casters.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.4casters.io/pages/rest/orders/edit-order#webpage\",\"url\":\"https://docs.4casters.io/pages/rest/orders/edit-order\",\"name\":\"Edit an order\",\"description\":\"Change the price or volume of a resting order\",\"dateModified\":\"2026-05-11T21:56:37.240Z\",\"isPartOf\":{\"@id\":\"https://docs.4casters.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.4casters.io/pages/rest/orders/edit-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.4casters.io/pages/rest/orders/edit-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orders\",\"item\":\"https://docs.4casters.io/pages/rest/orders/place-order\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Edit an order\",\"item\":\"https://docs.4casters.io/pages/rest/orders/edit-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.4casters.io/pages/rest/orders/edit-order#apireference\",\"headline\":\"Edit an order\",\"name\":\"Edit an order\",\"description\":\"Change the price or volume of a resting order\",\"url\":\"https://docs.4casters.io/pages/rest/orders/edit-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.4casters.io/pages/rest/orders/edit-order#webpage\"},\"dateModified\":\"2026-05-11T21:56:37.240Z\",\"publisher\":{\"@id\":\"https://docs.4casters.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.4casters.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"4casters API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"4casters API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/pages/rest/orders/edit-order.md","siteName":"4casters API","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/pages/introduction"}]},{"tab":"WebSocket Streaming","pages":[{"title":"WebSocket Streaming","href":"/pages/streaming/introduction"}]},{"tab":"Orders API","pages":[{"title":"Orders API","href":"/pages/websocket/introduction"}]},{"tab":"REST API","groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":"/pages/rest/introduction"},{"title":"Log in","openapi":"POST /user/login","href":"/pages/rest/authentication"},{"title":"API keys","href":"/pages/rest/api-keys"}]},{"group":"User","pages":[{"title":"Get current user","openapi":"GET /user/getMe","href":"/pages/rest/user/get-me"},{"title":"Get matched bets","openapi":"GET /user/getMatchedBets","href":"/pages/rest/user/get-matched-bets"},{"title":"Get unmatched orders","openapi":"GET /user/getUnmatched","href":"/pages/rest/user/get-unmatched-orders"},{"title":"Get orders for a game","openapi":"GET /user/getOrdersForGame","href":"/pages/rest/user/get-orders-for-game"},{"title":"Get graded bets","openapi":"sources/core-api.openapi.json GET /user/v2/getGraded","href":"/pages/rest/user/get-graded"},{"title":"Get graded bets since a cursor","openapi":"sources/core-api.openapi.json GET /user/v2/getGradedSince","href":"/pages/rest/user/get-graded-since"},{"title":"Get graded wagers (legacy)","openapi":"api-reference/openapi.json GET /user/getGradedWagers","href":"/pages/rest/user/get-graded-wagers"},{"title":"Get rebates","href":"/pages/rest/user/get-rebates"},{"title":"Get bet by ID","openapi":"GET /user/getBetByID","href":"/pages/rest/user/get-bet-by-id"},{"title":"Get bet by wager request ID","openapi":"GET /user/getBetByWagerRequestID","href":"/pages/rest/user/get-bet-by-wager-request-id"},{"title":"Get bet by user reference","openapi":"GET /user/getBetByUserReference","href":"/pages/rest/user/get-bet-by-user-reference"},{"title":"Orders heartbeat","openapi":"POST /user/ordersHeartbeat","href":"/pages/rest/user/orders-heartbeat"},{"title":"Get game liability","openapi":"GET /user/getGameLiability","href":"/pages/rest/user/get-game-liability"}]},{"group":"Orders","pages":[{"title":"Place orders","description":"Submit one or more orders to the exchange","openapi":"POST /session/v3/place","href":"/pages/rest/orders/place-order"},{"title":"Edit an order","openapi":"POST /session/editOrder","href":"/pages/rest/orders/edit-order"},{"title":"Look up an order","description":"Get the current state of one of your orders","openapi":"GET /session/lookupOrder","href":"/pages/rest/orders/lookup-order"},{"title":"Cancel an order","openapi":"POST /session/cancel","href":"/pages/rest/orders/cancel-order"},{"title":"Cancel multiple orders","openapi":"POST /session/cancelMultiple","href":"/pages/rest/orders/cancel-multiple"},{"title":"Cancel by user reference","openapi":"POST /session/cancelByReference","href":"/pages/rest/orders/cancel-by-reference"},{"title":"Cancel all orders for a game","openapi":"POST /session/cancelAllOrdersForGame","href":"/pages/rest/orders/cancel-all-for-game"},{"title":"Cancel all orders for a league","openapi":"POST /session/cancelAllForLeague","href":"/pages/rest/orders/cancel-all-for-league"},{"title":"Cancel all orders","openapi":"POST /session/cancelAllOrders","href":"/pages/rest/orders/cancel-all-orders"}]},{"group":"Markets","pages":[{"title":"Get leagues","openapi":"GET /exchange/getLeagues","href":"/pages/rest/markets/get-leagues"},{"title":"Get participants","openapi":"GET /exchange/getParticipants","href":"/pages/rest/markets/get-participants"},{"title":"Get games","openapi":"GET /exchange/v2/getGames","href":"/pages/rest/markets/get-games"},{"title":"Get orderbook","openapi":"GET /exchange/v2/getOrderbook","href":"/pages/rest/markets/get-orderbook"},{"title":"Get single orderbook","openapi":"GET /exchange/getSingleOrderbook","href":"/pages/rest/markets/get-single-orderbook"},{"title":"Get average price","openapi":"GET /exchange/getOddsForAveragePrice","href":"/pages/rest/markets/get-average-price"},{"title":"Get matched volume","openapi":"GET /exchange/getMatchedVolume","href":"/pages/rest/markets/get-matched-volume"},{"title":"Get orderbook (v1, deprecated)","openapi":"POST /exchange/getOrderbook","href":"/pages/rest/markets/get-orderbook-v1"}]},{"group":"Affiliate","pages":[{"title":"Get affiliate commission","openapi":"GET /affiliate/getAffiliateCommission","href":"/pages/rest/affiliate/get-affiliate-commission"},{"title":"Deep links","href":"/pages/rest/affiliate/deep-links"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/pages/changelog"}]},{"tab":"Rate Limiting","pages":[{"title":"Rate Limiting","href":"/pages/rate-limiting"}]},{"tab":"Fees","pages":[{"title":"Fees","href":"/pages/fees"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/pages/rest/orders/edit-order"}]},{"language":"pt-BR","banner":{"content":"Esta documentação foi traduzida por IA por conveniência e pode conter erros. **A versão em inglês é a oficial** — consulte-a antes de confiar nesta página. [Relatar um erro de tradução](https://github.com/4casters-io/docs/issues/new?labels=translation\u0026title=%5Bpt-BR%5D+Translation+issue\u0026body=%2A%2APage%3A%2A%2A+%3C%21--+paste+the+URL+of+the+page+--%3E%0A%0A%2A%2AWhat+reads+wrong%3A%2A%2A+%3C%21--+quote+the+text+--%3E%0A%0A%2A%2ASuggested+wording%3A%2A%2A%0A%0A---%0A_Language%3A+pt-BR.+The+English+page+is+authoritative._%0A)","dismissible":false,"type":"warning"},"pages":[{"title":"pt-BR","href":"/pt-BR/pages/rest/orders/edit-order"}]},{"language":"zh-Hans","banner":{"content":"本文档由 AI 翻译,仅为方便阅读而提供,可能存在错误。**以英文文档为准**——依赖本页内容前请对照英文核对。[报告翻译问题](https://github.com/4casters-io/docs/issues/new?labels=translation\u0026title=%5Bzh-Hans%5D+Translation+issue\u0026body=%2A%2APage%3A%2A%2A+%3C%21--+paste+the+URL+of+the+page+--%3E%0A%0A%2A%2AWhat+reads+wrong%3A%2A%2A+%3C%21--+quote+the+text+--%3E%0A%0A%2A%2ASuggested+wording%3A%2A%2A%0A%0A---%0A_Language%3A+zh-Hans.+The+English+page+is+authoritative._%0A)","dismissible":false,"type":"warning"},"pages":[{"title":"zh-Hans","href":"/zh-Hans/pages/rest/orders/edit-order"}]},{"language":"zh-Hant","banner":{"content":"本文件由 AI 翻譯,僅為方便閱讀而提供,可能存在錯誤。**以英文文件為準**——依賴本頁內容前請對照英文核對。[報告翻譯問題](https://github.com/4casters-io/docs/issues/new?labels=translation\u0026title=%5Bzh-Hant%5D+Translation+issue\u0026body=%2A%2APage%3A%2A%2A+%3C%21--+paste+the+URL+of+the+page+--%3E%0A%0A%2A%2AWhat+reads+wrong%3A%2A%2A+%3C%21--+quote+the+text+--%3E%0A%0A%2A%2ASuggested+wording%3A%2A%2A%0A%0A---%0A_Language%3A+zh-Hant.+The+English+page+is+authoritative._%0A)","dismissible":false,"type":"warning"},"pages":[{"title":"zh-Hant","href":"/zh-Hant/pages/rest/orders/edit-order"}]}]},"basePath":"","title":"Edit an order - 4casters API","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D4yvBxwa.js","snippetPresets-CkhhQaIQ.js","utils-XnMGX2lF.js","style-to-object-BY3JEAdk.js","utils-CRXL1dwr.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-DvwRKZnA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DYtgUc7n.js","_Uint8Array-D8z7zjjJ.js","isObject-FP1Yky1u.js","ApiExamples-RYQSJVS4.js","usePlaygroundInputsStore-k_R_BTDL.js","shallow-BwVhzryZ.js","isEqual-Cx5TQjMc.js","CodeSnippets-BDe2dS5N.js","CodeSnippet-C1QlaNYl.js","use-playground-group-access-DyQ_1IIe.js","Page-DQd9HN9r.js","api-description-markdown-BpDftTKT.js","DynamicMarkdown-CZT_WAnN.js","SectionHeading-K1iuDm9j.js","MethodPill-Dx3JIwHJ.js","getPastedJson-buPTdYs_.js","Check2Icon-DmMrzBYX.js","axios-CsQoIw0U.js","Markdown-erv2ryQz.js","AssistantPageLink-DJ01X1Sn.js","dist-D9mz3EIS.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}