Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity.
Use Case: Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily.
ID cycling: Each successful replace returns a new clOrdId in the response alongside the origClOrdId you sent. For any further replace of the same order, you must send this new clOrdId as origClOrdId — the previous ID is invalidated once the replace is accepted.
POST
/
v1
/
orders
/
replace
Python (SDK)
from finance_dev import FinanceDev, modelswith FinanceDev( security=models.Security( client_id="<YOUR_CLIENT_ID_HERE>", client_secret="<YOUR_CLIENT_SECRET_HERE>", ),) as fd_client: res = fd_client.orders.replace(request={ "orig_cl_ord_id": "ORDER-123456", "price": "148.50", "qty": "10", "side": models.OrderSideEnum.BUY, "symbol": "AAPL", "time_in_force": models.OrderRequestTimeInForceEnum.DAY, "trading_account_id": "TEST-ACCOUNT-001", "type": models.OrderTypeEnum.LIMIT, }) assert res.replace_ord_response is not None # Handle response print(res.replace_ord_response)
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
Scopes
order:execution
Place, modify, and cancel orders
Body
application/json
Which order to modify and what to change. Required: origClOrdId, at least one of accountId or tradingAccountId, symbol. Then include only the fields you want to update — typically some combination of qty, price, stopPrice, type, and timeInForce.
Option 1
Option 2
Request body for replacing an open order through the core trading API. Use this when the user changes price, quantity, stop price, or time-in-force before the order fully fills.
accountId
string
required
Account identifier; provide accountId or tradingAccountId. Both may be supplied.
Required string length: 1 - 50
origClOrdId
string
required
Client order ID of the original open order you want to replace. Use the clOrdId returned by Place Order or List active orders. Important — ID cycling: each successful replace returns a new clOrdId in the response. For any subsequent replace of the same order, send this new clOrdId as origClOrdId — not the ID from the original placement. Reusing the old ID will be rejected.
Required string length: 1 - 100
Example:
"ORDER-123456"
symbol
string
required
Symbol on the original order. Use the exact symbol from the order record.
Required string length: 1 - 21
Example:
"AAPL"
clientId
string
Optional new client identifier from your app for the replacement order. Use this when you need to track replacement attempts separately.
Maximum string length: 50
currency
string
Three-letter currency code for the replacement order. Use USD for U.S. dollar orders unless your integration supports another currency.
Required string length: 3
Example:
"USD"
legs
object[]
Option legs to replace, for single-leg or multi-leg option orders. Omit this field for equity orders. Send 1 leg for a single option contract or 2 to 4 legs for a spread/multi-leg strategy. The instrument is identified from the legs (single leg) or auto-parsed from an OSI symbol when legs is omitted.
Maximum array length: 4
Show child attributes
price
string
Replacement limit price as a decimal string. Send it when changing a LIMIT or STOP_LIMIT order price.
Example:
"148.50"
qty
string
Replacement order quantity as a decimal string. Send it when changing order size.
Example:
"20"
side
enum<string>
Which direction to trade in. Pick one:
BUY — buying shares or contracts (opens a long position or closes an existing short).
SELL — selling shares or contracts you already hold (closes a long position).
SELL_SHORT — selling shares you do not own (opens a short position). Subject to short-sale regulations.
BUY_TO_COVER — buying shares to close an open short position.
Available options:
BUY,
SELL,
SELL_SHORT,
BUY_TO_COVER
Example:
"BUY"
stopPrice
string
Replacement stop trigger as a decimal string. Send it when changing a STOP or STOP_LIMIT order trigger.
Example:
"145.00"
timeInForce
enum<string>
How long the order should stay alive before automatically cancelling. Pick one:
DAY — Active until the end of today's regular trading session, then cancelled if not filled. The default choice for most orders.
GTC — Good 'Til Cancelled. Stays open across multiple trading days until you cancel it (the broker may cap at 60–90 days).
IOC — Immediate Or Cancel. Fill whatever you can right now; cancel the rest immediately. Useful when you want partial fills but no resting order.
FOK — Fill Or Kill. Fill the entire order immediately, or cancel it entirely. No partial fills allowed.
EXTENDED_HOURS — Active during pre-market and after-hours trading sessions in addition to regular hours.
AT_THE_OPENING — Execute at the official market open price; if it can't fill at open, it's cancelled.
AT_THE_CLOSE — Execute at the official market close price; if it can't fill at close, it's cancelled.
Available options:
DAY,
GTC,
IOC,
FOK,
EXTENDED_HOURS,
AT_THE_OPENING,
AT_THE_CLOSE,
ATO,
ATC,
EXT
Example:
"DAY"
tradingAccountId
string
Trading account identifier that owns the order being replaced. It must match the account on the original order.
Required string length: 1 - 50
Example:
"TEST-ACCOUNT-001"
type
enum<string>
How the order is priced. Pick one:
MARKET — Execute immediately at the best available price. Fast and guaranteed to fill, but no price guarantee — the actual fill price can move during execution.
LIMIT — Execute only at the limit price or better (lower for buys, higher for sells). Gives you price control, no execution guarantee. Requires the price field.
STOP — Sits inactive until the market hits stopPrice, then converts to a market order. Common for stop-loss exits. Requires the stopPrice field.
STOP_LIMIT — Sits inactive until the market hits stopPrice, then converts to a limit order at price. More control than STOP, but the limit may not fill. Requires both stopPrice and price.
Available options:
MARKET,
LIMIT,
STOP,
STOP_LIMIT
Example:
"LIMIT"
Response
Replace request submitted successfully
Response returned after requesting an order replacement. Treat it as the replacement result and monitor the new client order ID going forward.
clOrdId
string
New client order ID assigned to the replacement order. Store this for future status, replace, or cancel operations.
Example:
"ORDER-123457"
origClOrdId
string
Client order ID of the order that was replaced. Use it to connect the replacement back to the original order.
Example:
"ORDER-123456"
price
string
Replacement order price as a decimal string. Display this as the current limit or reference price after a successful replace.
Example:
"150.00"
qty
string
Replacement order quantity as a decimal string. Display this as the current order size after a successful replace.
Example:
"20"
status
enum<string>
Order status after the replace request. Typical values after a successful replace:
PENDING_REPLACE — replace request accepted by the broker but not yet final. Keep monitoring; will move to REPLACED once confirmed.
REPLACED — the modification took effect. From now on, refer to the order by the new clOrdId.
REJECTED — the replace was refused (e.g. the order had already fully filled). The original order is unchanged.
The full FIX OrdStatus enum is supported — see the Place Order response for the complete list of possible values.
Available options:
NEW,
PARTIALLY_FILLED,
FILLED,
DONE_FOR_DAY,
CANCELED,
REPLACED,
PENDING_CANCEL,
STOPPED,
REJECTED,
SUSPENDED,
PENDING_NEW,
CALCULATED,
EXPIRED,
ACCEPTED_FOR_BID,
PENDING_REPLACE,
SUPERSEDED
Example:
"REPLACED"
success
boolean
Whether Aries or the broker accepted the replace request for processing.
Example:
true
text
string
Broker or platform message about the replace result. Show it when replacement is rejected or pending.
transactTime
string<date-time>
Time the replace action was processed. Use it for order timelines and audit logs.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Aries API","colors":{"primary":"#0BAA5E","light":"#0BAA5E","dark":"#098F4E"},"logo":{"light":"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/logo/light.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=4eae127cdf55bb09159d2b5a625690e3","dark":"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/logo/dark.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=fbee595bbc78c2506c5e92673b91d2c7"},"favicon":"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/favicon.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=0c47f5ea65b933ab26eae6eaca2fc12c","api":{"openapi":["openapi.json"],"playground":{"display":"interactive"}},"navbar":{"links":[{"href":"mailto:support@aries.com","label":"Support"}],"primary":{"type":"button","label":"Aries","href":"https://aries.com"}},"contextual":{"options":["chatgpt","claude","view"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ariesfinancialinc","hasAudioNarration":false,"actualSubdomain":"ariesfinancialinc","customDomains":["finance.dev"],"gitSource":{"type":"github","owner":"aries-financial-inc","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afdd5859267861064b3c438","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Supplemental API","count":116},{"language":"default","tag":"Core API","count":38},{"language":"default","tag":"Orders","count":22},{"language":"default","tag":"Prediction API","count":20},{"language":"default","tag":"Stock Alternative","count":18},{"language":"default","tag":"Analytics","count":13},{"language":"default","tag":"Options","count":11},{"language":"default","tag":"Guide","count":10},{"language":"default","tag":"Stocks","count":10},{"language":"default","tag":"MCP Auth","count":9}]},"assistantConfig":{},"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":"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":"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},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"html{visibility:visible!important;opacity:1!important}body{opacity:1!important;transition:none!important;will-change:auto!important}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeSpeed;font-display:swap}.hero-title{text-align:center!important;font-size:clamp(2rem, 5vw, 3rem)!important;font-weight:700!important;margin:0 auto!important;will-change:transform!important}.hero-description,.hero-title+p{text-align:center!important;max-width:800px!important;margin:1rem auto!important}div[class*=\"CardGroup\"],.card-group{display:grid!important;grid-template-columns:repeat(auto-fit, minmax(300px, 1fr))!important;gap:1.5rem!important;contain:layout style!important;content-visibility:auto!important}.aries-oauth-dialog[open]{display:flex;align-items:center;justify-content:center;width:100%;min-height:100dvh;min-height:100vh;max-width:100vw;max-height:100dvh;max-height:100vh;box-sizing:border-box;margin:0;border:none;padding:1rem;background:transparent;overflow:auto;overscroll-behavior:contain}.aries-oauth-dialog::backdrop{background:rgba(0, 0, 0, 0.65);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.aries-oauth-dialog[data-oauth-theme=\"light\"]::backdrop{background:rgba(0, 0, 0, 0.45);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.aries-oauth-dialog[data-oauth-theme=\"dark\"]::backdrop{background:rgba(0, 0, 0, 0.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.welcome-hero{background:linear-gradient(180deg, #ecfdf5 0%, #d1fae5 50%, #ecfdf5 100%)!important}.welcome-hero-gradient{background:linear-gradient(to top, #a7f3d0, transparent)!important}.welcome-feature-box{background:#E7F6EF!important;border:1px solid #0BAA5E!important;box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)!important}.welcome-feature-box:hover{background:#DAF2E7!important;border-color:#0BAA5E!important;transform:translateY(-4px)!important;box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)!important}.welcome-feature-link{color:#0BAA5E!important}.welcome-feature-title{color:#000000!important}.dark .welcome-hero{background:linear-gradient(180deg, rgba(11, 170, 94, 0.15) 0%, rgba(11, 170, 94, 0.25) 50%, rgba(11, 170, 94, 0.15) 100%)!important}.dark .welcome-hero-gradient{background:linear-gradient(to top, rgba(11, 170, 94, 0.2), transparent)!important}.dark .welcome-feature-box{background:rgba(11, 170, 94, 0.15)!important;border:1px solid rgba(11, 170, 94, 0.5)!important}.dark .welcome-feature-box:hover{background:rgba(11, 170, 94, 0.2)!important;border-color:rgba(11, 170, 94, 0.6)!important}.dark .welcome-feature-link{color:#0BAA5E!important}.dark .welcome-feature-title{color:#FFFFFF!important}.welcome-feature-box-coming-soon{cursor:default!important;pointer-events:none!important}.welcome-feature-box-coming-soon:hover{transform:none!important}.welcome-coming-soon{color:#0BAA5E!important;font-weight:600!important}.dark .welcome-coming-soon{color:#0BAA5E!important}*/\n\n/* Hero Section Theme-Aware Styling */\n/* Light mode hero styling (default) */\n.hero-title{color:#000000!important}.hero-description{color:#000000!important}.hero-footnote{color:#000000!important}.hero-link{color:#0BAA5E!important}.section-title{color:#000000!important}.welcome-cards a[class*=\"Card\"],.welcome-cards .card{transition:transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),\n box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),\n border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),\n background-color 0.22s cubic-bezier(0.4, 0, 0.2, 1)!important;transform-origin:center center!important}.welcome-cards,.welcome-cards div[class*=\"CardGroup\"],.welcome-cards .card-group{overflow:visible!important}.welcome-cards a[class*=\"Card\"]:hover,.welcome-cards .card:hover{transform:translateY(-6px)!important;border-color:rgba(11, 170, 94, 0.45)!important;box-shadow:0 18px 30px -12px rgba(0, 0, 0, 0.16),\n 0 10px 18px -14px rgba(11, 170, 94, 0.35)!important}.dark .welcome-cards a[class*=\"Card\"]:hover,.dark .welcome-cards .card:hover{border-color:rgba(11, 170, 94, 0.55)!important;box-shadow:0 18px 30px -12px rgba(0, 0, 0, 0.45),\n 0 10px 22px -16px rgba(11, 170, 94, 0.35)!important}.dark .hero-title{color:#FFFFFF!important}.dark .hero-description{color:#D1D5DB!important}.dark .hero-footnote{color:#9CA3AF!important}.dark .hero-link{color:#0BAA5E!important}.dark .section-title{color:#FFFFFF!important}@media (max-width: 1024px){.welcome-side-by-side{grid-template-columns:1fr!important}}@media (max-width: 640px){.welcome-cards{padding:0 24px!important}}.dark select,.dark select option{background-color:#000000!important;color:#ffffff!important;border-color:rgba(255, 255, 255, 0.2)!important}.dark select:focus,.dark select:active{background-color:#000000!important;color:#ffffff!important}.dark [class*=\"playground\"] select,.dark [class*=\"api\"] select,.dark [class*=\"request\"] select,.dark form select{background-color:#000000!important;color:#ffffff!important;border-color:rgba(255, 255, 255, 0.2)!important}.dark [class*=\"playground\"] select option,.dark [class*=\"api\"] select option,.dark [class*=\"request\"] select option,.dark form select option{background-color:#000000!important;color:#ffffff!important}select,select option{background-color:#ffffff!important;color:#000000!important}.prompt{background-color:#ffffff!important;border-color:rgba(10, 15, 13, 0.1)!important}.dark .prompt{background-color:#0B0C0E!important;border-color:rgba(255, 255, 255, 0.1)!important}img[src=\"/logo/claude-logo.png\"]{border-radius:23%!important}img[src=\"https://cdn.simpleicons.org/cursor\"],img[src=\"/logo/chatgpt-logo.png\"]{background-color:#ffffff!important;border-radius:23%!important;padding:3px!important}"}]}
{"page":{"pagePath":"api-reference/orders/update-order","slug":"/api-reference/orders/update-order","pageMetadata":{"title":"Replace Order","description":"Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity.\n\n**Use Case:** Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily.\n\n**ID cycling:** Each successful replace returns a new `clOrdId` in the response alongside the `origClOrdId` you sent. For any further replace of the same order, you must send this new `clOrdId` as `origClOrdId` — the previous ID is invalidated once the replace is accepted.\n","openapi":"openapi.json POST /v1/orders/replace","href":"/api-reference/orders/update-order"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Use Case:\"\n }), \" Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"ID cycling:\"\n }), \" Each successful replace returns a new \", _jsx(_components.code, {\n children: \"clOrdId\"\n }), \" in the response alongside the \", _jsx(_components.code, {\n children: \"origClOrdId\"\n }), \" you sent. For any further replace of the same order, you must send this new \", _jsx(_components.code, {\n children: \"clOrdId\"\n }), \" as \", _jsx(_components.code, {\n children: \"origClOrdId\"\n }), \" — the previous ID is invalidated once the replace is accepted.\"]\n })]\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];const OAuthLoginButton=({scopes=`user:information watchlist:information watchlist:management account:information order:execution order:information position:information market:information calendar:information options:information analytics:information market:supplemental`,responseType=`token`,buttonText=`Authenticate with OAuth`,showStatus=true,requiredScopes=[]})=>{const{Info}=_provideComponents()||{};if(!Info)_missingMdxReference(`Info`,true);const[isDarkMode,setIsDarkMode]=useState(false);useEffect(()=>{const checkDarkMode=()=>{const isDark=document.documentElement.classList.contains(`dark`)||document.documentElement.getAttribute(`data-theme`)===`dark`||document.body.classList.contains(`dark`)||document.body.getAttribute(`data-theme`)===`dark`;setIsDarkMode(isDark)};checkDarkMode();const htmlObserver=new MutationObserver(checkDarkMode);const bodyObserver=new MutationObserver(checkDarkMode);htmlObserver.observe(document.documentElement,{attributes:true,attributeFilter:[`class`,`data-theme`,`style`]});bodyObserver.observe(document.body,{attributes:true,attributeFilter:[`class`,`data-theme`,`style`]});const interval=setInterval(checkDarkMode,1e3);return()=>{htmlObserver.disconnect();bodyObserver.disconnect();clearInterval(interval)}},[]);const styles=useMemo(()=>({statusContainer:{marginBottom:`1.5rem`,padding:`0.875rem 1rem`,backgroundColor:isDarkMode?`rgba(11, 170, 94, 0.08)`:`rgba(11, 170, 94, 0.06)`,border:isDarkMode?`1px solid rgba(11, 170, 94, 0.25)`:`1px solid rgba(11, 170, 94, 0.25)`,borderRadius:`10px`},statusContent:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`,flexWrap:`wrap`},statusLeft:{display:`flex`,alignItems:`center`,gap:`1rem`,flexWrap:`wrap`},statusBadge:{display:`flex`,alignItems:`center`,gap:`0.5rem`},checkmark:{color:isDarkMode?`#0BAA5E`:`#0BAA5E`,fontSize:`1.25rem`,fontWeight:`bold`},statusText:{color:isDarkMode?`#0BAA5E`:`#0BAA5E`,fontWeight:`600`,fontSize:`0.95rem`},expiryText:{color:isDarkMode?`#a1a1aa`:`#71717a`,fontSize:`0.8125rem`},logoutButton:{padding:`0.375rem 0.75rem`,backgroundColor:`transparent`,color:isDarkMode?`#e4e4e7`:`#3f3f46`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.1)`:`1px solid rgba(0, 0, 0, 0.1)`,borderRadius:`6px`,cursor:`pointer`,fontSize:`0.8125rem`,fontWeight:`500`,transition:`background-color 0.15s ease`},logoutButtonHover:{backgroundColor:isDarkMode?`rgba(255, 255, 255, 0.05)`:`rgba(0, 0, 0, 0.04)`},buttonContainer:{marginBottom:`1.5rem`,display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`1rem`,padding:`0.875rem 1rem`,backgroundColor:`transparent`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.1)`:`1px solid rgba(0, 0, 0, 0.08)`,borderRadius:`10px`},loginButton:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,padding:`0.5rem 0.875rem`,backgroundColor:`#0BAA5E`,color:`white`,border:`1px solid #0BAA5E`,borderRadius:`8px`,cursor:`pointer`,fontSize:`0.8125rem`,fontWeight:`500`,lineHeight:`1.25rem`,transition:`background-color 0.15s ease, border-color 0.15s ease`,whiteSpace:`nowrap`,flexShrink:0},loginButtonHover:{backgroundColor:`#098F4E`,borderColor:`#098F4E`},lockIcon:{width:`14px`,height:`14px`,flexShrink:0},helpText:{margin:0,fontSize:`0.8125rem`,color:isDarkMode?`#9ca3af`:`#6b7280`,lineHeight:`1.5`,flex:1},modalDialog:{border:`none`,backgroundColor:`transparent`,padding:0,margin:0,maxWidth:`100%`,maxHeight:`100%`},modalContent:{backgroundColor:isDarkMode?`#0f0f10`:`#ffffff`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.08)`:`1px solid rgba(0, 0, 0, 0.08)`,borderRadius:`12px`,padding:`1.5rem`,maxWidth:`500px`,width:`100%`,boxShadow:isDarkMode?`0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3)`:`0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)`},modalHeader:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,marginBottom:`1.5rem`},modalTitle:{margin:0,fontSize:`1.125rem`,fontWeight:`600`,color:isDarkMode?`#fafafa`:`#0a0a0a`},closeButton:{background:`none`,border:`none`,fontSize:`1.5rem`,lineHeight:1,color:isDarkMode?`#a1a1aa`:`#71717a`,cursor:`pointer`,padding:`0`,width:`2rem`,height:`2rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,borderRadius:`6px`,transition:`color 0.15s ease, background-color 0.15s ease`},form:{display:`flex`,flexDirection:`column`,gap:`1rem`},formGroup:{display:`flex`,flexDirection:`column`,gap:`0.5rem`},label:{fontSize:`0.8125rem`,fontWeight:`500`,color:isDarkMode?`#e4e4e7`:`#3f3f46`},input:{padding:`0.5rem 0.75rem`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.1)`:`1px solid rgba(0, 0, 0, 0.1)`,borderRadius:`8px`,fontSize:`0.875rem`,color:isDarkMode?`#fafafa`:`#0a0a0a`,backgroundColor:isDarkMode?`rgba(255, 255, 255, 0.03)`:`#ffffff`,transition:`border-color 0.15s ease, box-shadow 0.15s ease`,outline:`none`},inputHelp:{margin:0,fontSize:`0.75rem`,color:isDarkMode?`#a1a1aa`:`#71717a`},link:{color:`#0BAA5E`,textDecoration:`none`,fontWeight:`500`},errorBox:{padding:`0.75rem`,backgroundColor:isDarkMode?`rgba(220, 38, 38, 0.1)`:`rgba(220, 38, 38, 0.05)`,border:isDarkMode?`1px solid rgba(220, 38, 38, 0.3)`:`1px solid rgba(220, 38, 38, 0.2)`,borderRadius:`8px`,color:isDarkMode?`#fca5a5`:`#dc2626`,fontSize:`0.8125rem`},modalFooter:{display:`flex`,gap:`0.5rem`,justifyContent:`flex-end`,marginTop:`0.5rem`},cancelButton:{padding:`0.5rem 0.875rem`,backgroundColor:`transparent`,color:isDarkMode?`#e4e4e7`:`#3f3f46`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.1)`:`1px solid rgba(0, 0, 0, 0.1)`,borderRadius:`8px`,cursor:`pointer`,fontSize:`0.8125rem`,fontWeight:`500`,lineHeight:`1.25rem`,transition:`background-color 0.15s ease`},submitButton:{padding:`0.5rem 0.875rem`,backgroundColor:`#0BAA5E`,color:`white`,border:`1px solid #0BAA5E`,borderRadius:`8px`,cursor:`pointer`,fontSize:`0.8125rem`,fontWeight:`500`,lineHeight:`1.25rem`,transition:`background-color 0.15s ease, border-color 0.15s ease`},submitButtonDisabled:{opacity:.6,cursor:`not-allowed`},redirectUrlContainer:{display:`flex`,alignItems:`center`,gap:`0.5rem`,padding:`0.5rem 0.75rem`,backgroundColor:isDarkMode?`rgba(255, 255, 255, 0.03)`:`rgba(0, 0, 0, 0.03)`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.08)`:`1px solid rgba(0, 0, 0, 0.08)`,borderRadius:`8px`,fontSize:`0.8125rem`,fontFamily:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`},redirectUrlText:{flex:1,color:isDarkMode?`#a1a1aa`:`#71717a`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},copyButton:{padding:`0.25rem 0.625rem`,backgroundColor:`transparent`,color:isDarkMode?`#e4e4e7`:`#3f3f46`,border:isDarkMode?`1px solid rgba(255, 255, 255, 0.1)`:`1px solid rgba(0, 0, 0, 0.1)`,borderRadius:`6px`,cursor:`pointer`,fontSize:`0.75rem`,fontWeight:`500`,transition:`background-color 0.15s ease, border-color 0.15s ease`,whiteSpace:`nowrap`},copyButtonHover:{backgroundColor:isDarkMode?`rgba(255, 255, 255, 0.05)`:`rgba(0, 0, 0, 0.04)`},copyButtonCopied:{backgroundColor:`#0BAA5E`,color:`white`,border:`1px solid #0BAA5E`}}),[isDarkMode]);const[isModalOpen,setIsModalOpen]=useState(false);const[clientId,setClientId]=useState(``);const[isLoading,setIsLoading]=useState(false);const[hasValidToken,setHasValidToken]=useState(false);const[tokenSource,setTokenSource]=useState(null);const[timeRemaining,setTimeRemaining]=useState(0);const[error,setError]=useState(``);const[copied,setCopied]=useState(false);const redirectUrl=typeof window!==`undefined`?window.location.origin+`/api-reference`:``;useEffect(()=>{updateTokenState();if(window.AriesOAuth){const lastClientId=window.AriesOAuth.getLastClientId();setClientId(lastClientId)}const handleTokenUpdate=()=>{updateTokenState()};const handleOAuthError=event=>{setError(event.detail.description||`Authentication failed`);setIsLoading(false)};const handleOAuthSuccess=()=>{setIsModalOpen(false);setIsLoading(false);setError(``)};window.addEventListener(`tokenStatusChanged`,handleTokenUpdate);window.addEventListener(`tokenUpdated`,handleTokenUpdate);window.addEventListener(`tokenCleared`,handleTokenUpdate);window.addEventListener(`oauthError`,handleOAuthError);window.addEventListener(`oauthSuccess`,handleOAuthSuccess);const interval=setInterval(()=>{if(hasValidToken){updateTokenState()}},1e3);return()=>{window.removeEventListener(`tokenStatusChanged`,handleTokenUpdate);window.removeEventListener(`tokenUpdated`,handleTokenUpdate);window.removeEventListener(`tokenCleared`,handleTokenUpdate);window.removeEventListener(`oauthError`,handleOAuthError);window.removeEventListener(`oauthSuccess`,handleOAuthSuccess);clearInterval(interval)}},[hasValidToken]);const updateTokenState=useCallback(()=>{if(window.AriesOAuth){const isValid=window.AriesOAuth.isAuthenticated();const remaining=window.AriesOAuth.getTimeRemaining();const knownExpiry=window.AriesOAuth.hasKnownExpiry?window.AriesOAuth.hasKnownExpiry():false;const source=window.AriesOAuth.getTokenSource?window.AriesOAuth.getTokenSource():null;setHasValidToken(isValid);setTokenSource(source);setTimeRemaining(knownExpiry\u0026\u0026typeof remaining===`number`?remaining:null)}},[]);const handleLogin=()=>{setError(``);setIsModalOpen(true)};const handleLogout=()=>{if(window.AriesOAuth){window.AriesOAuth.logout()}try{const cfg=window.AriesOAuth?.config;const tokenKey=cfg?.TOKEN_KEY??`aries_access_token`;const expiryKey=cfg?.TOKEN_EXPIRY_KEY??`aries_token_timestamp`;const sourceKey=cfg?.TOKEN_SOURCE_KEY??`aries_token_source`;localStorage.removeItem(tokenKey);localStorage.removeItem(expiryKey);localStorage.removeItem(sourceKey)}catch(_){}setHasValidToken(false);setTimeRemaining(null)};const handleOAuthRedirect=async e=>{e.preventDefault();if(!clientId.trim()){setError(`Please enter your Client ID`);return}setIsLoading(true);try{if(window.AriesOAuth){window.AriesOAuth.saveClientId(clientId.trim())}const returnPath=window.location.pathname+window.location.search+window.location.hash;sessionStorage.setItem(`oauth_return_path`,returnPath);const pkce=await window.AriesOAuth.generatePKCE();const authEndpoint=window.AriesOAuth?.config?.AUTH_ENDPOINT||`https://app.aries.com/oauth2/authorize`;const authUrl=new URL(authEndpoint);authUrl.searchParams.set(`client_id`,clientId.trim());authUrl.searchParams.set(`redirect_uri`,redirectUrl);authUrl.searchParams.set(`response_type`,`code`);authUrl.searchParams.set(`code_challenge`,pkce.challenge);authUrl.searchParams.set(`code_challenge_method`,`S256`);authUrl.searchParams.set(`scope`,scopes);authUrl.searchParams.set(`state`,generateState());const fullAuthUrl=authUrl.toString();setTimeout(()=>{window.location.href=fullAuthUrl},100)}catch(error){setError(`Failed to initiate OAuth flow: `+error.message);setIsLoading(false)}};const generateState=()=>{return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)};const formatTimeRemaining=seconds=>{const minutes=Math.floor(seconds/60);const secs=seconds%60;return`${minutes}m ${secs}s`};const copyRedirectUrl=()=>{navigator.clipboard.writeText(redirectUrl).then(()=>{setCopied(true);setTimeout(()=>setCopied(false),2e3)}).catch(()=>{})};const oauthDialogRef=useRef(null);const isLoadingRef=useRef(false);isLoadingRef.current=isLoading;const closeModal=useCallback(()=>{if(!isLoading){setIsModalOpen(false);setError(``);setCopied(false)}},[isLoading]);useEffect(()=>{const el=oauthDialogRef.current;if(!el)return;if(isModalOpen){if(!el.open)el.showModal()}else{if(el.open)el.close()}},[isModalOpen]);useEffect(()=>{const el=oauthDialogRef.current;if(!el)return;const onClose=()=>{setIsModalOpen(false);setError(``);setCopied(false)};const onCancel=e=>{if(isLoadingRef.current)e.preventDefault()};el.addEventListener(`close`,onClose);el.addEventListener(`cancel`,onCancel);return()=>{el.removeEventListener(`close`,onClose);el.removeEventListener(`cancel`,onCancel)}},[hasValidToken,showStatus]);if(hasValidToken\u0026\u0026showStatus\u0026\u0026tokenSource===`oauth`){return _jsx(`div`,{style:styles.statusContainer,children:_jsxs(`div`,{style:styles.statusContent,children:[_jsxs(`div`,{style:styles.statusLeft,children:[_jsxs(`div`,{style:styles.statusBadge,children:[_jsx(`span`,{style:styles.checkmark,children:`✓`}),_jsx(`span`,{style:styles.statusText,children:`Authenticated`})]}),typeof timeRemaining===`number`?_jsxs(`span`,{style:styles.expiryText,children:[`Expires in `,formatTimeRemaining(timeRemaining)]}):null]}),_jsx(`button`,{onClick:handleLogout,style:styles.logoutButton,onMouseEnter:e=>e.target.style.backgroundColor=styles.logoutButtonHover.backgroundColor,onMouseLeave:e=>e.target.style.backgroundColor=styles.logoutButton.backgroundColor,children:`Logout`})]})})}const onDialogClick=e=>{if(e.target===e.currentTarget){closeModal()}};const modalMarkup=_jsx(`dialog`,{ref:oauthDialogRef,className:`aries-oauth-dialog`,\"data-oauth-theme\":isDarkMode?`dark`:`light`,style:styles.modalDialog,onClick:onDialogClick,children:_jsxs(`div`,{style:styles.modalContent,onClick:e=>e.stopPropagation(),children:[_jsxs(`div`,{style:styles.modalHeader,children:[_jsx(`h3`,{style:styles.modalTitle,children:`OAuth Authentication`}),_jsx(`button`,{type:`button`,onClick:closeModal,style:styles.closeButton,disabled:isLoading,children:`×`})]}),_jsxs(`form`,{onSubmit:handleOAuthRedirect,style:styles.form,children:[_jsxs(`div`,{style:styles.formGroup,children:[_jsx(`label`,{htmlFor:`clientId`,style:styles.label,children:`Client ID`}),_jsx(`input`,{id:`clientId`,type:`text`,value:clientId,onChange:e=>setClientId(e.target.value),placeholder:`Enter your OAuth Client ID`,style:styles.input,disabled:isLoading}),_jsxs(`p`,{style:styles.inputHelp,children:[`Get your Client ID from`,` `,_jsx(`a`,{href:`https://app.aries.com/client-center/api`,target:`_blank`,rel:`noopener noreferrer`,style:styles.link,children:`Client Center / Manage Account → API`})]})]}),_jsxs(`div`,{style:styles.formGroup,children:[_jsx(`label`,{style:styles.label,children:`Redirect URL`}),_jsxs(`div`,{style:styles.redirectUrlContainer,children:[_jsx(`span`,{style:styles.redirectUrlText,title:redirectUrl,children:redirectUrl}),_jsx(`button`,{type:`button`,onClick:copyRedirectUrl,style:{...styles.copyButton,...copied?styles.copyButtonCopied:{}},onMouseEnter:e=>{if(!copied){e.currentTarget.style.backgroundColor=styles.copyButtonHover.backgroundColor}},onMouseLeave:e=>{if(!copied){e.currentTarget.style.backgroundColor=styles.copyButton.backgroundColor}},children:copied?`✓ Copied`:`Copy`})]}),_jsx(`p`,{style:styles.inputHelp,children:`Add this URL to your OAuth client's allowed redirect URIs`})]}),error\u0026\u0026_jsx(`div`,{style:styles.errorBox,children:error}),_jsxs(`div`,{style:styles.modalFooter,children:[_jsx(`button`,{type:`button`,onClick:closeModal,style:styles.cancelButton,disabled:isLoading,children:`Cancel`}),_jsx(`button`,{type:`submit`,style:{...styles.submitButton,...isLoading?styles.submitButtonDisabled:{}},disabled:isLoading,children:isLoading?`Redirecting...`:`Initiate Login`})]})]})]})});return _jsxs(_Fragment,{children:[_jsxs(`div`,{style:styles.buttonContainer,children:[_jsxs(`div`,{style:styles.helpText,children:[_jsx(`strong`,{style:{color:isDarkMode?`#e5e7eb`:`#374151`},children:`Quick Auth:`}),` `,`Authenticate once to auto-fill your Bearer token across all API endpoints`]}),_jsxs(`button`,{onClick:handleLogin,style:styles.loginButton,onMouseEnter:e=>{e.currentTarget.style.backgroundColor=styles.loginButtonHover.backgroundColor;e.currentTarget.style.borderColor=styles.loginButtonHover.borderColor},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=styles.loginButton.backgroundColor;e.currentTarget.style.borderColor=styles.loginButton.borderColor},children:[_jsxs(`svg`,{style:styles.lockIcon,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,\"aria-hidden\":`true`,children:[_jsx(`rect`,{x:`3`,y:`11`,width:`18`,height:`11`,rx:`2`,ry:`2`}),_jsx(`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`})]}),buttonText]})]}),modalMarkup,requiredScopes.length>0\u0026\u0026_jsxs(Info,{children:[_jsx(`strong`,{children:requiredScopes.length===1\u0026\u0026requiredScopes[0].length===1?`Required scope`:requiredScopes.length===1?`Required scopes`:`Required scope (any one of)`}),` `,requiredScopes.map((alternative,i)=>_jsxs(`span`,{children:[i>0\u0026\u0026` or `,alternative.map((scope,j)=>_jsxs(`span`,{children:[j>0\u0026\u0026` + `,_jsx(`code`,{children:scope})]},scope))]},i))]})]})};function _createMdxContent(props){const{_MdxComponentBoundary}={..._provideComponents(),...props.components};if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsx(_MdxComponentBoundary,{name:`OAuthLoginButton`,children:_jsx(OAuthLoginButton,{requiredScopes:[[`order:execution`]]})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{OAuthLoginButton,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":"Replace Order","description":"Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity.\n\n**Use Case:** Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily.\n\n**ID cycling:** Each successful replace returns a new `clOrdId` in the response alongside the `origClOrdId` you sent. For any further replace of the same order, you must send this new `clOrdId` as `origClOrdId` — the previous ID is invalidated once the replace is accepted.\n","openapi":"openapi.json POST /v1/orders/replace","href":"/api-reference/orders/update-order"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[19,69,"jsx:_jsx}=arguments["],[152,16465,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ariesfinancialinc/d35069a6af6e0e00/public/oauth-manager.js","/_mintlify/custom/ariesfinancialinc/baaed03e98a52073/public/token-autofill.js","/_mintlify/custom/ariesfinancialinc/5c3c9fc4fbc77145/public/paste-plain-text.js"],"openApiReferenceData":{"operation":{"description":"Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity.\n\n**Use Case:** Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily.\n\n**ID cycling:** Each successful replace returns a new `clOrdId` in the response alongside the `origClOrdId` you sent. For any further replace of the same order, you must send this new `clOrdId` as `origClOrdId` — the previous ID is invalidated once the replace is accepted.\n","operationId":"replaceOrder","x-codeSamples":[{"lang":"python","label":"Python (SDK)","source":"from finance_dev import FinanceDev, models\n\n\nwith FinanceDev(\n security=models.Security(\n client_id=\"\u003cYOUR_CLIENT_ID_HERE>\",\n client_secret=\"\u003cYOUR_CLIENT_SECRET_HERE>\",\n ),\n) as fd_client:\n\n res = fd_client.orders.replace(request={\n \"orig_cl_ord_id\": \"ORDER-123456\",\n \"price\": \"148.50\",\n \"qty\": \"10\",\n \"side\": models.OrderSideEnum.BUY,\n \"symbol\": \"AAPL\",\n \"time_in_force\": models.OrderRequestTimeInForceEnum.DAY,\n \"trading_account_id\": \"TEST-ACCOUNT-001\",\n \"type\": models.OrderTypeEnum.LIMIT,\n })\n\n assert res.replace_ord_response is not None\n\n # Handle response\n print(res.replace_ord_response)"},{"lang":"typescript","label":"Typescript (SDK)","source":"import { FinanceDev } from \"@ariesdotcom/finance-dev\";\n\nconst financeDev = new FinanceDev({\n security: {\n clientID: \"\u003cYOUR_CLIENT_ID_HERE>\",\n clientSecret: \"\u003cYOUR_CLIENT_SECRET_HERE>\",\n },\n});\n\nasync function run() {\n const result = await financeDev.orders.replace({\n origClOrdId: \"ORDER-123456\",\n price: \"148.50\",\n qty: \"10\",\n side: \"BUY\",\n symbol: \"AAPL\",\n timeInForce: \"DAY\",\n tradingAccountId: \"TEST-ACCOUNT-001\",\n type: \"LIMIT\",\n });\n\n console.log(result);\n}\n\nrun();"}],"requestBody":"a5076174-3239-47d8-8c93-c08299b7b55a","responses":{"200":"aa7542de-291f-4435-8629-1f5dea1dccaf","400":"18466aa7-8593-458f-bf76-29849f933008","401":"59d5abcd-05b8-43da-8d02-8d697d18df40","403":"81d329f7-61ea-48c0-821b-9a6e473ed5ad","404":"0fc32c8e-941b-4729-9a46-3f3606331785","500":"be3ee3cb-8f91-417c-9206-5270cd1f06bb","503":"61e2ce6c-e0b1-4c33-927a-a822ca727b3e","504":"d61e81cd-5a0d-4ac1-abc1-ccee1b15b23c"},"security":["b7633117-9212-4b8b-91b2-26985ad6bc13"],"summary":"Replace an order","tags":["Orders"],"method":"post","type":"path","servers":["eb07cd63-628b-4379-ada2-06a642ecf78a","8376f42e-e666-485a-b60c-e695cb947784"],"path":"/v1/orders/replace","baseUrlOptions":["https://api.aries.com","https://api.tradearies.dev"],"title":"Replace an order","codeSamples":[{"label":"Python (SDK)","lang":"python","source":"from finance_dev import FinanceDev, models\n\n\nwith FinanceDev(\n security=models.Security(\n client_id=\"\u003cYOUR_CLIENT_ID_HERE>\",\n client_secret=\"\u003cYOUR_CLIENT_SECRET_HERE>\",\n ),\n) as fd_client:\n\n res = fd_client.orders.replace(request={\n \"orig_cl_ord_id\": \"ORDER-123456\",\n \"price\": \"148.50\",\n \"qty\": \"10\",\n \"side\": models.OrderSideEnum.BUY,\n \"symbol\": \"AAPL\",\n \"time_in_force\": models.OrderRequestTimeInForceEnum.DAY,\n \"trading_account_id\": \"TEST-ACCOUNT-001\",\n \"type\": models.OrderTypeEnum.LIMIT,\n })\n\n assert res.replace_ord_response is not None\n\n # Handle response\n print(res.replace_ord_response)"},{"label":"Typescript (SDK)","lang":"typescript","source":"import { FinanceDev } from \"@ariesdotcom/finance-dev\";\n\nconst financeDev = new FinanceDev({\n security: {\n clientID: \"\u003cYOUR_CLIENT_ID_HERE>\",\n clientSecret: \"\u003cYOUR_CLIENT_SECRET_HERE>\",\n },\n});\n\nasync function run() {\n const result = await financeDev.orders.replace({\n origClOrdId: \"ORDER-123456\",\n price: \"148.50\",\n qty: \"10\",\n side: \"BUY\",\n symbol: \"AAPL\",\n timeInForce: \"DAY\",\n tradingAccountId: \"TEST-ACCOUNT-001\",\n type: \"LIMIT\",\n });\n\n console.log(result);\n}\n\nrun();"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"examples":{"changePrice":{"title":"changePrice","summary":"Change Price","value":{"origClOrdId":"ORDER-123456","price":"148.50","qty":"10","side":"BUY","symbol":"AAPL","timeInForce":"DAY","tradingAccountId":"TEST-ACCOUNT-001","type":"LIMIT"}},"changeQuantity":{"title":"changeQuantity","summary":"Change Quantity","value":{"origClOrdId":"ORDER-123456","price":"150.00","qty":"20","side":"BUY","symbol":"AAPL","timeInForce":"DAY","tradingAccountId":"TEST-ACCOUNT-001","type":"LIMIT"}}},"schema":{"oneOf":[{"type":"object","description":"Request body for replacing an open order through the core trading API. Use this when the user changes price, quantity, stop price, or time-in-force before the order fully fills.","required":["origClOrdId","symbol","accountId"],"properties":{"accountId":{"description":"Account identifier; provide accountId or tradingAccountId. Both may be supplied.","maxLength":50,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.accountId","typeLabel":"string"},"origClOrdId":{"description":"Client order ID of the original open order you want to replace. Use the `clOrdId` returned by Place Order or List active orders. **Important — ID cycling:** each successful replace returns a new `clOrdId` in the response. For any subsequent replace of the same order, send this new `clOrdId` as `origClOrdId` — not the ID from the original placement. Reusing the old ID will be rejected.","example":"ORDER-123456","maxLength":100,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.origClOrdId","typeLabel":"string"},"symbol":{"description":"Symbol on the original order. Use the exact symbol from the order record.","example":"AAPL","maxLength":21,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.0.symbol","typeLabel":"string"},"clientId":{"description":"Optional new client identifier from your app for the replacement order. Use this when you need to track replacement attempts separately.","maxLength":50,"type":"string","uniqueKey":"oneOf.0.clientId","typeLabel":"string"},"currency":{"description":"Three-letter currency code for the replacement order. Use USD for U.S. dollar orders unless your integration supports another currency.","example":"USD","maxLength":3,"minLength":3,"type":"string","uniqueKey":"oneOf.0.currency","typeLabel":"string"},"legs":{"description":"Option legs to replace, for single-leg or multi-leg option orders. Omit this field for equity orders. Send 1 leg for a single option contract or 2 to 4 legs for a spread/multi-leg strategy. The instrument is identified from the legs (single leg) or auto-parsed from an OSI symbol when `legs` is omitted.","items":{"description":"One option leg inside a single-leg or multi-leg order. Use this only for option orders; omit `legs` for normal stock orders.","properties":{"positionEffect":{"description":"Whether this leg opens or closes a position. Use `OPEN` for a new position and `CLOSE` when closing an existing position.","enum":["O","C","OPEN","CLOSE"],"example":"OPEN","type":"string","isRequired":true,"uniqueKey":"oneOf.0.legs.items.[INDEX].positionEffect","typeLabel":"enum\u003cstring>"},"ratioQty":{"description":"Leg ratio quantity as a decimal string. Use \"1\" for a standard one-to-one leg; use other ratios for spreads that require uneven leg sizing.","example":"1","type":"string","isRequired":true,"uniqueKey":"oneOf.0.legs.items.[INDEX].ratioQty","typeLabel":"string"},"securityType":{"description":"What kind of instrument the order is for. Pick one:\n- `CS` — Common Stock (equity / ETF).\n- `OPT` — Option contract (call or put).","enum":["CS","OPT"],"example":"CS","type":"string","isRequired":true,"uniqueKey":"oneOf.0.legs.items.[INDEX].securityType","typeLabel":"enum\u003cstring>"},"side":{"description":"Direction for this option leg. Use `BUY` when buying the leg and `SELL` when selling the leg.","enum":["B","S","BUY","SELL"],"example":"BUY","type":"string","isRequired":true,"uniqueKey":"oneOf.0.legs.items.[INDEX].side","typeLabel":"enum\u003cstring>"},"cfiCode":{"description":"Optional CFI code if your system uses ISO instrument classification. Most integrations can omit this unless their option workflow requires it.","maxLength":10,"type":"string","uniqueKey":"oneOf.0.legs.items.[INDEX].cfiCode","typeLabel":"string"},"maturity":{"description":"Option expiration date in YYYY-MM-DD format. Required for option legs when the contract is not fully identified elsewhere.","example":"2025-01-17","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string","uniqueKey":"oneOf.0.legs.items.[INDEX].maturity","typeLabel":"string\u003cdate>"},"putCall":{"description":"Option contract type. Use `CALL` for call options and `PUT` for put options.","enum":["PUT","CALL","P","C"],"example":"CALL","type":"string","uniqueKey":"oneOf.0.legs.items.[INDEX].putCall","typeLabel":"enum\u003cstring>"},"strikePrice":{"description":"Option strike price as a decimal string. Required for option legs when the contract is not fully identified elsewhere.","example":"150.00","type":"string","uniqueKey":"oneOf.0.legs.items.[INDEX].strikePrice","typeLabel":"string"},"symbol":{"description":"Underlying symbol for this option leg. Omit it when the leg uses the same underlying as the order-level symbol.","example":"AAPL","maxLength":21,"type":"string","uniqueKey":"oneOf.0.legs.items.[INDEX].symbol","typeLabel":"string"}},"required":["side","ratioQty","securityType","positionEffect"],"type":"object","uniqueKey":"oneOf.0.legs.items.[INDEX]","typeLabel":"object"},"maxItems":4,"type":"array","uniqueKey":"oneOf.0.legs","typeLabel":"object[]"},"price":{"description":"Replacement limit price as a decimal string. Send it when changing a LIMIT or STOP_LIMIT order price.","example":"148.50","type":"string","uniqueKey":"oneOf.0.price","typeLabel":"string"},"qty":{"description":"Replacement order quantity as a decimal string. Send it when changing order size.","example":"20","type":"string","uniqueKey":"oneOf.0.qty","typeLabel":"string"},"side":{"description":"Which direction to trade in. Pick one:\n- `BUY` — buying shares or contracts (opens a long position or closes an existing short).\n- `SELL` — selling shares or contracts you already hold (closes a long position).\n- `SELL_SHORT` — selling shares you do not own (opens a short position). Subject to short-sale regulations.\n- `BUY_TO_COVER` — buying shares to close an open short position.","enum":["BUY","SELL","SELL_SHORT","BUY_TO_COVER"],"example":"BUY","type":"string","uniqueKey":"oneOf.0.side","typeLabel":"enum\u003cstring>"},"stopPrice":{"description":"Replacement stop trigger as a decimal string. Send it when changing a STOP or STOP_LIMIT order trigger.","example":"145.00","type":"string","uniqueKey":"oneOf.0.stopPrice","typeLabel":"string"},"timeInForce":{"description":"How long the order should stay alive before automatically cancelling. Pick one:\n- `DAY` — Active until the end of today's regular trading session, then cancelled if not filled. The default choice for most orders.\n- `GTC` — Good 'Til Cancelled. Stays open across multiple trading days until you cancel it (the broker may cap at 60–90 days).\n- `IOC` — Immediate Or Cancel. Fill whatever you can right now; cancel the rest immediately. Useful when you want partial fills but no resting order.\n- `FOK` — Fill Or Kill. Fill the entire order immediately, or cancel it entirely. No partial fills allowed.\n- `EXTENDED_HOURS` — Active during pre-market and after-hours trading sessions in addition to regular hours.\n- `AT_THE_OPENING` — Execute at the official market open price; if it can't fill at open, it's cancelled.\n- `AT_THE_CLOSE` — Execute at the official market close price; if it can't fill at close, it's cancelled.","enum":["DAY","GTC","IOC","FOK","EXTENDED_HOURS","AT_THE_OPENING","AT_THE_CLOSE","ATO","ATC","EXT"],"example":"DAY","type":"string","uniqueKey":"oneOf.0.timeInForce","typeLabel":"enum\u003cstring>"},"tradingAccountId":{"description":"Trading account identifier that owns the order being replaced. It must match the account on the original order.","example":"TEST-ACCOUNT-001","maxLength":50,"minLength":1,"type":"string","uniqueKey":"oneOf.0.tradingAccountId","typeLabel":"string"},"type":{"description":"How the order is priced. Pick one:\n- `MARKET` — Execute immediately at the best available price. Fast and guaranteed to fill, but no price guarantee — the actual fill price can move during execution.\n- `LIMIT` — Execute only at the limit `price` or better (lower for buys, higher for sells). Gives you price control, no execution guarantee. Requires the `price` field.\n- `STOP` — Sits inactive until the market hits `stopPrice`, then converts to a market order. Common for stop-loss exits. Requires the `stopPrice` field.\n- `STOP_LIMIT` — Sits inactive until the market hits `stopPrice`, then converts to a limit order at `price`. More control than `STOP`, but the limit may not fill. Requires both `stopPrice` and `price`.","enum":["MARKET","LIMIT","STOP","STOP_LIMIT"],"example":"LIMIT","type":"string","uniqueKey":"oneOf.0.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Request body for replacing an open order through the core trading API. Use this when the user changes price, quantity, stop price, or time-in-force before the order fully fills.","required":["origClOrdId","symbol","tradingAccountId"],"properties":{"origClOrdId":{"description":"Client order ID of the original open order you want to replace. Use the `clOrdId` returned by Place Order or List active orders. **Important — ID cycling:** each successful replace returns a new `clOrdId` in the response. For any subsequent replace of the same order, send this new `clOrdId` as `origClOrdId` — not the ID from the original placement. Reusing the old ID will be rejected.","example":"ORDER-123456","maxLength":100,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.origClOrdId","typeLabel":"string"},"symbol":{"description":"Symbol on the original order. Use the exact symbol from the order record.","example":"AAPL","maxLength":21,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.symbol","typeLabel":"string"},"tradingAccountId":{"description":"Trading account identifier that owns the order being replaced. It must match the account on the original order.","example":"TEST-ACCOUNT-001","maxLength":50,"minLength":1,"type":"string","isRequired":true,"uniqueKey":"oneOf.1.tradingAccountId","typeLabel":"string"},"accountId":{"description":"Account identifier; provide accountId or tradingAccountId. Both may be supplied.","maxLength":50,"minLength":1,"type":"string","uniqueKey":"oneOf.1.accountId","typeLabel":"string"},"clientId":{"description":"Optional new client identifier from your app for the replacement order. Use this when you need to track replacement attempts separately.","maxLength":50,"type":"string","uniqueKey":"oneOf.1.clientId","typeLabel":"string"},"currency":{"description":"Three-letter currency code for the replacement order. Use USD for U.S. dollar orders unless your integration supports another currency.","example":"USD","maxLength":3,"minLength":3,"type":"string","uniqueKey":"oneOf.1.currency","typeLabel":"string"},"legs":{"description":"Option legs to replace, for single-leg or multi-leg option orders. Omit this field for equity orders. Send 1 leg for a single option contract or 2 to 4 legs for a spread/multi-leg strategy. The instrument is identified from the legs (single leg) or auto-parsed from an OSI symbol when `legs` is omitted.","items":{"description":"One option leg inside a single-leg or multi-leg order. Use this only for option orders; omit `legs` for normal stock orders.","properties":{"positionEffect":{"description":"Whether this leg opens or closes a position. Use `OPEN` for a new position and `CLOSE` when closing an existing position.","enum":["O","C","OPEN","CLOSE"],"example":"OPEN","type":"string","isRequired":true,"uniqueKey":"oneOf.1.legs.items.[INDEX].positionEffect","typeLabel":"enum\u003cstring>"},"ratioQty":{"description":"Leg ratio quantity as a decimal string. Use \"1\" for a standard one-to-one leg; use other ratios for spreads that require uneven leg sizing.","example":"1","type":"string","isRequired":true,"uniqueKey":"oneOf.1.legs.items.[INDEX].ratioQty","typeLabel":"string"},"securityType":{"description":"What kind of instrument the order is for. Pick one:\n- `CS` — Common Stock (equity / ETF).\n- `OPT` — Option contract (call or put).","enum":["CS","OPT"],"example":"CS","type":"string","isRequired":true,"uniqueKey":"oneOf.1.legs.items.[INDEX].securityType","typeLabel":"enum\u003cstring>"},"side":{"description":"Direction for this option leg. Use `BUY` when buying the leg and `SELL` when selling the leg.","enum":["B","S","BUY","SELL"],"example":"BUY","type":"string","isRequired":true,"uniqueKey":"oneOf.1.legs.items.[INDEX].side","typeLabel":"enum\u003cstring>"},"cfiCode":{"description":"Optional CFI code if your system uses ISO instrument classification. Most integrations can omit this unless their option workflow requires it.","maxLength":10,"type":"string","uniqueKey":"oneOf.1.legs.items.[INDEX].cfiCode","typeLabel":"string"},"maturity":{"description":"Option expiration date in YYYY-MM-DD format. Required for option legs when the contract is not fully identified elsewhere.","example":"2025-01-17","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string","uniqueKey":"oneOf.1.legs.items.[INDEX].maturity","typeLabel":"string\u003cdate>"},"putCall":{"description":"Option contract type. Use `CALL` for call options and `PUT` for put options.","enum":["PUT","CALL","P","C"],"example":"CALL","type":"string","uniqueKey":"oneOf.1.legs.items.[INDEX].putCall","typeLabel":"enum\u003cstring>"},"strikePrice":{"description":"Option strike price as a decimal string. Required for option legs when the contract is not fully identified elsewhere.","example":"150.00","type":"string","uniqueKey":"oneOf.1.legs.items.[INDEX].strikePrice","typeLabel":"string"},"symbol":{"description":"Underlying symbol for this option leg. Omit it when the leg uses the same underlying as the order-level symbol.","example":"AAPL","maxLength":21,"type":"string","uniqueKey":"oneOf.1.legs.items.[INDEX].symbol","typeLabel":"string"}},"required":["side","ratioQty","securityType","positionEffect"],"type":"object","uniqueKey":"oneOf.1.legs.items.[INDEX]","typeLabel":"object"},"maxItems":4,"type":"array","uniqueKey":"oneOf.1.legs","typeLabel":"object[]"},"price":{"description":"Replacement limit price as a decimal string. Send it when changing a LIMIT or STOP_LIMIT order price.","example":"148.50","type":"string","uniqueKey":"oneOf.1.price","typeLabel":"string"},"qty":{"description":"Replacement order quantity as a decimal string. Send it when changing order size.","example":"20","type":"string","uniqueKey":"oneOf.1.qty","typeLabel":"string"},"side":{"description":"Which direction to trade in. Pick one:\n- `BUY` — buying shares or contracts (opens a long position or closes an existing short).\n- `SELL` — selling shares or contracts you already hold (closes a long position).\n- `SELL_SHORT` — selling shares you do not own (opens a short position). Subject to short-sale regulations.\n- `BUY_TO_COVER` — buying shares to close an open short position.","enum":["BUY","SELL","SELL_SHORT","BUY_TO_COVER"],"example":"BUY","type":"string","uniqueKey":"oneOf.1.side","typeLabel":"enum\u003cstring>"},"stopPrice":{"description":"Replacement stop trigger as a decimal string. Send it when changing a STOP or STOP_LIMIT order trigger.","example":"145.00","type":"string","uniqueKey":"oneOf.1.stopPrice","typeLabel":"string"},"timeInForce":{"description":"How long the order should stay alive before automatically cancelling. Pick one:\n- `DAY` — Active until the end of today's regular trading session, then cancelled if not filled. The default choice for most orders.\n- `GTC` — Good 'Til Cancelled. Stays open across multiple trading days until you cancel it (the broker may cap at 60–90 days).\n- `IOC` — Immediate Or Cancel. Fill whatever you can right now; cancel the rest immediately. Useful when you want partial fills but no resting order.\n- `FOK` — Fill Or Kill. Fill the entire order immediately, or cancel it entirely. No partial fills allowed.\n- `EXTENDED_HOURS` — Active during pre-market and after-hours trading sessions in addition to regular hours.\n- `AT_THE_OPENING` — Execute at the official market open price; if it can't fill at open, it's cancelled.\n- `AT_THE_CLOSE` — Execute at the official market close price; if it can't fill at close, it's cancelled.","enum":["DAY","GTC","IOC","FOK","EXTENDED_HOURS","AT_THE_OPENING","AT_THE_CLOSE","ATO","ATC","EXT"],"example":"DAY","type":"string","uniqueKey":"oneOf.1.timeInForce","typeLabel":"enum\u003cstring>"},"type":{"description":"How the order is priced. Pick one:\n- `MARKET` — Execute immediately at the best available price. Fast and guaranteed to fill, but no price guarantee — the actual fill price can move during execution.\n- `LIMIT` — Execute only at the limit `price` or better (lower for buys, higher for sells). Gives you price control, no execution guarantee. Requires the `price` field.\n- `STOP` — Sits inactive until the market hits `stopPrice`, then converts to a market order. Common for stop-loss exits. Requires the `stopPrice` field.\n- `STOP_LIMIT` — Sits inactive until the market hits `stopPrice`, then converts to a limit order at `price`. More control than `STOP`, but the limit may not fill. Requires both `stopPrice` and `price`.","enum":["MARKET","LIMIT","STOP","STOP_LIMIT"],"example":"LIMIT","type":"string","uniqueKey":"oneOf.1.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Which order to modify and what to change. Required: `origClOrdId`, at least one of `accountId` or `tradingAccountId`, `symbol`. Then include only the fields you want to update — typically some combination of `qty`, `price`, `stopPrice`, `type`, and `timeInForce`.","required":true,"exampleType":"examples"},"responses":{"aa7542de-291f-4435-8629-1f5dea1dccaf":{"content":{"application/json":{"example":{"clOrdId":"ORDER-20260115-003","origClOrdId":"ORDER-20260115-001","price":"175.50","qty":"200","status":"REPLACED","success":true,"text":"Replace accepted","transactTime":"2026-01-15T14:31:00Z"},"schema":{"description":"Response returned after requesting an order replacement. Treat it as the replacement result and monitor the new client order ID going forward.","example":{"clOrdId":"ORDER-20260115-003","origClOrdId":"ORDER-20260115-001","price":"175.50","qty":"200","status":"REPLACED","success":true,"text":"Replace accepted","transactTime":"2026-01-15T14:31:00Z"},"properties":{"clOrdId":{"description":"New client order ID assigned to the replacement order. Store this for future status, replace, or cancel operations.","example":"ORDER-123457","type":"string","uniqueKey":"clOrdId","typeLabel":"string"},"origClOrdId":{"description":"Client order ID of the order that was replaced. Use it to connect the replacement back to the original order.","example":"ORDER-123456","type":"string","uniqueKey":"origClOrdId","typeLabel":"string"},"price":{"description":"Replacement order price as a decimal string. Display this as the current limit or reference price after a successful replace.","example":"150.00","type":"string","uniqueKey":"price","typeLabel":"string"},"qty":{"description":"Replacement order quantity as a decimal string. Display this as the current order size after a successful replace.","example":"20","type":"string","uniqueKey":"qty","typeLabel":"string"},"status":{"description":"Order status after the replace request. Typical values after a successful replace:\n- `PENDING_REPLACE` — replace request accepted by the broker but not yet final. Keep monitoring; will move to `REPLACED` once confirmed.\n- `REPLACED` — the modification took effect. From now on, refer to the order by the new `clOrdId`.\n- `REJECTED` — the replace was refused (e.g. the order had already fully filled). The original order is unchanged.\n\nThe full FIX OrdStatus enum is supported — see the Place Order response for the complete list of possible values.","enum":["NEW","PARTIALLY_FILLED","FILLED","DONE_FOR_DAY","CANCELED","REPLACED","PENDING_CANCEL","STOPPED","REJECTED","SUSPENDED","PENDING_NEW","CALCULATED","EXPIRED","ACCEPTED_FOR_BID","PENDING_REPLACE","SUPERSEDED"],"example":"REPLACED","type":"string","uniqueKey":"status","typeLabel":"enum\u003cstring>"},"success":{"description":"Whether Aries or the broker accepted the replace request for processing.","example":true,"type":"boolean","uniqueKey":"success","typeLabel":"boolean"},"text":{"description":"Broker or platform message about the replace result. Show it when replacement is rejected or pending.","type":"string","uniqueKey":"text","typeLabel":"string"},"transactTime":{"description":"Time the replace action was processed. Use it for order timelines and audit logs.","format":"date-time","type":"string","uniqueKey":"transactTime","typeLabel":"string\u003cdate-time>"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"clOrdId":"ORDER-20260115-003","origClOrdId":"ORDER-20260115-001","price":"175.50","qty":"200","status":"REPLACED","success":true,"text":"Replace accepted","transactTime":"2026-01-15T14:31:00Z"}}},"exampleType":"examples"}},"description":"Replace request submitted successfully","exampleType":"examples"},"18466aa7-8593-458f-bf76-29849f933008":{"content":{"application/json":{"examples":{"flat_string":{"title":"flat_string","summary":"Flat error string","value":{"error":"string"}},"flat_with_codes":{"title":"flat_with_codes","summary":"Flat error with field codes (some services)","value":{"codes":[{"code":"string","description":"string","field":"string"}],"error":"string"}},"nested_bad_request":{"title":"nested_bad_request","summary":"Nested error (BAD_REQUEST / invalid JSON)","value":{"error":{"code":"INVALID_JSON","message":"string","type":"BAD_REQUEST"}}},"nested_shared_http_error":{"title":"nested_shared_http_error","summary":"Nested error (typical for shared WriteHTTPError-style responses)","value":{"error":{"code":"VALIDATION_ERROR","details":{"fieldName":"field is required"},"message":"Query parameter validation failed","type":"VALIDATION"}}}},"schema":{"oneOf":[{"type":"object","description":"400 responses commonly use a nested `error` object (`type`, `code`, `message`, optional `details`). Some services still return flat `ErrorResponse` (`error` string, optional `codes`).","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"oneOf.0.error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"oneOf.0.error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.0.error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"oneOf.0.error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"oneOf.0.error.type","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"oneOf.0.meta","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"400 responses commonly use a nested `error` object (`type`, `code`, `message`, optional `details`). Some services still return flat `ErrorResponse` (`error` string, optional `codes`).","properties":{"codes":{"description":"Structured error codes for programmatic handling","items":{"description":"A single structured error entry identifying a machine-readable code, a human-readable description, and optionally the field that caused it.","properties":{"code":{"description":"Machine-readable error code","example":"INVALID_PASSWORD","type":"string","uniqueKey":"oneOf.1.codes.items.[INDEX].code","typeLabel":"string"},"description":{"description":"Human-readable description of the error","example":"Password must be between 8 and 64 characters","type":"string","uniqueKey":"oneOf.1.codes.items.[INDEX].description","typeLabel":"string"},"field":{"description":"Field name that caused the error","example":"password","type":"string","uniqueKey":"oneOf.1.codes.items.[INDEX].field","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.1.codes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.1.codes","typeLabel":"object[]"},"error":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.1.error","typeLabel":"string"},"metadata":{"additionalProperties":true,"description":"Additional error context","type":"object","uniqueKey":"oneOf.1.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Invalid query/path/body, malformed JSON, or failed validation.\n\n**Backend (shared HTTP errors):** Routes that use the shared error writer typically return a **nested** JSON object: `error.type` is an uppercase category such as `VALIDATION` or `BAD_REQUEST` (see the API implementation). Other routes may return the **flat** `ErrorResponse` shape (`error` as a string, optional `codes`). The body may rarely be empty.\n\n**OpenAPI:** Every operation’s **400** response references this component so the documented schema and examples stay aligned.","exampleType":"examples"},"59d5abcd-05b8-43da-8d02-8d697d18df40":{"content":{"application/json":{"examples":{"flat_message":{"title":"flat_message","summary":"Flat error string (typical)","value":{"error":"string"}},"flat_with_codes":{"title":"flat_with_codes","summary":"Flat error with structured codes","value":{"codes":[{"code":"string","description":"string"}],"error":"string"}},"nested_error_object":{"title":"nested_error_object","summary":"Nested error (shared HTTP error format)","value":{"error":{"code":"INVALID_TOKEN","message":"string","type":"AUTHENTICATION"}}}},"schema":{"oneOf":[{"type":"object","description":"401 responses may use a flat `ErrorResponse` shape or a nested `error` object. Inspect `error`: if it is a string, use the flat shape; if it is an object, use the structured shape.","properties":{"codes":{"description":"Structured error codes for programmatic handling","items":{"description":"A single structured error entry identifying a machine-readable code, a human-readable description, and optionally the field that caused it.","properties":{"code":{"description":"Machine-readable error code","example":"INVALID_PASSWORD","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].code","typeLabel":"string"},"description":{"description":"Human-readable description of the error","example":"Password must be between 8 and 64 characters","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].description","typeLabel":"string"},"field":{"description":"Field name that caused the error","example":"password","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].field","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.codes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.codes","typeLabel":"object[]"},"error":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.0.error","typeLabel":"string"},"metadata":{"additionalProperties":true,"description":"Additional error context","type":"object","uniqueKey":"oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"401 responses may use a flat `ErrorResponse` shape or a nested `error` object. Inspect `error`: if it is a string, use the flat shape; if it is an object, use the structured shape.","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"oneOf.1.error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"oneOf.1.error.type","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.1.error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"oneOf.1.meta","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Authentication failed: missing credentials, invalid JWT, or expired access token.\n\n**Response body variants:** Some routes return JSON with a string `error` field (and optionally `codes` / `metadata`). Others return JSON where `error` is a structured object (`type`, `code`, `message`, and optionally `details`, `request_id`). The response may have **no body** even though the status is 401—clients should treat 401 as unauthenticated and refresh or re-authenticate regardless of body shape.","exampleType":"examples"},"81d329f7-61ea-48c0-821b-9a6e473ed5ad":{"content":{"application/json":{"examples":{"flat":{"title":"flat","summary":"Flat message","value":{"error":"string"}},"nested":{"title":"nested","summary":"Nested error (shared HTTP error format)","value":{"error":{"code":"INSUFFICIENT_SCOPE","message":"string","type":"AUTHORIZATION"}}}},"schema":{"oneOf":[{"type":"object","description":"403 responses may use a flat or nested error shape.","properties":{"codes":{"description":"Structured error codes for programmatic handling","items":{"description":"A single structured error entry identifying a machine-readable code, a human-readable description, and optionally the field that caused it.","properties":{"code":{"description":"Machine-readable error code","example":"INVALID_PASSWORD","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].code","typeLabel":"string"},"description":{"description":"Human-readable description of the error","example":"Password must be between 8 and 64 characters","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].description","typeLabel":"string"},"field":{"description":"Field name that caused the error","example":"password","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].field","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.codes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.codes","typeLabel":"object[]"},"error":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.0.error","typeLabel":"string"},"metadata":{"additionalProperties":true,"description":"Additional error context","type":"object","uniqueKey":"oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"403 responses may use a flat or nested error shape.","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"oneOf.1.error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"oneOf.1.error.type","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.1.error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"oneOf.1.meta","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Authenticated but not allowed to perform this action or access this resource (insufficient scope or role).\n\n**Response body variants:** Flat `ErrorResponse` or nested `error` object, same pattern as 400/401.","exampleType":"examples"},"0fc32c8e-941b-4729-9a46-3f3606331785":{"content":{"application/json":{"examples":{"flat":{"title":"flat","summary":"Flat message","value":{"error":"string"}},"nested":{"title":"nested","summary":"Nested error (shared HTTP error format)","value":{"error":{"code":"RESOURCE_NOT_FOUND","message":"string","type":"NOT_FOUND"}}}},"schema":{"oneOf":[{"type":"object","description":"404 responses may use a flat or nested error shape.","properties":{"codes":{"description":"Structured error codes for programmatic handling","items":{"description":"A single structured error entry identifying a machine-readable code, a human-readable description, and optionally the field that caused it.","properties":{"code":{"description":"Machine-readable error code","example":"INVALID_PASSWORD","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].code","typeLabel":"string"},"description":{"description":"Human-readable description of the error","example":"Password must be between 8 and 64 characters","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].description","typeLabel":"string"},"field":{"description":"Field name that caused the error","example":"password","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].field","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.codes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.codes","typeLabel":"object[]"},"error":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.0.error","typeLabel":"string"},"metadata":{"additionalProperties":true,"description":"Additional error context","type":"object","uniqueKey":"oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"404 responses may use a flat or nested error shape.","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"oneOf.1.error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"oneOf.1.error.type","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.1.error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"oneOf.1.meta","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"The requested resource does not exist or is not visible to this caller.\n\n**Response body variants:** Flat `ErrorResponse` or nested `error` object.","exampleType":"examples"},"be3ee3cb-8f91-417c-9206-5270cd1f06bb":{"content":{"application/json":{"examples":{"flat_string":{"title":"flat_string","summary":"Flat error string","value":{"error":"string"}},"nested_error_object":{"title":"nested_error_object","summary":"Nested error (shared HTTP error format)","value":{"error":{"code":"INTERNAL_ERROR","message":"string","type":"INTERNAL"}}}},"schema":{"oneOf":[{"type":"object","description":"5xx responses may use a flat or nested error shape.","properties":{"codes":{"description":"Structured error codes for programmatic handling","items":{"description":"A single structured error entry identifying a machine-readable code, a human-readable description, and optionally the field that caused it.","properties":{"code":{"description":"Machine-readable error code","example":"INVALID_PASSWORD","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].code","typeLabel":"string"},"description":{"description":"Human-readable description of the error","example":"Password must be between 8 and 64 characters","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].description","typeLabel":"string"},"field":{"description":"Field name that caused the error","example":"password","type":"string","uniqueKey":"oneOf.0.codes.items.[INDEX].field","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.0.codes.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"oneOf.0.codes","typeLabel":"object[]"},"error":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.0.error","typeLabel":"string"},"metadata":{"additionalProperties":true,"description":"Additional error context","type":"object","uniqueKey":"oneOf.0.metadata","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"5xx responses may use a flat or nested error shape.","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"oneOf.1.error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"oneOf.1.error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"oneOf.1.error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"oneOf.1.error.type","typeLabel":"string"}},"type":"object","uniqueKey":"oneOf.1.error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"oneOf.1.meta","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"Unexpected server error or upstream failure. **Retry with exponential backoff**; do not assume a specific JSON body shape.\n\n**Response body variants:** Flat `ErrorResponse`, nested `error` object, or occasionally a minimal message.","exampleType":"examples"},"61e2ce6c-e0b1-4c33-927a-a822ca727b3e":{"content":{"application/json":{"examples":{"service_unavailable":{"title":"service_unavailable","summary":"Dependency unavailable","value":{"error":{"code":"SERVICE_UNAVAILABLE","message":"Service unavailable","type":"SERVICE_UNAVAILABLE"}}}},"schema":{"description":"JSON envelope where `error` is a nested object (`type`, `code`, `message`, …). Many services use this shape for 400, 401, 403, 404, and 5xx when using the shared HTTP error format.","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"error.type","typeLabel":"string"}},"type":"object","uniqueKey":"error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"meta","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"A required dependency is unavailable (for example the broker connection or a position/balance read model). Returns the nested error envelope (`error.type`, `error.code`, `error.message`, optional `error.details`).","exampleType":"examples"},"d61e81cd-5a0d-4ac1-abc1-ccee1b15b23c":{"content":{"application/json":{"examples":{"timeout":{"title":"timeout","summary":"Broker response timeout","value":{"error":{"code":"TIMEOUT","details":{"reason":"order response timeout"},"message":"Request timeout","type":"TIMEOUT"}}}},"schema":{"description":"JSON envelope where `error` is a nested object (`type`, `code`, `message`, …). Many services use this shape for 400, 401, 403, 404, and 5xx when using the shared HTTP error format.","properties":{"error":{"description":"Structured payload for the nested `error` object. Services using the shared Go error writer emit uppercase `type` values aligned with error categories (for example `VALIDATION`, `BAD_REQUEST`, `AUTHENTICATION`, `AUTHORIZATION`, `NOT_FOUND`, `RATE_LIMIT`, `INTERNAL`).","properties":{"code":{"description":"Machine-readable code","example":"INVALID_TOKEN","type":"string","uniqueKey":"error.code","typeLabel":"string"},"details":{"additionalProperties":true,"description":"Optional extra context","type":"object","uniqueKey":"error.details","typeLabel":"object"},"message":{"description":"Error detail as a string. Exact message content is not fixed and should not be hard-coded.","example":"string","type":"string","uniqueKey":"error.message","typeLabel":"string"},"request_id":{"description":"Request correlation id when provided","type":"string","uniqueKey":"error.request_id","typeLabel":"string"},"type":{"description":"Error category emitted by the shared error writer, such as VALIDATION, BAD_REQUEST, AUTHENTICATION, AUTHORIZATION, NOT_FOUND, RATE_LIMIT, or INTERNAL.","example":"AUTHENTICATION","type":"string","uniqueKey":"error.type","typeLabel":"string"}},"type":"object","uniqueKey":"error","typeLabel":"object"},"meta":{"additionalProperties":true,"description":"Optional metadata","type":"object","uniqueKey":"meta","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"exampleType":"examples"}},"description":"The downstream broker did not respond in time. Returns the nested error envelope (`error.type`, `error.code`, `error.message`, optional `error.details`). The order outcome is unknown; check order status before retrying.","exampleType":"examples"}},"security":{"b7633117-9212-4b8b-91b2-26985ad6bc13":{"OAuth2":{"description":"OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.","flows":{"authorizationCode":{"authorizationUrl":"https://app.aries.com/oauth2/authorize","refreshUrl":"https://api.aries.com/v1/oauth2/token","scopes":{"account:information":"View account balances, positions, and transaction history","analytics:information":"View analytics, ratings, and market insights","calendar:information":"Access earnings, economic, and market schedule data","market:information":"Access live and historical market data","market:supplemental":"News, company profiles, financials, filings, ETF data, technical analysis","options:information":"Access options chains and expiration data","order:execution":"Place, modify, and cancel orders","order:information":"View order history and status","position:information":"View current positions and holdings","user:information":"View user profile and personal details","user:management":"Manage user-scoped resources and saved configuration (internal).","watchlist:information":"View your watchlists and their symbols.","watchlist:management":"Create, update, replace, and delete your watchlists."},"tokenUrl":"https://api.aries.com/v1/oauth2/token"},"clientCredentials":{"refreshUrl":"https://api.aries.com/v1/oauth2/token","scopes":{"account:information":"View account balances, positions, and transaction history","analytics:information":"View analytics, ratings, and market insights","calendar:information":"Access earnings, economic, and market schedule data","market:information":"Access live and historical market data","market:supplemental":"News, company profiles, financials, filings, ETF data, technical analysis","options:information":"Access options chains and expiration data","order:execution":"Place, modify, and cancel orders","order:information":"View order history and status","position:information":"View current positions and holdings","user:information":"View user profile and personal details","user:management":"Manage user-scoped resources and saved configuration (internal).","watchlist:information":"View your watchlists and their symbols.","watchlist:management":"Create, update, replace, and delete your watchlists."},"tokenUrl":"https://api.aries.com/v1/oauth2/token"}},"type":"oauth2","scopes":["order:execution"],"schemeName":"OAuth2"}}},"servers":{"eb07cd63-628b-4379-ada2-06a642ecf78a":{"description":"Production server","url":"https://api.aries.com"},"8376f42e-e666-485a-b60c-e695cb947784":{"description":"Staging server","url":"https://api.tradearies.dev"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"description":"OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.","flows":{"authorizationCode":{"authorizationUrl":"https://app.aries.com/oauth2/authorize","refreshUrl":"https://api.aries.com/v1/oauth2/token","scopes":{"account:information":"View account balances, positions, and transaction history","analytics:information":"View analytics, ratings, and market insights","calendar:information":"Access earnings, economic, and market schedule data","market:information":"Access live and historical market data","market:supplemental":"News, company profiles, financials, filings, ETF data, technical analysis","options:information":"Access options chains and expiration data","order:execution":"Place, modify, and cancel orders","order:information":"View order history and status","position:information":"View current positions and holdings","user:information":"View user profile and personal details","user:management":"Manage user-scoped resources and saved configuration (internal).","watchlist:information":"View your watchlists and their symbols.","watchlist:management":"Create, update, replace, and delete your watchlists."},"tokenUrl":"https://api.aries.com/v1/oauth2/token"},"clientCredentials":{"refreshUrl":"https://api.aries.com/v1/oauth2/token","scopes":{"account:information":"View account balances, positions, and transaction history","analytics:information":"View analytics, ratings, and market insights","calendar:information":"Access earnings, economic, and market schedule data","market:information":"Access live and historical market data","market:supplemental":"News, company profiles, financials, filings, ETF data, technical analysis","options:information":"Access options chains and expiration data","order:execution":"Place, modify, and cancel orders","order:information":"View order history and status","position:information":"View current positions and holdings","user:information":"View user profile and personal details","user:management":"Manage user-scoped resources and saved configuration (internal).","watchlist:information":"View your watchlists and their symbols.","watchlist:management":"Create, update, replace, and delete your watchlists."},"tokenUrl":"https://api.aries.com/v1/oauth2/token"}},"type":"oauth2","scopes":["order:execution"],"schemeName":"OAuth2"},"schema":{"title":"OAuth2 Auth","type":"string","isRequired":true,"description":"OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"OAuth2","name":"Authorization"}],"title":"OAuth2"}]},"originalFileLocation":"openapi.json"},"subdomain":"ariesfinancialinc","siteName":"Aries API","title":"Replace Order - Aries API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T15:46:21.227Z","originalFileLocation":"api-reference/orders/update-order.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity. Use Case: Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily. ID cycling: Each successful replace returns a new clOrdId in the response alongside the origClOrdId you sent. For any further replace of the same order, you must send this new clOrdId as origClOrdId — the previous ID is invalidated once the replace is accepted.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aries 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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_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/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Replace Order - Aries API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity. Use Case: Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily. ID cycling: Each successful replace returns a new clOrdId in the response alongside the origClOrdId you sent. For any further replace of the same order, you must send this new clOrdId as origClOrdId — the previous ID is invalidated once the replace is accepted.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aries API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://finance.dev/api-reference/orders/update-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ariesfinancialinc.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Replace+Order\u0026amp;description=Modifies+an+existing+open+order+by+replacing+it+with+updated+parameters+such+as+price+or+quantity.+This+operation+cancels+the+original+order+and+submits+a+new+o\u0026amp;theme=ee60a00d22459cbc9960cbdc\u0026amp;signature=90a23d09e2e6c5a7a3c75cc40dba034bd040643bd89ceb34ab9bdee8282bf047\">\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=\"Replace Order - Aries API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity. Use Case: Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily. ID cycling: Each successful replace returns a new clOrdId in the response alongside the origClOrdId you sent. For any further replace of the same order, you must send this new clOrdId as origClOrdId — the previous ID is invalidated once the replace is accepted.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ariesfinancialinc.mintlify.site/_mintlify/api/og/v2?division=Orders\u0026amp;title=Replace+Order\u0026amp;description=Modifies+an+existing+open+order+by+replacing+it+with+updated+parameters+such+as+price+or+quantity.+This+operation+cancels+the+original+order+and+submits+a+new+o\u0026amp;theme=ee60a00d22459cbc9960cbdc\u0026amp;signature=90a23d09e2e6c5a7a3c75cc40dba034bd040643bd89ceb34ab9bdee8282bf047\">\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/ariesfinancialinc/ylnD03T0GOb_wvQC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aries API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0BAA5E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://finance.dev/api-reference/orders/update-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/orders/update-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://finance.dev/#organization\",\"name\":\"Aries API\",\"url\":\"https://finance.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ariesfinancialinc/RAN-JEltzDnib-_A/logo/light.svg?fit=max\u0026auto=format\u0026n=RAN-JEltzDnib-_A\u0026q=85\u0026s=4eae127cdf55bb09159d2b5a625690e3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://finance.dev#website\",\"name\":\"Aries API\",\"url\":\"https://finance.dev\",\"publisher\":{\"@id\":\"https://finance.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://finance.dev/api-reference/orders/update-order#webpage\",\"url\":\"https://finance.dev/api-reference/orders/update-order\",\"name\":\"Replace Order\",\"description\":\"Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity. Use Case: Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily. ID cycling: Each successful replace returns a new clOrdId in the response alongside the origClOrdId you sent. For any further replace of the same order, you must send this new clOrdId as origClOrdId — the previous ID is invalidated once the replace is accepted.\",\"dateModified\":\"2026-10-21T15:46:21.227Z\",\"isPartOf\":{\"@id\":\"https://finance.dev#website\"},\"breadcrumb\":{\"@id\":\"https://finance.dev/api-reference/orders/update-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://finance.dev/api-reference/orders/update-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orders\",\"item\":\"https://finance.dev/api-reference/orders/order-flow\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Replace Order\",\"item\":\"https://finance.dev/api-reference/orders/update-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://finance.dev/api-reference/orders/update-order#apireference\",\"headline\":\"Replace Order\",\"name\":\"Replace Order\",\"description\":\"Modifies an existing open order by replacing it with updated parameters such as price or quantity. This operation cancels the original order and submits a new one atomically, maintaining order continuity. Use Case: Adjust limit prices or order quantities in response to market movements without losing queue position unnecessarily. ID cycling: Each successful replace returns a new clOrdId in the response alongside the origClOrdId you sent. For any further replace of the same order, you must send this new clOrdId as origClOrdId — the previous ID is invalidated once the replace is accepted.\",\"url\":\"https://finance.dev/api-reference/orders/update-order\",\"mainEntityOfPage\":{\"@id\":\"https://finance.dev/api-reference/orders/update-order#webpage\"},\"dateModified\":\"2026-10-21T15:46:21.227Z\",\"publisher\":{\"@id\":\"https://finance.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://finance.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aries API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Aries API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/orders/update-order.md","siteName":"Aries API","nav":{"global":null,"tabs":[{"tab":"Welcome","icon":"house","pages":[{"title":"Welcome","href":"/welcome"}]},{"tab":"Quick Start","icon":"rocket","pages":[{"title":"Quick Start","href":"/api-reference/quickstart"}]},{"tab":"Auth","icon":"shield-halved","pages":[{"title":"Auth","href":"/api-reference/oauth2/overview"}]},{"tab":"Core API","icon":"bolt","pages":[{"title":"API Reference","href":"/api-reference"},{"group":"Users","pages":[{"title":"Get User Info","openapi":"openapi.json GET /v1/users/info","href":"/api-reference/user/info"}]},{"group":"Accounts","pages":[{"group":"Guide","pages":[{"title":"Account Info","href":"/api-reference/accounts/overview"}]},{"title":"User Accounts","openapi":"openapi.json GET /v2/users/me/accounts","href":"/api-reference/accounts/user-accounts"},{"title":"Today's Orders","openapi":"openapi.json GET /v2/accounts/{id}/orders","href":"/api-reference/accounts/list-active-orders"},{"title":"List order history","openapi":"openapi.json GET /v2/accounts/{id}/orders/history","href":"/api-reference/accounts/list-orders-history"},{"title":"Account Positions","openapi":"openapi.json GET /v1/accounts/{id}/positions","href":"/api-reference/accounts/positions"},{"title":"Account Balance","openapi":"openapi.json GET /v2/accounts/{id}/balance","href":"/api-reference/accounts/balance"}]},{"group":"Orders","pages":[{"group":"Guide","pages":[{"title":"Order Flow","href":"/api-reference/orders/order-flow"},{"title":"Market Order","href":"/api-reference/orders/market-order"},{"title":"Limit Order","href":"/api-reference/orders/limit-order"},{"title":"Stop Order","href":"/api-reference/orders/stop-order"},{"title":"Stop-Limit Order","href":"/api-reference/orders/stop-limit-order"},{"title":"Single-Leg Option Order","href":"/api-reference/orders/single-leg-option"},{"title":"Multi-Leg Option Order","href":"/api-reference/orders/multi-leg-option"}]},{"title":"Place Order","description":"Submits a new trading order to the market with specified parameters including symbol, quantity, order type, and price. Supports market, limit, stop, and stop-limit orders for both equity and option securities with advanced order features.\n\n**Use Case:** Execute buy or sell orders for stocks and options with customizable order types, time-in-force settings, and execution instructions.\n","openapi":"openapi.json POST /v1/orders","href":"/api-reference/orders/place-order"},{"title":"Replace Order","openapi":"openapi.json POST /v1/orders/replace","href":"/api-reference/orders/update-order"},{"title":"Cancel Order","description":"Cancels an existing open or partially filled order identified by order ID. This action immediately requests order cancellation from the exchange, preventing further execution while preserving any partial fills already completed.\n\n**Use Case:** Stop unfilled orders when market conditions change or trading strategies need adjustment before complete execution.\n","openapi":"openapi.json POST /v1/orders/cancel","href":"/api-reference/orders/cancel-order"},{"title":"Preview Order","openapi":"openapi.json POST /v1/orders/preview","href":"/api-reference/orders/preview-order"}]},{"group":"Market Data","pages":[{"group":"Guide","pages":[{"title":"Market Data","href":"/api-reference/marketdata/overview"}]},{"title":"Search Symbols","openapi":"openapi.json GET /v1/marketdata/search","href":"/api-reference/marketdata/search"},{"title":"Equity Details","openapi":"openapi.json GET /v1/marketdata/equities/details","href":"/api-reference/marketdata/equity-details"},{"title":"Options Details","openapi":"openapi.json GET /v1/marketdata/options/details","href":"/api-reference/marketdata/options-details"},{"title":"Easy-to-Borrow List","openapi":"openapi.json GET /v1/etb","href":"/api-reference/marketdata/easy-to-borrow-list"},{"title":"Easy-to-Borrow Search","openapi":"openapi.json POST /v1/etb/search","href":"/api-reference/marketdata/easy-to-borrow-search"}]},{"group":"Watchlist","pages":[{"title":"Create Watchlist","openapi":"openapi.json POST /v1/config/watchlist","href":"/api-reference/watchlist/create-watchlist"},{"title":"List Watchlists","openapi":"openapi.json GET /v1/config/watchlist","href":"/api-reference/watchlist/list-watchlists"},{"title":"Get Watchlist","openapi":"openapi.json GET /v1/config/watchlist/{watchlist_id}","href":"/api-reference/watchlist/get-watchlist"},{"title":"Update Watchlist","openapi":"openapi.json PATCH /v1/config/watchlist/{watchlist_id}","href":"/api-reference/watchlist/update-watchlist"},{"title":"Delete Watchlist","openapi":"openapi.json DELETE /v1/config/watchlist/{watchlist_id}","href":"/api-reference/watchlist/delete-watchlist"},{"title":"Replace All Watchlists","openapi":"openapi.json PUT /v1/config/watchlist","href":"/api-reference/watchlist/replace-watchlists"}]},{"group":"Chart","pages":[{"title":"Chart Configuration","openapi":"openapi.json GET /v1/chart/config","href":"/api-reference/chart/get-config"},{"title":"Symbol Information","openapi":"openapi.json GET /v1/chart/symbols","href":"/api-reference/chart/get-symbol-info"},{"title":"Historical Bars","openapi":"openapi.json GET /v1/chart/history","href":"/api-reference/chart/get-historical-bars"},{"title":"Tick-Based Chart Data","openapi":"openapi.json GET /v1/chart/tick-history","href":"/api-reference/chart/get-tick-history"},{"title":"Server Time","openapi":"openapi.json GET /v1/chart/time","href":"/api-reference/chart/get-server-time"},{"title":"Search Symbols","openapi":"openapi.json GET /v1/chart/search","href":"/api-reference/chart/search-symbols"},{"title":"Quotes","openapi":"openapi.json GET /v1/chart/quotes","href":"/api-reference/chart/get-quotes"}]}]},{"tab":"Supplemental API","icon":"chart-mixed","pages":[{"title":"Supplemental API","href":"/supplemental-api/overview"}]},{"tab":"Prediction API","icon":"landmark","pages":[{"title":"Prediction API","href":"/prediction-api/overview"}]},{"tab":"Streaming API","icon":"satellite-dish","pages":[{"title":"Streaming API","href":"/websockets/overview"}]},{"tab":"AI Agents","icon":"robot","pages":[{"title":"AI Agents","href":"/ai-agents/add-skill"}]},{"tab":"MCP Auth","icon":"plug","pages":[{"title":"MCP Auth","href":"/mcp-auth"}]},{"tab":"SDKs","icon":"code","pages":[{"title":"SDKs","href":"/sdks/overview"}]},{"tab":"Changelog","icon":"newspaper","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Replace Order - Aries API","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CiUHMMOm.js","snippetPresets-BgfXU7Bw.js","utils-DWvOwgy_.js","style-to-object-BY3JEAdk.js","utils-BN7RXSMJ.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CFw8bq89.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CAwdfOU2.js","_Uint8Array-BJr8e-ZL.js","isObject-FP1Yky1u.js","ApiExamples-XX0UgMZK.js","usePlaygroundInputsStore-DXDFSa1V.js","shallow-CdX5aREi.js","isEqual-CoOaxexF.js","CodeSnippets-Cg2wpzWm.js","CodeSnippet-D_HwgQO_.js","getApiPlaygroundDisplay-CmCoerhe.js","Page-CVJ-f_k1.js","DynamicMarkdown-CQM9Bhbv.js","SectionHeading-DpbrP8nQ.js","icon-BPCgijHy.js","MethodPill-GQ8DuY0c.js","getPastedJson-Cb5mT31m.js","Check2Icon-a7bUI6e8.js","axios-CsQoIw0U.js","Markdown-CX2QY19L.js","AssistantPageLink-CY3bFglh.js","dist-Dl6_zDnT.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}