Create, modify, and cancel orders, update isolated margin, and receive fill/rejection notifications.
WSS
?product=perpetuals&market=
{market}
&subscriptions=orders&sessionId=
{sessionId}
This stream is available on the orders subscription. It allows you to create, modify, and cancel orders, update isolated position margin, and receive order notifications.
Order actions typically produce more than one message on this stream:
An acknowledgment (statusCode: 202) confirming the request was received and is being processed
A confirmation (statusCode: 200) once the action has taken effect, or an error (400/403/404/408/409/429/500) if it failed
modifyOrder treats the modification as a replacement: after the acknowledgment, the confirmation carries the replacement order, which has a new orderId; the original order is cancelled. See Order Modification for the full sequence.
updateMargin is a special case: if the requested margin already matches the current margin, the operation is a no-op and the 200 confirmation is returned directly without a prior 202 acknowledgment.
completeFillOrder and partialFillOrder are pushed as your orders execute; rejectOrder is pushed when an order is rejected (for example, a post-only order that would have matched immediately).
Connecting with a sessionId query parameter starts a WebSocket session on this stream: on connect, any messages missed since the last delivered position are backfilled first, followed by a sessionBackfill message summarizing the session.See WebSocket Session for the full field reference, session continuity semantics, and backfill limits.
A specific market (e.g. BTC-USDT) or ALL. When ALL is used, market must be supplied explicitly in the content of every request that accepts it.
sessionId
type:string
required
UUID identifying a session. Enables WebSocket Session on this stream. Omit to opt out.
Sec-WebSocket-Protocol
type:httpApiKey
Supply as authorization#<JWT> during the WebSocket handshake.
Create Order
type:object
Modify Order
type:object
Cancel Order By ID
type:object
Update Margin
type:object
Create Order — Acknowledgment
type:object
Create Order — Confirmation
type:object
Create Order — Error
type:object
Modify Order — Acknowledgment
type:object
Modify Order — Confirmation
type:object
The original order is cancelled and its replacement, under a new orderId, is on the book. The order is the replacement.
Modify Order — Error
type:object
Cancel Order — Acknowledgment
type:object
Cancel Order — Confirmation
type:object
Cancel Order — Error
type:object
Update Margin — Acknowledgment
type:object
Update Margin — Confirmation
type:object
Update Margin — Error
type:object
Order Filled — Complete Fill
type:object
Order Filled — Partial Fill
type:object
Order Rejected
type:object
Session Backfill
type:object
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Rails Trading Developer API Documentation","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/railsxyz/XTasO28fw_2bd6Tp/logo/light.svg?fit=max\u0026auto=format\u0026n=XTasO28fw_2bd6Tp\u0026q=85\u0026s=562d1517f28bb695fb280b18dd4310a4","dark":"https://mintcdn.com/railsxyz/XTasO28fw_2bd6Tp/logo/dark.svg?fit=max\u0026auto=format\u0026n=XTasO28fw_2bd6Tp\u0026q=85\u0026s=2dc52a8a93c85cb2edae7edc4f009831"},"favicon":"https://mintcdn.com/railsxyz/XTasO28fw_2bd6Tp/favicon.svg?fit=max\u0026auto=format\u0026n=XTasO28fw_2bd6Tp\u0026q=85\u0026s=508a9eb467ddd29d6d1034598ada1654","api":{"openapi":["latest/openapi/auth.json","latest/perps/openapi/account.json","latest/perps/openapi/order.json","latest/perps/openapi/market.json","latest/options/openapi/options.json","latest/options/openapi/matching.json"],"asyncapi":["latest/perps/asyncapi/perps-ws.yaml","latest/perps/asyncapi/test-public-stream.yaml","latest/perps/asyncapi/test-authenticated-stream.yaml","latest/options/asyncapi/options-ws.yaml"]},"navbar":{"links":[{"href":"https://help.rails.xyz/","label":"Support"}]},"footer":{"socials":{"website":"https://rails.xyz/","twitter":"https://twitter.com/rails_xyz","linkedin":"https://www.linkedin.com/company/railsxyz"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"railsxyz","hasAudioNarration":false,"actualSubdomain":"railsxyz","customDomains":["docs.rails.xyz"],"gitSource":{"type":"github","owner":"rails-xyz","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aea549f2e37211236f3db90","collectionId":"05092de5-fa9b-44af-8f36-f8874c5a6aa2","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aea549f2e37211236f3db90"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aea549f2e37211236f3db90","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Options","count":44},{"language":"default","tag":"Perpetuals","count":42},{"language":"default","tag":"HTTP API Reference","count":29},{"language":"default","tag":"Get Started","count":25},{"language":"default","tag":"Guides","count":24},{"language":"default","tag":"WebSocket API Reference","count":18},{"language":"default","tag":"User Account","count":10},{"language":"default","tag":"Go SDK","count":9},{"language":"default","tag":"Formulas","count":9},{"language":"default","tag":"Market Data","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":".flex.flex-col.gap-8:not(.isolate)+#pagination{margin-top:3.5rem}.bindings-schema [title=\"expiration\"] [data-component-part=\"field-required-pill\"],.bindings-schema [title=\"strike\"] [data-component-part=\"field-required-pill\"],.bindings-schema [title=\"type\"] [data-component-part=\"field-required-pill\"],.bindings-schema [title=\"sessionId\"] [data-component-part=\"field-required-pill\"]{display:none!important}[data-testid=\"api-playground-modal\"] [title=\"expiration\"] [data-component-part=\"field-required-pill\"],[data-testid=\"api-playground-modal\"] [title=\"strike\"] [data-component-part=\"field-required-pill\"],[data-testid=\"api-playground-modal\"] [title=\"type\"] [data-component-part=\"field-required-pill\"],[data-testid=\"api-playground-modal\"] [title=\"sessionId\"] [data-component-part=\"field-required-pill\"]{display:none!important}@media (prefers-color-scheme: dark){[data-main-title]{color:#f0f0f0!important}[data-subtitle]{color:#d0d0d0!important}[data-quickstart-title]{color:#f0f0f0!important}[data-card]{background:#1f1f1f!important;border-color:#3f3f3f!important;color:#f0f0f0!important}[data-card]:hover{border-color:#0D9373!important;box-shadow:0 4px 16px rgba(13,147,115,0.3)!important}[data-card-title]{color:#f0f0f0!important}[data-card-desc]{color:#d0d0d0!important}[data-card-icon]{background:#1f1f1f!important}}.dark [data-main-title]{color:#f0f0f0!important}.dark [data-subtitle]{color:#d0d0d0!important}.dark [data-quickstart-title]{color:#f0f0f0!important}.dark [data-card]{background:#1f1f1f!important;border-color:#3f3f3f!important;color:#f0f0f0!important}.dark [data-card]:hover{border-color:#0D9373!important;box-shadow:0 4px 16px rgba(13,147,115,0.3)!important}.dark [data-card-title]{color:#f0f0f0!important}.dark [data-card-desc]{color:#d0d0d0!important}.dark [data-card-icon]{background:#1f1f1f!important}.dark [data-install]{background:#1f1f1f!important;border-color:#3f3f3f!important;color:#f0f0f0!important}.dark [data-install-copy]{background:#2a2a2a!important;border-color:#3f3f3f!important;color:#f0f0f0!important}.dark [data-install] a{color:#07C983!important}"}],"page":{"pagePath":"latest/perps/websocket-api/order-creation-stream","slug":"/latest/perps/websocket-api/order-creation-stream","pageMetadata":{"title":"Order Creation Stream","description":"Create, modify, and cancel orders, update isolated margin, and receive fill/rejection notifications.","asyncapi":"latest/perps/asyncapi/perps-ws.yaml orderCreationStream","href":"/latest/perps/websocket-api/order-creation-stream"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create, modify, and cancel orders, update isolated margin, and receive fill/rejection notifications.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Heading,Note}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This stream is available on the `,_jsx(_components.code,{children:`orders`}),` subscription. It allows you to create, modify, and cancel orders, update isolated position margin, and receive order notifications.`]}),`\n`,_jsx(Heading,{level:`4`,id:`multi-step-responses`,children:`Multi-Step Responses`}),`\n`,_jsx(_components.p,{children:`Order actions typically produce more than one message on this stream:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`An `,_jsx(_components.strong,{children:`acknowledgment`}),` (`,_jsx(_components.code,{children:`statusCode: 202`}),`) confirming the request was received and is being processed`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.strong,{children:`confirmation`}),` (`,_jsx(_components.code,{children:`statusCode: 200`}),`) once the action has taken effect, or an `,_jsx(_components.strong,{children:`error`}),` (`,_jsx(_components.code,{children:`400`}),`/`,_jsx(_components.code,{children:`403`}),`/`,_jsx(_components.code,{children:`404`}),`/`,_jsx(_components.code,{children:`408`}),`/`,_jsx(_components.code,{children:`409`}),`/`,_jsx(_components.code,{children:`429`}),`/`,_jsx(_components.code,{children:`500`}),`) if it failed`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`modifyOrder`}),` treats the modification as a replacement: after the acknowledgment, the confirmation carries the replacement order, which has a new `,_jsx(_components.code,{children:`orderId`}),`; the original order is cancelled. See `,_jsx(_components.a,{href:`/latest/perps/guides/order-modification`,children:`Order Modification`}),` for the full sequence.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`updateMargin`}),` is a special case: if the requested margin already matches the current margin, the operation is a no-op and the `,_jsx(_components.code,{children:`200`}),` confirmation is returned directly without a prior `,_jsx(_components.code,{children:`202`}),` acknowledgment.`]})}),`\n`,_jsx(Heading,{level:`4`,id:`notifications`,children:`Notifications`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`completeFillOrder`}),` and `,_jsx(_components.code,{children:`partialFillOrder`}),` are pushed as your orders execute; `,_jsx(_components.code,{children:`rejectOrder`}),` is pushed when an order is rejected (for example, a post-only order that would have matched immediately).`]}),`\n`,_jsx(Heading,{level:`4`,id:`backfill`,children:`Backfill`}),`\n`,_jsxs(_components.p,{children:[`Connecting with a `,_jsx(_components.code,{children:`sessionId`}),` query parameter starts a WebSocket session on this stream: on connect, any messages missed since the last delivered position are backfilled first, followed by a `,_jsx(_components.code,{children:`sessionBackfill`}),` message summarizing the session.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/latest/websocket-session`,children:`WebSocket Session`}),` for the full field reference, session continuity semantics, and backfill limits.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Order Creation Stream","description":"Create, modify, and cancel orders, update isolated margin, and receive fill/rejection notifications.","asyncapi":"latest/perps/asyncapi/perps-ws.yaml orderCreationStream","href":"/latest/perps/websocket-api/order-creation-stream"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Multi-Step Responses","slug":"multi-step-responses","depth":4,"children":[]},{"title":"Notifications","slug":"notifications","depth":4,"children":[]},{"title":"Backfill","slug":"backfill","depth":4,"children":[]}],"codeExamples":{}},"jsLinks":[],"apiReferenceData":{"channel":{"id":"orderCreationStream","title":"Order Creation Stream","description":"Active on the `orders` subscription, which is on by default when you connect (unless the `subscriptions` query parameter replaces it). Create, modify, and cancel orders, update isolated margin, and receive fill/rejection notifications. Supports a [WebSocket Session](/latest/websocket-session) via the connection's `sessionId` query parameter.\n","servers":[{"id":"sandbox","protocol":"wss","host":"ws.sandbox.rails.xyz","bindings":[],"variables":[]}],"address":"?product=perpetuals\u0026market={market}\u0026subscriptions=orders\u0026sessionId={sessionId}","parameters":[{"id":"market","jsonSchema":{"type":"string","description":"A specific market (e.g. `BTC-USDT`) or `ALL`. When `ALL` is used, `market` must be supplied explicitly in the `content` of every request that accepts it.\n","default":"BTC-USDT"},"description":"A specific market (e.g. `BTC-USDT`) or `ALL`. When `ALL` is used, `market` must be supplied explicitly in the `content` of every request that accepts it.\n","type":"string","required":true,"deprecated":false},{"id":"sessionId","jsonSchema":{"type":"string","description":"UUID identifying a session. Enables [WebSocket Session](/latest/websocket-session) on this stream. Omit to opt out.\n","default":"d785d51c-054e-4e33-9738-92d04ede9fab"},"description":"UUID identifying a session. Enables [WebSocket Session](/latest/websocket-session) on this stream. Omit to opt out.\n","type":"string","required":true,"deprecated":false}],"bindings":[],"operations":[{"id":"createOrder","title":"Create order","description":"Create a limit or market order.","type":"receive","messages":[{"id":"createOrderRequest","contentType":"application/json","payload":[{"name":"Create Order","type":"object","properties":[{"name":"message","type":"string","description":"Always `createOrder`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"price","type":"string","description":"Limit price; for market orders, expected price","required":true},{"name":"quantity","type":"string","description":"Order quantity","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":false},{"name":"maxSlippage","type":"string","description":"Market-only; `0 - 1` inclusive. `0` acts as IOC","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-64>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-66>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-67>"},"price":{"type":"string","description":"Limit price; for market orders, expected price","x-parser-schema-id":"\u003canonymous-schema-68>"},"quantity":{"type":"string","description":"Order quantity","x-parser-schema-id":"\u003canonymous-schema-69>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-70>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-71>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-72>"},"maxSlippage":{"type":"string","description":"Market-only; `0 - 1` inclusive. `0` acts as IOC","x-parser-schema-id":"\u003canonymous-schema-73>"}},"required":["price","quantity","orderType","tradeType"],"x-parser-schema-id":"\u003canonymous-schema-65>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-63>"},"title":"Create Order","example":"{\n \"message\": \"createOrder\",\n \"content\": {\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"market\": \"ETH-USDT\",\n \"price\": \"2000.90\",\n \"quantity\": \"1.00\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"postOnly\": false\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"createOrderResult","title":"Create order result","description":"Acknowledgment (202), confirmation (200), or error response to `createOrder`.","type":"send","messages":[{"id":"createOrderAck","contentType":"application/json","payload":[{"name":"Create Order — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `createOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-75>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-76>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-78>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-79>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-95>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-96>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-77>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-74>"},"title":"Create Order — Acknowledgment","example":"{\n \"resultType\": \"createOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"order created, pending acceptance\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3600\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1746642892940,\n \"updatedAt\": 1746642892940,\n \"orderStatus\": \"pending\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"apiQuotaUsed\": 1\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderAck"}]},{"id":"createOrderConfirmation","contentType":"application/json","payload":[{"name":"Create Order — Confirmation","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `createOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-98>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-99>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-101>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-102>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-103>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-100>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-97>"},"title":"Create Order — Confirmation","example":"{\n \"resultType\": \"createOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order accepted\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3600\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1746642892940,\n \"updatedAt\": 1746642892940,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderConfirmation"}]},{"id":"createOrderError","contentType":"application/json","payload":[{"name":"Create Order — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `createOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,403,408,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":false,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed (absent when rejected before dispatch)","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-105>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-106>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,403,408,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-108>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-109>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed (absent when rejected before dispatch)","x-parser-schema-id":"\u003canonymous-schema-110>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-111>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-112>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-107>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-104>"},"title":"Create Order — Error","example":"{\n \"resultType\": \"createOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"maximum open orders count of 80 reached\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01K9G4K19776J1CTA8YXA8AA5H\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"3467\",\n \"quantity\": \"0.1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1762552022311,\n \"updatedAt\": 1762552022311,\n \"orderStatus\": \"rejected\",\n \"clientRequestId\": \"2f6635e5-bdab-4fbc-8e2e-21252d2219dc\",\n \"reduceOnly\": false,\n \"postOnly\": false\n },\n \"error\": {\n \"slug\": \"CREATE_ORDER_MAX_OPEN_ORDERS\",\n \"code\": \"PRP-0104\"\n },\n \"apiQuotaUsed\": 1,\n \"clientRequestId\": \"2f6635e5-bdab-4fbc-8e2e-21252d2219dc\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderError"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"modifyOrder","title":"Modify order","description":"Modify the price and/or quantity of an existing order.","type":"receive","messages":[{"id":"modifyOrderRequest","contentType":"application/json","payload":[{"name":"Modify Order","type":"object","properties":[{"name":"message","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"orderId","type":"string","description":"Unique identifier for the original order","required":true},{"name":"price","type":"string","description":"New order price","required":true},{"name":"quantity","type":"string","description":"New order quantity","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-114>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-116>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-117>"},"orderId":{"type":"string","description":"Unique identifier for the original order","x-parser-schema-id":"\u003canonymous-schema-118>"},"price":{"type":"string","description":"New order price","x-parser-schema-id":"\u003canonymous-schema-119>"},"quantity":{"type":"string","description":"New order quantity","x-parser-schema-id":"\u003canonymous-schema-120>"}},"required":["orderId","price","quantity"],"x-parser-schema-id":"\u003canonymous-schema-115>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-113>"},"title":"Modify Order","example":"{\n \"message\": \"modifyOrder\",\n \"content\": {\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJAA0QBAJEXQJ941F7SWW7\",\n \"price\": \"1999.00\",\n \"quantity\": \"1.00\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"modifyOrderResult","title":"Modify order result","description":"Acknowledgment (202), confirmation (200) carrying the replacement order, or error response to `modifyOrder`.\n","type":"send","messages":[{"id":"modifyOrderAck","contentType":"application/json","payload":[{"name":"Modify Order — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-122>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-123>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-125>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-126>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-127>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-128>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-124>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-121>"},"title":"Modify Order — Acknowledgment","example":"{\n \"resultType\": \"modifyOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"modifying order\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJAA0QBAJEXQJ941F7SWW7\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"1999.00\",\n \"quantity\": \"1.00\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"10\",\n \"createdAt\": 1771357677591,\n \"updatedAt\": 1771357677701,\n \"orderStatus\": \"modifying\",\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"reduceOnly\": false,\n \"postOnly\": false\n },\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"apiQuotaUsed\": 5\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderAck"}]},{"id":"modifyOrderConfirmation","contentType":"application/json","payload":[{"name":"Modify Order — Confirmation","description":"The original order is cancelled and its replacement, under a new `orderId`, is on the book. The `order` is the replacement.\n","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-130>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-131>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-133>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-134>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-135>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-132>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-129>"},"title":"Modify Order — Confirmation","description":"The original order is cancelled and its replacement, under a new `orderId`, is on the book. The `order` is the replacement.\n","example":"{\n \"resultType\": \"modifyOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order modified\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJAA0QBAJEXQJ941F7SWW7\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"2000.00\",\n \"quantity\": \"2.00\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"10\",\n \"createdAt\": 1771357677591,\n \"updatedAt\": 1771357677701,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"0\"\n },\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderConfirmation"}]},{"id":"modifyOrderError","contentType":"application/json","payload":[{"name":"Modify Order — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,403,404,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":false,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed (absent when rejected before dispatch)","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-137>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-138>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,403,404,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-140>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-141>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed (absent when rejected before dispatch)","x-parser-schema-id":"\u003canonymous-schema-142>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-143>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-144>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-139>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-136>"},"title":"Modify Order — Error","example":"{\n \"resultType\": \"modifyOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"modified order would immediately match, order not modified\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJD4JARPZJVN44BKVMMM66\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"1999\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"10\",\n \"createdAt\": 1771357770314,\n \"updatedAt\": 1771357770314,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"error\": {\n \"slug\": \"MODIFY_ORDER_WOULD_MATCH\",\n \"code\": \"PRP-0309\"\n },\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderError"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"cancelOrder","title":"Cancel order","description":"Cancel an order by ID.","type":"receive","messages":[{"id":"cancelOrderRequest","contentType":"application/json","payload":[{"name":"Cancel Order By ID","type":"object","properties":[{"name":"message","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"orderId","type":"string","description":"Target order identifier","required":true},{"name":"cancelBy","type":"string","description":"Cancellation mode; currently `orderId`","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-146>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-148>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-149>"},"orderId":{"type":"string","description":"Target order identifier","x-parser-schema-id":"\u003canonymous-schema-150>"},"cancelBy":{"type":"string","description":"Cancellation mode; currently `orderId`","x-parser-schema-id":"\u003canonymous-schema-151>"}},"required":["orderId","cancelBy"],"x-parser-schema-id":"\u003canonymous-schema-147>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-145>"},"title":"Cancel Order By ID","example":"{\n \"message\": \"cancelOrder\",\n \"content\": {\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HH0X2VD6R0CJE4X0P0D1NQ11\",\n \"cancelBy\": \"orderId\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"cancelOrderResult","title":"Cancel order result","description":"Acknowledgment (202), confirmation (200), or error response to `cancelOrder`.","type":"send","messages":[{"id":"cancelOrderAck","contentType":"application/json","payload":[{"name":"Cancel Order — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-153>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-154>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-156>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-157>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-158>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-159>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-155>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-152>"},"title":"Cancel Order — Acknowledgment","example":"{\n \"resultType\": \"cancelOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"cancelling order\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3601\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0.5\",\n \"leverage\": \"1\",\n \"createdAt\": 1717100052972,\n \"updatedAt\": 1717100393492,\n \"orderStatus\": \"cancelling\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"3601\"\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"apiQuotaUsed\": 1\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderAck"}]},{"id":"cancelOrderConfirmation","contentType":"application/json","payload":[{"name":"Cancel Order — Confirmation","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-161>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-162>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-164>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-165>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-166>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-163>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-160>"},"title":"Cancel Order — Confirmation","example":"{\n \"resultType\": \"cancelOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order cancelled\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3601\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0.5\",\n \"leverage\": \"1\",\n \"createdAt\": 1717100052972,\n \"updatedAt\": 1717100393492,\n \"orderStatus\": \"cancelled\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"3601\"\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderConfirmation"}]},{"id":"cancelOrderError","contentType":"application/json","payload":[{"name":"Cancel Order — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,404,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed (absent when rejected before dispatch)","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-168>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-169>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,404,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-171>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-172>"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed (absent when rejected before dispatch)","x-parser-schema-id":"\u003canonymous-schema-173>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-174>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-175>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-170>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-167>"},"title":"Cancel Order — Error","example":"{\n \"resultType\": \"cancelOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"Invalid request\",\n \"error\": {\n \"slug\": \"CANCEL_ORDER_ERROR\",\n \"code\": \"PRP-0200\"\n },\n \"apiQuotaUsed\": 1,\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderError"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"updateMargin","title":"Update margin","description":"Set the absolute target value of the isolated position margin.","type":"receive","messages":[{"id":"updateMarginRequest","contentType":"application/json","payload":[{"name":"Update Margin","type":"object","properties":[{"name":"message","type":"string","description":"Always `updateMargin`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"margin","type":"string","description":"Absolute target value for `isolatedPositionMargin` after the update","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-177>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-179>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-180>"},"margin":{"type":"string","description":"Absolute target value for `isolatedPositionMargin` after the update","x-parser-schema-id":"\u003canonymous-schema-181>"}},"required":["margin"],"x-parser-schema-id":"\u003canonymous-schema-178>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-176>"},"title":"Update Margin","example":"{\n \"message\": \"updateMargin\",\n \"content\": {\n \"clientRequestId\": \"79b89ec3-b89b-4e9e-aff3-9a6ff0184009\",\n \"market\": \"BTC-USDT\",\n \"margin\": \"201\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"updateMarginResult","title":"Update margin result","description":"Acknowledgment (202), confirmation (200, including no-op), or error response to `updateMargin`.","type":"send","messages":[{"id":"updateMarginAck","contentType":"application/json","payload":[{"name":"Update Margin — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `updateMargin`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-183>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-184>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-186>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-187>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-188>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-189>"}},"required":["statusCode","body"],"x-parser-schema-id":"\u003canonymous-schema-185>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-182>"},"title":"Update Margin — Acknowledgment","example":"{\n \"resultType\": \"updateMargin\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"margin update in progress, pending approval\",\n \"clientRequestId\": \"79b89ec3-b89b-4e9e-aff3-9a6ff0184009\",\n \"apiQuotaUsed\": 1\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginAck"}]},{"id":"updateMarginConfirmation","contentType":"application/json","payload":[{"name":"Update Margin — Confirmation","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `updateMargin`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-191>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-192>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-194>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-195>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-196>"}},"required":["statusCode","body"],"x-parser-schema-id":"\u003canonymous-schema-193>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-190>"},"title":"Update Margin — Confirmation","example":"{\n \"resultType\": \"updateMargin\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"margin updated successfully\",\n \"clientRequestId\": \"79b89ec3-b89b-4e9e-aff3-9a6ff0184009\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginConfirmation"}]},{"id":"updateMarginError","contentType":"application/json","payload":[{"name":"Update Margin — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `updateMargin`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-198>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-199>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-201>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-202>"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-203>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-204>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-205>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-200>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-197>"},"title":"Update Margin — Error","example":"{\n \"resultType\": \"updateMargin\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"margin decrease below minimum required margin\",\n \"clientRequestId\": \"acd02c47-3e8a-41af-aecb-9b60177554fd\",\n \"error\": {\n \"slug\": \"UPDATE_MARGIN_BELOW_MINIMUM\",\n \"code\": \"PRP-0804\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginError"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"orderFilled","title":"Order filled","description":"Pushed when an order is completely or partially filled.","type":"send","messages":[{"id":"completeFillNotification","contentType":"application/json","payload":[{"name":"Order Filled — Complete Fill","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `completeFillOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `completeFillOrder`.","x-parser-schema-id":"\u003canonymous-schema-207>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-208>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-210>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-211>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-209>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-206>"},"title":"Order Filled — Complete Fill","example":"{\n \"resultType\": \"completeFillOrder\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order filled\",\n \"order\": {\n \"market\": \"BTC-USDT\",\n \"orderId\": \"01JGPRJC7KHY8GP4FT6WRQG193\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"98491.86060236\",\n \"quantity\": \"0\",\n \"filledQuantity\": \"1\",\n \"leverage\": \"1\",\n \"createdAt\": 1735930753267,\n \"updatedAt\": 1735930754142,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"98491.86060236\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"completeFillNotification"}]},{"id":"partialFillNotification","contentType":"application/json","payload":[{"name":"Order Filled — Partial Fill","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `partialFillOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `partialFillOrder`.","x-parser-schema-id":"\u003canonymous-schema-213>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-214>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-216>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-217>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-215>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-212>"},"title":"Order Filled — Partial Fill","example":"{\n \"resultType\": \"partialFillOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order partially filled\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01JGPS25KMV7R404DY4WEMG6GD\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3600\",\n \"quantity\": \"9.5\",\n \"filledQuantity\": \"0.04\",\n \"leverage\": \"1\",\n \"createdAt\": 1735931270772,\n \"updatedAt\": 1735931616903,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true,\n \"avgFillPrice\": \"3600\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"partialFillNotification"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"orderRejected","title":"Order rejected","description":"Pushed when an order is rejected.","type":"send","messages":[{"id":"rejectOrderNotification","contentType":"application/json","payload":[{"name":"Order Rejected","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `rejectOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `400`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `rejectOrder`.","x-parser-schema-id":"\u003canonymous-schema-219>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-220>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `400`.","x-parser-schema-id":"\u003canonymous-schema-222>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-223>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-224>"}},"required":["statusCode","body","order","error"],"x-parser-schema-id":"\u003canonymous-schema-221>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-218>"},"title":"Order Rejected","example":"{\n \"resultType\": \"rejectOrder\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"Post-only order rejected as it would have matched immediately\",\n \"order\": {\n \"market\": \"BTC-USDT\",\n \"orderId\": \"01JGPRJC7KHY8GP4FT6WRQG193\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"98491.86060236\",\n \"quantity\": \"15.83767529\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1746643403628,\n \"updatedAt\": 1746643403696,\n \"orderStatus\": \"rejected\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"error\": {\n \"slug\": \"ORDER_REJECTED_POST_ONLY\",\n \"code\": \"PRP-0601\"\n },\n \"clientRequestId\": \"b9fe6677-12c3-4d43-894c-370236b94023\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"rejectOrderNotification"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"sessionBackfill","title":"Session backfill","description":"Pushed once per connection when `sessionId` is supplied and the connection is subscribed to the Order Creation Stream. Summarizes any missed order events backfilled since the last delivered position, or reports that none were backfilled.\n","type":"send","messages":[{"id":"sessionBackfillNotification","contentType":"application/json","payload":[{"name":"Session Backfill","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `sessionBackfill`.","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"sessionId","type":"string","description":"Echoes the `sessionId` query parameter supplied on the connection.","required":true},{"name":"resumed","type":"boolean","description":"`true` if this session continues a live position from a prior connection with the same `sessionId` that reconnected within the 1-minute backfill window. `false` for a new `sessionId`, or a reused one outside that window — no backfill occurs, and local order state must be reconciled from scratch via HTTP endpoints or `emit` requests.\n","required":true},{"name":"from","type":"integer","description":"Unix timestamp (ms) marking the start of the backfill window. `0` when `resumed` is `false`.\n","required":true},{"name":"to","type":"integer","description":"Unix timestamp (ms) marking the end of the backfill window.","required":true},{"name":"events","type":"integer","description":"Total number of missed order events backfilled across all markets.","required":true},{"name":"backfilledMarkets","type":"array","description":"Markets whose missed events were fully backfilled.","required":true,"properties":[{"name":"item","type":"string","required":false}]},{"name":"expiredMarkets","type":"array","description":"Markets that accumulated more than 500 missed events; nothing was backfilled for them.\n","required":true,"properties":[{"name":"item","type":"string","required":false}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `sessionBackfill`.","x-parser-schema-id":"\u003canonymous-schema-226>"},"data":{"type":"object","properties":{"sessionId":{"type":"string","description":"Echoes the `sessionId` query parameter supplied on the connection.","x-parser-schema-id":"\u003canonymous-schema-228>"},"resumed":{"type":"boolean","description":"`true` if this session continues a live position from a prior connection with the same `sessionId` that reconnected within the 1-minute backfill window. `false` for a new `sessionId`, or a reused one outside that window — no backfill occurs, and local order state must be reconciled from scratch via HTTP endpoints or `emit` requests.\n","x-parser-schema-id":"\u003canonymous-schema-229>"},"from":{"type":"integer","format":"int64","description":"Unix timestamp (ms) marking the start of the backfill window. `0` when `resumed` is `false`.\n","x-parser-schema-id":"\u003canonymous-schema-230>"},"to":{"type":"integer","format":"int64","description":"Unix timestamp (ms) marking the end of the backfill window.","x-parser-schema-id":"\u003canonymous-schema-231>"},"events":{"type":"integer","description":"Total number of missed order events backfilled across all markets.","x-parser-schema-id":"\u003canonymous-schema-232>"},"backfilledMarkets":{"type":"array","description":"Markets whose missed events were fully backfilled.","items":{"type":"string","x-parser-schema-id":"\u003canonymous-schema-234>"},"x-parser-schema-id":"\u003canonymous-schema-233>"},"expiredMarkets":{"type":"array","description":"Markets that accumulated more than 500 missed events; nothing was backfilled for them.\n","items":{"type":"string","x-parser-schema-id":"\u003canonymous-schema-236>"},"x-parser-schema-id":"\u003canonymous-schema-235>"}},"required":["sessionId","resumed","from","to","events","backfilledMarkets","expiredMarkets"],"x-parser-schema-id":"\u003canonymous-schema-227>"}},"required":["resultType","data"],"x-parser-schema-id":"\u003canonymous-schema-225>"},"title":"Session Backfill","example":"{\n \"resultType\": \"sessionBackfill\",\n \"data\": {\n \"sessionId\": \"d785d51c-054e-4e33-9738-92d04ede9fab\",\n \"resumed\": true,\n \"from\": 1784834389615,\n \"to\": 1784834449615,\n \"events\": 6,\n \"backfilledMarkets\": [\n \"BTC-USDT\",\n \"ETH-USDT\"\n ],\n \"expiredMarkets\": []\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"sessionBackfillNotification"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]}],"sendOperations":[{"id":"createOrder","title":"Create order","description":"Create a limit or market order.","type":"receive","messages":[{"id":"createOrderRequest","contentType":"application/json","payload":[{"name":"Create Order","type":"object","properties":[{"name":"message","type":"string","description":"Always `createOrder`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"price","type":"string","description":"Limit price; for market orders, expected price","required":true},{"name":"quantity","type":"string","description":"Order quantity","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":false},{"name":"maxSlippage","type":"string","description":"Market-only; `0 - 1` inclusive. `0` acts as IOC","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-64>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-66>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-67>"},"price":{"type":"string","description":"Limit price; for market orders, expected price","x-parser-schema-id":"\u003canonymous-schema-68>"},"quantity":{"type":"string","description":"Order quantity","x-parser-schema-id":"\u003canonymous-schema-69>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-70>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-71>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-72>"},"maxSlippage":{"type":"string","description":"Market-only; `0 - 1` inclusive. `0` acts as IOC","x-parser-schema-id":"\u003canonymous-schema-73>"}},"required":["price","quantity","orderType","tradeType"],"x-parser-schema-id":"\u003canonymous-schema-65>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-63>"},"title":"Create Order","example":"{\n \"message\": \"createOrder\",\n \"content\": {\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"market\": \"ETH-USDT\",\n \"price\": \"2000.90\",\n \"quantity\": \"1.00\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"postOnly\": false\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"modifyOrder","title":"Modify order","description":"Modify the price and/or quantity of an existing order.","type":"receive","messages":[{"id":"modifyOrderRequest","contentType":"application/json","payload":[{"name":"Modify Order","type":"object","properties":[{"name":"message","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"orderId","type":"string","description":"Unique identifier for the original order","required":true},{"name":"price","type":"string","description":"New order price","required":true},{"name":"quantity","type":"string","description":"New order quantity","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-114>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-116>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-117>"},"orderId":{"type":"string","description":"Unique identifier for the original order","x-parser-schema-id":"\u003canonymous-schema-118>"},"price":{"type":"string","description":"New order price","x-parser-schema-id":"\u003canonymous-schema-119>"},"quantity":{"type":"string","description":"New order quantity","x-parser-schema-id":"\u003canonymous-schema-120>"}},"required":["orderId","price","quantity"],"x-parser-schema-id":"\u003canonymous-schema-115>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-113>"},"title":"Modify Order","example":"{\n \"message\": \"modifyOrder\",\n \"content\": {\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJAA0QBAJEXQJ941F7SWW7\",\n \"price\": \"1999.00\",\n \"quantity\": \"1.00\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"cancelOrder","title":"Cancel order","description":"Cancel an order by ID.","type":"receive","messages":[{"id":"cancelOrderRequest","contentType":"application/json","payload":[{"name":"Cancel Order By ID","type":"object","properties":[{"name":"message","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"orderId","type":"string","description":"Target order identifier","required":true},{"name":"cancelBy","type":"string","description":"Cancellation mode; currently `orderId`","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-146>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-148>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-149>"},"orderId":{"type":"string","description":"Target order identifier","x-parser-schema-id":"\u003canonymous-schema-150>"},"cancelBy":{"type":"string","description":"Cancellation mode; currently `orderId`","x-parser-schema-id":"\u003canonymous-schema-151>"}},"required":["orderId","cancelBy"],"x-parser-schema-id":"\u003canonymous-schema-147>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-145>"},"title":"Cancel Order By ID","example":"{\n \"message\": \"cancelOrder\",\n \"content\": {\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HH0X2VD6R0CJE4X0P0D1NQ11\",\n \"cancelBy\": \"orderId\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"updateMargin","title":"Update margin","description":"Set the absolute target value of the isolated position margin.","type":"receive","messages":[{"id":"updateMarginRequest","contentType":"application/json","payload":[{"name":"Update Margin","type":"object","properties":[{"name":"message","type":"string","description":"Always `updateMargin`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"margin","type":"string","description":"Absolute target value for `isolatedPositionMargin` after the update","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-177>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-179>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-180>"},"margin":{"type":"string","description":"Absolute target value for `isolatedPositionMargin` after the update","x-parser-schema-id":"\u003canonymous-schema-181>"}},"required":["margin"],"x-parser-schema-id":"\u003canonymous-schema-178>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-176>"},"title":"Update Margin","example":"{\n \"message\": \"updateMargin\",\n \"content\": {\n \"clientRequestId\": \"79b89ec3-b89b-4e9e-aff3-9a6ff0184009\",\n \"market\": \"BTC-USDT\",\n \"margin\": \"201\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginRequest"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]}],"receiveOperations":[{"id":"createOrderResult","title":"Create order result","description":"Acknowledgment (202), confirmation (200), or error response to `createOrder`.","type":"send","messages":[{"id":"createOrderAck","contentType":"application/json","payload":[{"name":"Create Order — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `createOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-75>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-76>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-78>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-79>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-95>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-96>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-77>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-74>"},"title":"Create Order — Acknowledgment","example":"{\n \"resultType\": \"createOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"order created, pending acceptance\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3600\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1746642892940,\n \"updatedAt\": 1746642892940,\n \"orderStatus\": \"pending\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"apiQuotaUsed\": 1\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderAck"}]},{"id":"createOrderConfirmation","contentType":"application/json","payload":[{"name":"Create Order — Confirmation","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `createOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-98>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-99>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-101>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-102>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-103>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-100>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-97>"},"title":"Create Order — Confirmation","example":"{\n \"resultType\": \"createOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order accepted\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3600\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1746642892940,\n \"updatedAt\": 1746642892940,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderConfirmation"}]},{"id":"createOrderError","contentType":"application/json","payload":[{"name":"Create Order — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `createOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,403,408,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":false,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed (absent when rejected before dispatch)","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-105>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-106>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,403,408,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-108>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-109>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed (absent when rejected before dispatch)","x-parser-schema-id":"\u003canonymous-schema-110>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-111>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-112>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-107>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-104>"},"title":"Create Order — Error","example":"{\n \"resultType\": \"createOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"maximum open orders count of 80 reached\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01K9G4K19776J1CTA8YXA8AA5H\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"3467\",\n \"quantity\": \"0.1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1762552022311,\n \"updatedAt\": 1762552022311,\n \"orderStatus\": \"rejected\",\n \"clientRequestId\": \"2f6635e5-bdab-4fbc-8e2e-21252d2219dc\",\n \"reduceOnly\": false,\n \"postOnly\": false\n },\n \"error\": {\n \"slug\": \"CREATE_ORDER_MAX_OPEN_ORDERS\",\n \"code\": \"PRP-0104\"\n },\n \"apiQuotaUsed\": 1,\n \"clientRequestId\": \"2f6635e5-bdab-4fbc-8e2e-21252d2219dc\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderError"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"modifyOrderResult","title":"Modify order result","description":"Acknowledgment (202), confirmation (200) carrying the replacement order, or error response to `modifyOrder`.\n","type":"send","messages":[{"id":"modifyOrderAck","contentType":"application/json","payload":[{"name":"Modify Order — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-122>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-123>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-125>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-126>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-127>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-128>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-124>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-121>"},"title":"Modify Order — Acknowledgment","example":"{\n \"resultType\": \"modifyOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"modifying order\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJAA0QBAJEXQJ941F7SWW7\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"1999.00\",\n \"quantity\": \"1.00\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"10\",\n \"createdAt\": 1771357677591,\n \"updatedAt\": 1771357677701,\n \"orderStatus\": \"modifying\",\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"reduceOnly\": false,\n \"postOnly\": false\n },\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"apiQuotaUsed\": 5\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderAck"}]},{"id":"modifyOrderConfirmation","contentType":"application/json","payload":[{"name":"Modify Order — Confirmation","description":"The original order is cancelled and its replacement, under a new `orderId`, is on the book. The `order` is the replacement.\n","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-130>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-131>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-133>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-134>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-135>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-132>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-129>"},"title":"Modify Order — Confirmation","description":"The original order is cancelled and its replacement, under a new `orderId`, is on the book. The `order` is the replacement.\n","example":"{\n \"resultType\": \"modifyOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order modified\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJAA0QBAJEXQJ941F7SWW7\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"2000.00\",\n \"quantity\": \"2.00\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"10\",\n \"createdAt\": 1771357677591,\n \"updatedAt\": 1771357677701,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"0\"\n },\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderConfirmation"}]},{"id":"modifyOrderError","contentType":"application/json","payload":[{"name":"Modify Order — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,403,404,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":false,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed (absent when rejected before dispatch)","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-137>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-138>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,403,404,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-140>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-141>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed (absent when rejected before dispatch)","x-parser-schema-id":"\u003canonymous-schema-142>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-143>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-144>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-139>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-136>"},"title":"Modify Order — Error","example":"{\n \"resultType\": \"modifyOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"modified order would immediately match, order not modified\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJD4JARPZJVN44BKVMMM66\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"1999\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"10\",\n \"createdAt\": 1771357770314,\n \"updatedAt\": 1771357770314,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"error\": {\n \"slug\": \"MODIFY_ORDER_WOULD_MATCH\",\n \"code\": \"PRP-0309\"\n },\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderError"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"cancelOrderResult","title":"Cancel order result","description":"Acknowledgment (202), confirmation (200), or error response to `cancelOrder`.","type":"send","messages":[{"id":"cancelOrderAck","contentType":"application/json","payload":[{"name":"Cancel Order — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-153>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-154>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-156>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-157>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-158>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-159>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-155>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-152>"},"title":"Cancel Order — Acknowledgment","example":"{\n \"resultType\": \"cancelOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"cancelling order\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3601\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0.5\",\n \"leverage\": \"1\",\n \"createdAt\": 1717100052972,\n \"updatedAt\": 1717100393492,\n \"orderStatus\": \"cancelling\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"3601\"\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"apiQuotaUsed\": 1\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderAck"}]},{"id":"cancelOrderConfirmation","contentType":"application/json","payload":[{"name":"Cancel Order — Confirmation","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-161>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-162>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-164>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-165>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-166>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-163>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-160>"},"title":"Cancel Order — Confirmation","example":"{\n \"resultType\": \"cancelOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order cancelled\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3601\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0.5\",\n \"leverage\": \"1\",\n \"createdAt\": 1717100052972,\n \"updatedAt\": 1717100393492,\n \"orderStatus\": \"cancelled\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"3601\"\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderConfirmation"}]},{"id":"cancelOrderError","contentType":"application/json","payload":[{"name":"Cancel Order — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,404,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed (absent when rejected before dispatch)","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-168>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-169>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,404,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-171>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-172>"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed (absent when rejected before dispatch)","x-parser-schema-id":"\u003canonymous-schema-173>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-174>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-175>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-170>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-167>"},"title":"Cancel Order — Error","example":"{\n \"resultType\": \"cancelOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"Invalid request\",\n \"error\": {\n \"slug\": \"CANCEL_ORDER_ERROR\",\n \"code\": \"PRP-0200\"\n },\n \"apiQuotaUsed\": 1,\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderError"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"updateMarginResult","title":"Update margin result","description":"Acknowledgment (202), confirmation (200, including no-op), or error response to `updateMargin`.","type":"send","messages":[{"id":"updateMarginAck","contentType":"application/json","payload":[{"name":"Update Margin — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `updateMargin`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-183>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-184>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-186>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-187>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-188>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-189>"}},"required":["statusCode","body"],"x-parser-schema-id":"\u003canonymous-schema-185>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-182>"},"title":"Update Margin — Acknowledgment","example":"{\n \"resultType\": \"updateMargin\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"margin update in progress, pending approval\",\n \"clientRequestId\": \"79b89ec3-b89b-4e9e-aff3-9a6ff0184009\",\n \"apiQuotaUsed\": 1\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginAck"}]},{"id":"updateMarginConfirmation","contentType":"application/json","payload":[{"name":"Update Margin — Confirmation","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `updateMargin`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-191>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-192>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-194>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-195>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-196>"}},"required":["statusCode","body"],"x-parser-schema-id":"\u003canonymous-schema-193>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-190>"},"title":"Update Margin — Confirmation","example":"{\n \"resultType\": \"updateMargin\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"margin updated successfully\",\n \"clientRequestId\": \"79b89ec3-b89b-4e9e-aff3-9a6ff0184009\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginConfirmation"}]},{"id":"updateMarginError","contentType":"application/json","payload":[{"name":"Update Margin — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `updateMargin`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-198>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-199>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-201>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-202>"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-203>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-204>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-205>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-200>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-197>"},"title":"Update Margin — Error","example":"{\n \"resultType\": \"updateMargin\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"margin decrease below minimum required margin\",\n \"clientRequestId\": \"acd02c47-3e8a-41af-aecb-9b60177554fd\",\n \"error\": {\n \"slug\": \"UPDATE_MARGIN_BELOW_MINIMUM\",\n \"code\": \"PRP-0804\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginError"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"orderFilled","title":"Order filled","description":"Pushed when an order is completely or partially filled.","type":"send","messages":[{"id":"completeFillNotification","contentType":"application/json","payload":[{"name":"Order Filled — Complete Fill","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `completeFillOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `completeFillOrder`.","x-parser-schema-id":"\u003canonymous-schema-207>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-208>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-210>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-211>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-209>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-206>"},"title":"Order Filled — Complete Fill","example":"{\n \"resultType\": \"completeFillOrder\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order filled\",\n \"order\": {\n \"market\": \"BTC-USDT\",\n \"orderId\": \"01JGPRJC7KHY8GP4FT6WRQG193\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"98491.86060236\",\n \"quantity\": \"0\",\n \"filledQuantity\": \"1\",\n \"leverage\": \"1\",\n \"createdAt\": 1735930753267,\n \"updatedAt\": 1735930754142,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"98491.86060236\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"completeFillNotification"}]},{"id":"partialFillNotification","contentType":"application/json","payload":[{"name":"Order Filled — Partial Fill","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `partialFillOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `partialFillOrder`.","x-parser-schema-id":"\u003canonymous-schema-213>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-214>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-216>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-217>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-215>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-212>"},"title":"Order Filled — Partial Fill","example":"{\n \"resultType\": \"partialFillOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order partially filled\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01JGPS25KMV7R404DY4WEMG6GD\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3600\",\n \"quantity\": \"9.5\",\n \"filledQuantity\": \"0.04\",\n \"leverage\": \"1\",\n \"createdAt\": 1735931270772,\n \"updatedAt\": 1735931616903,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true,\n \"avgFillPrice\": \"3600\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"partialFillNotification"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"orderRejected","title":"Order rejected","description":"Pushed when an order is rejected.","type":"send","messages":[{"id":"rejectOrderNotification","contentType":"application/json","payload":[{"name":"Order Rejected","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `rejectOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `400`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `rejectOrder`.","x-parser-schema-id":"\u003canonymous-schema-219>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-220>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `400`.","x-parser-schema-id":"\u003canonymous-schema-222>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-223>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-224>"}},"required":["statusCode","body","order","error"],"x-parser-schema-id":"\u003canonymous-schema-221>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-218>"},"title":"Order Rejected","example":"{\n \"resultType\": \"rejectOrder\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"Post-only order rejected as it would have matched immediately\",\n \"order\": {\n \"market\": \"BTC-USDT\",\n \"orderId\": \"01JGPRJC7KHY8GP4FT6WRQG193\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"98491.86060236\",\n \"quantity\": \"15.83767529\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1746643403628,\n \"updatedAt\": 1746643403696,\n \"orderStatus\": \"rejected\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"error\": {\n \"slug\": \"ORDER_REJECTED_POST_ONLY\",\n \"code\": \"PRP-0601\"\n },\n \"clientRequestId\": \"b9fe6677-12c3-4d43-894c-370236b94023\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"rejectOrderNotification"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]},{"id":"sessionBackfill","title":"Session backfill","description":"Pushed once per connection when `sessionId` is supplied and the connection is subscribed to the Order Creation Stream. Summarizes any missed order events backfilled since the last delivered position, or reports that none were backfilled.\n","type":"send","messages":[{"id":"sessionBackfillNotification","contentType":"application/json","payload":[{"name":"Session Backfill","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `sessionBackfill`.","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"sessionId","type":"string","description":"Echoes the `sessionId` query parameter supplied on the connection.","required":true},{"name":"resumed","type":"boolean","description":"`true` if this session continues a live position from a prior connection with the same `sessionId` that reconnected within the 1-minute backfill window. `false` for a new `sessionId`, or a reused one outside that window — no backfill occurs, and local order state must be reconciled from scratch via HTTP endpoints or `emit` requests.\n","required":true},{"name":"from","type":"integer","description":"Unix timestamp (ms) marking the start of the backfill window. `0` when `resumed` is `false`.\n","required":true},{"name":"to","type":"integer","description":"Unix timestamp (ms) marking the end of the backfill window.","required":true},{"name":"events","type":"integer","description":"Total number of missed order events backfilled across all markets.","required":true},{"name":"backfilledMarkets","type":"array","description":"Markets whose missed events were fully backfilled.","required":true,"properties":[{"name":"item","type":"string","required":false}]},{"name":"expiredMarkets","type":"array","description":"Markets that accumulated more than 500 missed events; nothing was backfilled for them.\n","required":true,"properties":[{"name":"item","type":"string","required":false}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `sessionBackfill`.","x-parser-schema-id":"\u003canonymous-schema-226>"},"data":{"type":"object","properties":{"sessionId":{"type":"string","description":"Echoes the `sessionId` query parameter supplied on the connection.","x-parser-schema-id":"\u003canonymous-schema-228>"},"resumed":{"type":"boolean","description":"`true` if this session continues a live position from a prior connection with the same `sessionId` that reconnected within the 1-minute backfill window. `false` for a new `sessionId`, or a reused one outside that window — no backfill occurs, and local order state must be reconciled from scratch via HTTP endpoints or `emit` requests.\n","x-parser-schema-id":"\u003canonymous-schema-229>"},"from":{"type":"integer","format":"int64","description":"Unix timestamp (ms) marking the start of the backfill window. `0` when `resumed` is `false`.\n","x-parser-schema-id":"\u003canonymous-schema-230>"},"to":{"type":"integer","format":"int64","description":"Unix timestamp (ms) marking the end of the backfill window.","x-parser-schema-id":"\u003canonymous-schema-231>"},"events":{"type":"integer","description":"Total number of missed order events backfilled across all markets.","x-parser-schema-id":"\u003canonymous-schema-232>"},"backfilledMarkets":{"type":"array","description":"Markets whose missed events were fully backfilled.","items":{"type":"string","x-parser-schema-id":"\u003canonymous-schema-234>"},"x-parser-schema-id":"\u003canonymous-schema-233>"},"expiredMarkets":{"type":"array","description":"Markets that accumulated more than 500 missed events; nothing was backfilled for them.\n","items":{"type":"string","x-parser-schema-id":"\u003canonymous-schema-236>"},"x-parser-schema-id":"\u003canonymous-schema-235>"}},"required":["sessionId","resumed","from","to","events","backfilledMarkets","expiredMarkets"],"x-parser-schema-id":"\u003canonymous-schema-227>"}},"required":["resultType","data"],"x-parser-schema-id":"\u003canonymous-schema-225>"},"title":"Session Backfill","example":"{\n \"resultType\": \"sessionBackfill\",\n \"data\": {\n \"sessionId\": \"d785d51c-054e-4e33-9738-92d04ede9fab\",\n \"resumed\": true,\n \"from\": 1784834389615,\n \"to\": 1784834449615,\n \"events\": 6,\n \"backfilledMarkets\": [\n \"BTC-USDT\",\n \"ETH-USDT\"\n ],\n \"expiredMarkets\": []\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"sessionBackfillNotification"}]}],"bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}]}],"sendMessages":[{"id":"createOrderRequest","contentType":"application/json","payload":[{"name":"Create Order","type":"object","properties":[{"name":"message","type":"string","description":"Always `createOrder`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"price","type":"string","description":"Limit price; for market orders, expected price","required":true},{"name":"quantity","type":"string","description":"Order quantity","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":false},{"name":"maxSlippage","type":"string","description":"Market-only; `0 - 1` inclusive. `0` acts as IOC","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-64>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-66>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-67>"},"price":{"type":"string","description":"Limit price; for market orders, expected price","x-parser-schema-id":"\u003canonymous-schema-68>"},"quantity":{"type":"string","description":"Order quantity","x-parser-schema-id":"\u003canonymous-schema-69>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-70>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-71>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-72>"},"maxSlippage":{"type":"string","description":"Market-only; `0 - 1` inclusive. `0` acts as IOC","x-parser-schema-id":"\u003canonymous-schema-73>"}},"required":["price","quantity","orderType","tradeType"],"x-parser-schema-id":"\u003canonymous-schema-65>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-63>"},"title":"Create Order","example":"{\n \"message\": \"createOrder\",\n \"content\": {\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"market\": \"ETH-USDT\",\n \"price\": \"2000.90\",\n \"quantity\": \"1.00\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"postOnly\": false\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderRequest"}]},{"id":"modifyOrderRequest","contentType":"application/json","payload":[{"name":"Modify Order","type":"object","properties":[{"name":"message","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"orderId","type":"string","description":"Unique identifier for the original order","required":true},{"name":"price","type":"string","description":"New order price","required":true},{"name":"quantity","type":"string","description":"New order quantity","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-114>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-116>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-117>"},"orderId":{"type":"string","description":"Unique identifier for the original order","x-parser-schema-id":"\u003canonymous-schema-118>"},"price":{"type":"string","description":"New order price","x-parser-schema-id":"\u003canonymous-schema-119>"},"quantity":{"type":"string","description":"New order quantity","x-parser-schema-id":"\u003canonymous-schema-120>"}},"required":["orderId","price","quantity"],"x-parser-schema-id":"\u003canonymous-schema-115>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-113>"},"title":"Modify Order","example":"{\n \"message\": \"modifyOrder\",\n \"content\": {\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJAA0QBAJEXQJ941F7SWW7\",\n \"price\": \"1999.00\",\n \"quantity\": \"1.00\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderRequest"}]},{"id":"cancelOrderRequest","contentType":"application/json","payload":[{"name":"Cancel Order By ID","type":"object","properties":[{"name":"message","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"orderId","type":"string","description":"Target order identifier","required":true},{"name":"cancelBy","type":"string","description":"Cancellation mode; currently `orderId`","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-146>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-148>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-149>"},"orderId":{"type":"string","description":"Target order identifier","x-parser-schema-id":"\u003canonymous-schema-150>"},"cancelBy":{"type":"string","description":"Cancellation mode; currently `orderId`","x-parser-schema-id":"\u003canonymous-schema-151>"}},"required":["orderId","cancelBy"],"x-parser-schema-id":"\u003canonymous-schema-147>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-145>"},"title":"Cancel Order By ID","example":"{\n \"message\": \"cancelOrder\",\n \"content\": {\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HH0X2VD6R0CJE4X0P0D1NQ11\",\n \"cancelBy\": \"orderId\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderRequest"}]},{"id":"updateMarginRequest","contentType":"application/json","payload":[{"name":"Update Margin","type":"object","properties":[{"name":"message","type":"string","description":"Always `updateMargin`.","required":true},{"name":"content","type":"object","required":true,"properties":[{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"market","type":"string","description":"Market name, only required when connecting with `market=ALL`","required":false},{"name":"margin","type":"string","description":"Absolute target value for `isolatedPositionMargin` after the update","required":true}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"message":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-177>"},"content":{"type":"object","properties":{"clientRequestId":{"type":"string","format":"uuid","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-179>"},"market":{"type":"string","description":"Market name, only required when connecting with `market=ALL`","x-parser-schema-id":"\u003canonymous-schema-180>"},"margin":{"type":"string","description":"Absolute target value for `isolatedPositionMargin` after the update","x-parser-schema-id":"\u003canonymous-schema-181>"}},"required":["margin"],"x-parser-schema-id":"\u003canonymous-schema-178>"}},"required":["message","content"],"x-parser-schema-id":"\u003canonymous-schema-176>"},"title":"Update Margin","example":"{\n \"message\": \"updateMargin\",\n \"content\": {\n \"clientRequestId\": \"79b89ec3-b89b-4e9e-aff3-9a6ff0184009\",\n \"market\": \"BTC-USDT\",\n \"margin\": \"201\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginRequest"}]}],"receiveMessages":[{"id":"createOrderAck","contentType":"application/json","payload":[{"name":"Create Order — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `createOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-75>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-76>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-78>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-79>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-95>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-96>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-77>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-74>"},"title":"Create Order — Acknowledgment","example":"{\n \"resultType\": \"createOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"order created, pending acceptance\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3600\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1746642892940,\n \"updatedAt\": 1746642892940,\n \"orderStatus\": \"pending\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"apiQuotaUsed\": 1\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderAck"}]},{"id":"createOrderConfirmation","contentType":"application/json","payload":[{"name":"Create Order — Confirmation","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `createOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-98>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-99>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-101>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-102>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-103>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-100>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-97>"},"title":"Create Order — Confirmation","example":"{\n \"resultType\": \"createOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order accepted\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3600\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1746642892940,\n \"updatedAt\": 1746642892940,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderConfirmation"}]},{"id":"createOrderError","contentType":"application/json","payload":[{"name":"Create Order — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `createOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,403,408,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":false,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed (absent when rejected before dispatch)","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `createOrder`.","x-parser-schema-id":"\u003canonymous-schema-105>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-106>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,403,408,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-108>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-109>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed (absent when rejected before dispatch)","x-parser-schema-id":"\u003canonymous-schema-110>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-111>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-112>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-107>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-104>"},"title":"Create Order — Error","example":"{\n \"resultType\": \"createOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"maximum open orders count of 80 reached\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01K9G4K19776J1CTA8YXA8AA5H\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"3467\",\n \"quantity\": \"0.1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1762552022311,\n \"updatedAt\": 1762552022311,\n \"orderStatus\": \"rejected\",\n \"clientRequestId\": \"2f6635e5-bdab-4fbc-8e2e-21252d2219dc\",\n \"reduceOnly\": false,\n \"postOnly\": false\n },\n \"error\": {\n \"slug\": \"CREATE_ORDER_MAX_OPEN_ORDERS\",\n \"code\": \"PRP-0104\"\n },\n \"apiQuotaUsed\": 1,\n \"clientRequestId\": \"2f6635e5-bdab-4fbc-8e2e-21252d2219dc\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"createOrderError"}]},{"id":"modifyOrderAck","contentType":"application/json","payload":[{"name":"Modify Order — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-122>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-123>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-125>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-126>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-127>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-128>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-124>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-121>"},"title":"Modify Order — Acknowledgment","example":"{\n \"resultType\": \"modifyOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"modifying order\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJAA0QBAJEXQJ941F7SWW7\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"1999.00\",\n \"quantity\": \"1.00\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"10\",\n \"createdAt\": 1771357677591,\n \"updatedAt\": 1771357677701,\n \"orderStatus\": \"modifying\",\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"reduceOnly\": false,\n \"postOnly\": false\n },\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"apiQuotaUsed\": 5\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderAck"}]},{"id":"modifyOrderConfirmation","contentType":"application/json","payload":[{"name":"Modify Order — Confirmation","description":"The original order is cancelled and its replacement, under a new `orderId`, is on the book. The `order` is the replacement.\n","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-130>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-131>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-133>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-134>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-135>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-132>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-129>"},"title":"Modify Order — Confirmation","description":"The original order is cancelled and its replacement, under a new `orderId`, is on the book. The `order` is the replacement.\n","example":"{\n \"resultType\": \"modifyOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order modified\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJAA0QBAJEXQJ941F7SWW7\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"2000.00\",\n \"quantity\": \"2.00\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"10\",\n \"createdAt\": 1771357677591,\n \"updatedAt\": 1771357677701,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"0\"\n },\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderConfirmation"}]},{"id":"modifyOrderError","contentType":"application/json","payload":[{"name":"Modify Order — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `modifyOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,403,404,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":false,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed (absent when rejected before dispatch)","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `modifyOrder`.","x-parser-schema-id":"\u003canonymous-schema-137>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-138>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,403,404,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-140>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-141>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed (absent when rejected before dispatch)","x-parser-schema-id":"\u003canonymous-schema-142>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-143>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-144>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-139>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-136>"},"title":"Modify Order — Error","example":"{\n \"resultType\": \"modifyOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"modified order would immediately match, order not modified\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01KHPJD4JARPZJVN44BKVMMM66\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"1999\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"10\",\n \"createdAt\": 1771357770314,\n \"updatedAt\": 1771357770314,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"error\": {\n \"slug\": \"MODIFY_ORDER_WOULD_MATCH\",\n \"code\": \"PRP-0309\"\n },\n \"clientRequestId\": \"e1669c3d-a31b-43e3-8239-03da43c9ca73\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"modifyOrderError"}]},{"id":"cancelOrderAck","contentType":"application/json","payload":[{"name":"Cancel Order — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-153>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-154>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-156>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-157>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-158>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-159>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-155>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-152>"},"title":"Cancel Order — Acknowledgment","example":"{\n \"resultType\": \"cancelOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"cancelling order\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3601\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0.5\",\n \"leverage\": \"1\",\n \"createdAt\": 1717100052972,\n \"updatedAt\": 1717100393492,\n \"orderStatus\": \"cancelling\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"3601\"\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"apiQuotaUsed\": 1\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderAck"}]},{"id":"cancelOrderConfirmation","contentType":"application/json","payload":[{"name":"Cancel Order — Confirmation","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-161>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-162>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-164>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-165>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-166>"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-163>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-160>"},"title":"Cancel Order — Confirmation","example":"{\n \"resultType\": \"cancelOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order cancelled\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01HZ5J70FCBNJAS7TVPVB4GAAG\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3601\",\n \"quantity\": \"1\",\n \"filledQuantity\": \"0.5\",\n \"leverage\": \"1\",\n \"createdAt\": 1717100052972,\n \"updatedAt\": 1717100393492,\n \"orderStatus\": \"cancelled\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"3601\"\n },\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderConfirmation"}]},{"id":"cancelOrderError","contentType":"application/json","payload":[{"name":"Cancel Order — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `cancelOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,404,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed (absent when rejected before dispatch)","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `cancelOrder`.","x-parser-schema-id":"\u003canonymous-schema-168>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-169>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,404,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-171>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-172>"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed (absent when rejected before dispatch)","x-parser-schema-id":"\u003canonymous-schema-173>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-174>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-175>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-170>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-167>"},"title":"Cancel Order — Error","example":"{\n \"resultType\": \"cancelOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"Invalid request\",\n \"error\": {\n \"slug\": \"CANCEL_ORDER_ERROR\",\n \"code\": \"PRP-0200\"\n },\n \"apiQuotaUsed\": 1,\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"cancelOrderError"}]},{"id":"updateMarginAck","contentType":"application/json","payload":[{"name":"Update Margin — Acknowledgment","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `updateMargin`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `202`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-183>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-184>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `202`.","x-parser-schema-id":"\u003canonymous-schema-186>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-187>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-188>"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-189>"}},"required":["statusCode","body"],"x-parser-schema-id":"\u003canonymous-schema-185>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-182>"},"title":"Update Margin — Acknowledgment","example":"{\n \"resultType\": \"updateMargin\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 202,\n \"body\": \"margin update in progress, pending approval\",\n \"clientRequestId\": \"79b89ec3-b89b-4e9e-aff3-9a6ff0184009\",\n \"apiQuotaUsed\": 1\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginAck"}]},{"id":"updateMarginConfirmation","contentType":"application/json","payload":[{"name":"Update Margin — Confirmation","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `updateMargin`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-191>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-192>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-194>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-195>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-196>"}},"required":["statusCode","body"],"x-parser-schema-id":"\u003canonymous-schema-193>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-190>"},"title":"Update Margin — Confirmation","example":"{\n \"resultType\": \"updateMargin\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"margin updated successfully\",\n \"clientRequestId\": \"79b89ec3-b89b-4e9e-aff3-9a6ff0184009\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginConfirmation"}]},{"id":"updateMarginError","contentType":"application/json","payload":[{"name":"Update Margin — Error","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `updateMargin`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Error status code","enumValues":[400,409,429,500],"required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"apiQuotaUsed","type":"integer","description":"API quota consumed; omitted when the request was not metered","required":false},{"name":"retryAfterSec","type":"integer","description":"Present when throttled","required":false},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `updateMargin`.","x-parser-schema-id":"\u003canonymous-schema-198>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-199>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","enum":[400,409,429,500],"description":"Error status code","x-parser-schema-id":"\u003canonymous-schema-201>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-202>"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"apiQuotaUsed":{"type":"integer","description":"API quota consumed; omitted when the request was not metered","x-parser-schema-id":"\u003canonymous-schema-203>"},"retryAfterSec":{"type":"integer","description":"Present when throttled","x-parser-schema-id":"\u003canonymous-schema-204>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-205>"}},"required":["statusCode","body","error"],"x-parser-schema-id":"\u003canonymous-schema-200>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-197>"},"title":"Update Margin — Error","example":"{\n \"resultType\": \"updateMargin\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"margin decrease below minimum required margin\",\n \"clientRequestId\": \"acd02c47-3e8a-41af-aecb-9b60177554fd\",\n \"error\": {\n \"slug\": \"UPDATE_MARGIN_BELOW_MINIMUM\",\n \"code\": \"PRP-0804\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"updateMarginError"}]},{"id":"completeFillNotification","contentType":"application/json","payload":[{"name":"Order Filled — Complete Fill","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `completeFillOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `completeFillOrder`.","x-parser-schema-id":"\u003canonymous-schema-207>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-208>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-210>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-211>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-209>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-206>"},"title":"Order Filled — Complete Fill","example":"{\n \"resultType\": \"completeFillOrder\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order filled\",\n \"order\": {\n \"market\": \"BTC-USDT\",\n \"orderId\": \"01JGPRJC7KHY8GP4FT6WRQG193\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"98491.86060236\",\n \"quantity\": \"0\",\n \"filledQuantity\": \"1\",\n \"leverage\": \"1\",\n \"createdAt\": 1735930753267,\n \"updatedAt\": 1735930754142,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": false,\n \"avgFillPrice\": \"98491.86060236\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"completeFillNotification"}]},{"id":"partialFillNotification","contentType":"application/json","payload":[{"name":"Order Filled — Partial Fill","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `partialFillOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `200`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `partialFillOrder`.","x-parser-schema-id":"\u003canonymous-schema-213>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-214>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `200`.","x-parser-schema-id":"\u003canonymous-schema-216>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-217>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"}},"required":["statusCode","body","order"],"x-parser-schema-id":"\u003canonymous-schema-215>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-212>"},"title":"Order Filled — Partial Fill","example":"{\n \"resultType\": \"partialFillOrder\",\n \"market\": \"ETH-USDT\",\n \"data\": {\n \"statusCode\": 200,\n \"body\": \"order partially filled\",\n \"order\": {\n \"market\": \"ETH-USDT\",\n \"orderId\": \"01JGPS25KMV7R404DY4WEMG6GD\",\n \"orderType\": \"buy\",\n \"tradeType\": \"limit\",\n \"price\": \"3600\",\n \"quantity\": \"9.5\",\n \"filledQuantity\": \"0.04\",\n \"leverage\": \"1\",\n \"createdAt\": 1735931270772,\n \"updatedAt\": 1735931616903,\n \"orderStatus\": \"active\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true,\n \"avgFillPrice\": \"3600\"\n }\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"partialFillNotification"}]},{"id":"rejectOrderNotification","contentType":"application/json","payload":[{"name":"Order Rejected","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `rejectOrder`.","required":true},{"name":"market","type":"string","description":"Market name","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"statusCode","type":"integer","description":"Always `400`.","required":true},{"name":"body","type":"string","description":"Status message","required":true},{"name":"order","type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","required":true,"properties":[{"name":"market","type":"string","description":"Market name","required":true},{"name":"orderId","type":"string","description":"Unique identifier for the order","required":true},{"name":"orderType","type":"string","description":"Order side","enumValues":["buy","sell"],"required":true},{"name":"tradeType","type":"string","description":"Order type","enumValues":["limit","market"],"required":true},{"name":"price","type":"string","description":"Limit price; for market orders, expected/executed price","required":true},{"name":"quantity","type":"string","description":"Remaining quantity","required":true},{"name":"filledQuantity","type":"string","description":"Filled quantity","required":true},{"name":"leverage","type":"string","description":"Leverage used at order creation/modification","required":true},{"name":"createdAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"updatedAt","type":"integer","description":"Milliseconds since epoch","required":true},{"name":"orderStatus","type":"string","description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","enumValues":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"required":true},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false},{"name":"reduceOnly","type":"boolean","description":"Restricts the order to reducing an existing position","required":true},{"name":"postOnly","type":"boolean","description":"Maker-only creation flag","required":true},{"name":"avgFillPrice","type":"string","description":"Average price across fills; present once at least one fill has occurred","required":false}]},{"name":"error","type":"object","required":true,"properties":[{"name":"slug","type":"string","description":"Machine-readable error slug","required":true},{"name":"code","type":"string","description":"Error code","required":true}]},{"name":"clientRequestId","type":"string","description":"Client-generated UUID for correlation","required":false}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `rejectOrder`.","x-parser-schema-id":"\u003canonymous-schema-219>"},"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-220>"},"data":{"type":"object","properties":{"statusCode":{"type":"integer","description":"Always `400`.","x-parser-schema-id":"\u003canonymous-schema-222>"},"body":{"type":"string","description":"Status message","x-parser-schema-id":"\u003canonymous-schema-223>"},"order":{"type":"object","description":"Omitted entirely from some error responses; when present, all fields below are populated.\n","properties":{"market":{"type":"string","description":"Market name","x-parser-schema-id":"\u003canonymous-schema-80>"},"orderId":{"type":"string","description":"Unique identifier for the order","x-parser-schema-id":"\u003canonymous-schema-81>"},"orderType":{"type":"string","enum":["buy","sell"],"description":"Order side","x-parser-schema-id":"\u003canonymous-schema-82>"},"tradeType":{"type":"string","enum":["limit","market"],"description":"Order type","x-parser-schema-id":"\u003canonymous-schema-83>"},"price":{"type":"string","description":"Limit price; for market orders, expected/executed price","x-parser-schema-id":"\u003canonymous-schema-84>"},"quantity":{"type":"string","description":"Remaining quantity","x-parser-schema-id":"\u003canonymous-schema-85>"},"filledQuantity":{"type":"string","description":"Filled quantity","x-parser-schema-id":"\u003canonymous-schema-86>"},"leverage":{"type":"string","description":"Leverage used at order creation/modification","x-parser-schema-id":"\u003canonymous-schema-87>"},"createdAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-88>"},"updatedAt":{"type":"integer","format":"int64","description":"Milliseconds since epoch","x-parser-schema-id":"\u003canonymous-schema-89>"},"orderStatus":{"type":"string","enum":["pending","active","cancelling","cancelled","modifying","modified","rejected"],"description":"`pending` awaiting acceptance; `active` resting on the book; `cancelling` cancellation in progress; `cancelled` cancelled; `modifying` modification in progress; `modified` superseded by a modification (cancelled and replaced by a new order); `rejected` rejected\n","x-parser-schema-id":"\u003canonymous-schema-90>"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-91>"},"reduceOnly":{"type":"boolean","description":"Restricts the order to reducing an existing position","x-parser-schema-id":"\u003canonymous-schema-92>"},"postOnly":{"type":"boolean","description":"Maker-only creation flag","x-parser-schema-id":"\u003canonymous-schema-93>"},"avgFillPrice":{"type":"string","description":"Average price across fills; present once at least one fill has occurred","x-parser-schema-id":"\u003canonymous-schema-94>"}},"required":["market","orderId","orderType","tradeType","price","quantity","filledQuantity","leverage","createdAt","updatedAt","orderStatus","reduceOnly","postOnly"],"x-parser-schema-id":"Order"},"error":{"type":"object","properties":{"slug":{"type":"string","description":"Machine-readable error slug","x-parser-schema-id":"\u003canonymous-schema-46>"},"code":{"type":"string","description":"Error code","x-parser-schema-id":"\u003canonymous-schema-47>"}},"required":["slug","code"],"x-parser-schema-id":"ErrorDetail"},"clientRequestId":{"type":"string","description":"Client-generated UUID for correlation","x-parser-schema-id":"\u003canonymous-schema-224>"}},"required":["statusCode","body","order","error"],"x-parser-schema-id":"\u003canonymous-schema-221>"}},"required":["resultType","market","data"],"x-parser-schema-id":"\u003canonymous-schema-218>"},"title":"Order Rejected","example":"{\n \"resultType\": \"rejectOrder\",\n \"market\": \"BTC-USDT\",\n \"data\": {\n \"statusCode\": 400,\n \"body\": \"Post-only order rejected as it would have matched immediately\",\n \"order\": {\n \"market\": \"BTC-USDT\",\n \"orderId\": \"01JGPRJC7KHY8GP4FT6WRQG193\",\n \"orderType\": \"sell\",\n \"tradeType\": \"limit\",\n \"price\": \"98491.86060236\",\n \"quantity\": \"15.83767529\",\n \"filledQuantity\": \"0\",\n \"leverage\": \"1\",\n \"createdAt\": 1746643403628,\n \"updatedAt\": 1746643403696,\n \"orderStatus\": \"rejected\",\n \"clientRequestId\": \"0835bf3e-4a20-41f0-908d-8213f2b7a285\",\n \"reduceOnly\": false,\n \"postOnly\": true\n },\n \"error\": {\n \"slug\": \"ORDER_REJECTED_POST_ONLY\",\n \"code\": \"PRP-0601\"\n },\n \"clientRequestId\": \"b9fe6677-12c3-4d43-894c-370236b94023\"\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"rejectOrderNotification"}]},{"id":"sessionBackfillNotification","contentType":"application/json","payload":[{"name":"Session Backfill","type":"object","properties":[{"name":"resultType","type":"string","description":"Always `sessionBackfill`.","required":true},{"name":"data","type":"object","required":true,"properties":[{"name":"sessionId","type":"string","description":"Echoes the `sessionId` query parameter supplied on the connection.","required":true},{"name":"resumed","type":"boolean","description":"`true` if this session continues a live position from a prior connection with the same `sessionId` that reconnected within the 1-minute backfill window. `false` for a new `sessionId`, or a reused one outside that window — no backfill occurs, and local order state must be reconciled from scratch via HTTP endpoints or `emit` requests.\n","required":true},{"name":"from","type":"integer","description":"Unix timestamp (ms) marking the start of the backfill window. `0` when `resumed` is `false`.\n","required":true},{"name":"to","type":"integer","description":"Unix timestamp (ms) marking the end of the backfill window.","required":true},{"name":"events","type":"integer","description":"Total number of missed order events backfilled across all markets.","required":true},{"name":"backfilledMarkets","type":"array","description":"Markets whose missed events were fully backfilled.","required":true,"properties":[{"name":"item","type":"string","required":false}]},{"name":"expiredMarkets","type":"array","description":"Markets that accumulated more than 500 missed events; nothing was backfilled for them.\n","required":true,"properties":[{"name":"item","type":"string","required":false}]}]}]}],"headers":[],"jsonPayloadSchema":{"type":"object","properties":{"resultType":{"type":"string","description":"Always `sessionBackfill`.","x-parser-schema-id":"\u003canonymous-schema-226>"},"data":{"type":"object","properties":{"sessionId":{"type":"string","description":"Echoes the `sessionId` query parameter supplied on the connection.","x-parser-schema-id":"\u003canonymous-schema-228>"},"resumed":{"type":"boolean","description":"`true` if this session continues a live position from a prior connection with the same `sessionId` that reconnected within the 1-minute backfill window. `false` for a new `sessionId`, or a reused one outside that window — no backfill occurs, and local order state must be reconciled from scratch via HTTP endpoints or `emit` requests.\n","x-parser-schema-id":"\u003canonymous-schema-229>"},"from":{"type":"integer","format":"int64","description":"Unix timestamp (ms) marking the start of the backfill window. `0` when `resumed` is `false`.\n","x-parser-schema-id":"\u003canonymous-schema-230>"},"to":{"type":"integer","format":"int64","description":"Unix timestamp (ms) marking the end of the backfill window.","x-parser-schema-id":"\u003canonymous-schema-231>"},"events":{"type":"integer","description":"Total number of missed order events backfilled across all markets.","x-parser-schema-id":"\u003canonymous-schema-232>"},"backfilledMarkets":{"type":"array","description":"Markets whose missed events were fully backfilled.","items":{"type":"string","x-parser-schema-id":"\u003canonymous-schema-234>"},"x-parser-schema-id":"\u003canonymous-schema-233>"},"expiredMarkets":{"type":"array","description":"Markets that accumulated more than 500 missed events; nothing was backfilled for them.\n","items":{"type":"string","x-parser-schema-id":"\u003canonymous-schema-236>"},"x-parser-schema-id":"\u003canonymous-schema-235>"}},"required":["sessionId","resumed","from","to","events","backfilledMarkets","expiredMarkets"],"x-parser-schema-id":"\u003canonymous-schema-227>"}},"required":["resultType","data"],"x-parser-schema-id":"\u003canonymous-schema-225>"},"title":"Session Backfill","example":"{\n \"resultType\": \"sessionBackfill\",\n \"data\": {\n \"sessionId\": \"d785d51c-054e-4e33-9738-92d04ede9fab\",\n \"resumed\": true,\n \"from\": 1784834389615,\n \"to\": 1784834449615,\n \"events\": 6,\n \"backfilledMarkets\": [\n \"BTC-USDT\",\n \"ETH-USDT\"\n ],\n \"expiredMarkets\": []\n }\n}","bindings":[],"extensions":[{"id":"x-parser-unique-object-id","value":"sessionBackfillNotification"}]}],"extensions":[{"id":"x-parser-unique-object-id","value":"orderCreationStream"}],"securitySchemes":[{"id":"wsAuth","name":"Sec-WebSocket-Protocol","type":"httpApiKey","description":"Supply as `authorization#\u003cJWT>` during the WebSocket handshake.\n","in":"header","extensions":[]}]},"channelId":"orderCreationStream","metadata":{"id":14493,"subdomain":"railsxyz","eTag":"\"4ebb7dd9feb110bc125f7af8cb8ec4a8\"","originalFileLocation":"latest/perps/asyncapi/perps-ws.yaml","uuid":"febc2ca0-aac2-4420-a70f-bdcc0e5c1430","source":"LOCAL_FILE","createdAt":"2026-07-15T20:47:06.597Z","updatedAt":"2026-10-26T14:22:36.352Z","deletedAt":null,"retiredAt":null,"retiredByDeploymentHistoryId":null}},"subdomain":"railsxyz","siteName":"Rails Trading Developer API Documentation","title":"Order Creation Stream - Rails Trading Developer API Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-28T18:19:18.342Z","originalFileLocation":"latest/perps/websocket-api/order-creation-stream.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=\"Create, modify, and cancel orders, update isolated margin, and receive fill/rejection notifications.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Rails Trading Developer API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/railsxyz/uzRYRjCG6Wh2I4zS/_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/railsxyz/uzRYRjCG6Wh2I4zS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/railsxyz/uzRYRjCG6Wh2I4zS/_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/railsxyz/uzRYRjCG6Wh2I4zS/_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/railsxyz/uzRYRjCG6Wh2I4zS/_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/railsxyz/uzRYRjCG6Wh2I4zS/_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/railsxyz/uzRYRjCG6Wh2I4zS/_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/railsxyz/uzRYRjCG6Wh2I4zS/_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/railsxyz/uzRYRjCG6Wh2I4zS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Order Creation Stream - Rails Trading Developer API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create, modify, and cancel orders, update isolated margin, and receive fill/rejection notifications.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Rails Trading Developer API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.rails.xyz/latest/perps/websocket-api/order-creation-stream\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://railsxyz.mintlify.site/_mintlify/api/og/v2?division=WebSocket+API+Reference\u0026amp;title=Order+Creation+Stream\u0026amp;description=Create%2C+modify%2C+and+cancel+orders%2C+update+isolated+margin%2C+and+receive+fill%2Frejection+notifications.\u0026amp;theme=328cc55faa8e33363fe01ff9\u0026amp;signature=e84e6b2b996df15c60e79fdcdb19875463deb237610bff8464c4fdcc1d7b869e\">\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=\"Order Creation Stream - Rails Trading Developer API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create, modify, and cancel orders, update isolated margin, and receive fill/rejection notifications.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://railsxyz.mintlify.site/_mintlify/api/og/v2?division=WebSocket+API+Reference\u0026amp;title=Order+Creation+Stream\u0026amp;description=Create%2C+modify%2C+and+cancel+orders%2C+update+isolated+margin%2C+and+receive+fill%2Frejection+notifications.\u0026amp;theme=328cc55faa8e33363fe01ff9\u0026amp;signature=e84e6b2b996df15c60e79fdcdb19875463deb237610bff8464c4fdcc1d7b869e\">\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/railsxyz/uzRYRjCG6Wh2I4zS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Rails Trading Developer API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.rails.xyz/latest/perps/websocket-api/order-creation-stream\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/latest/perps/websocket-api/order-creation-stream.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.rails.xyz/#organization\",\"name\":\"Rails Trading Developer API Documentation\",\"url\":\"https://docs.rails.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/railsxyz/XTasO28fw_2bd6Tp/logo/light.svg?fit=max\u0026auto=format\u0026n=XTasO28fw_2bd6Tp\u0026q=85\u0026s=562d1517f28bb695fb280b18dd4310a4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.rails.xyz#website\",\"name\":\"Rails Trading Developer API Documentation\",\"url\":\"https://docs.rails.xyz\",\"publisher\":{\"@id\":\"https://docs.rails.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.rails.xyz/latest/perps/websocket-api/order-creation-stream#webpage\",\"url\":\"https://docs.rails.xyz/latest/perps/websocket-api/order-creation-stream\",\"name\":\"Order Creation Stream\",\"description\":\"Create, modify, and cancel orders, update isolated margin, and receive fill/rejection notifications.\",\"dateModified\":\"2026-09-28T18:19:18.342Z\",\"isPartOf\":{\"@id\":\"https://docs.rails.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.rails.xyz/latest/perps/websocket-api/order-creation-stream#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.rails.xyz/latest/perps/websocket-api/order-creation-stream#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"WebSocket API Reference\",\"item\":\"https://docs.rails.xyz/latest/perps/websocket-api/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Order Creation Stream\",\"item\":\"https://docs.rails.xyz/latest/perps/websocket-api/order-creation-stream\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.rails.xyz/latest/perps/websocket-api/order-creation-stream#apireference\",\"headline\":\"Order Creation Stream\",\"name\":\"Order Creation Stream\",\"description\":\"Create, modify, and cancel orders, update isolated margin, and receive fill/rejection notifications.\",\"url\":\"https://docs.rails.xyz/latest/perps/websocket-api/order-creation-stream\",\"mainEntityOfPage\":{\"@id\":\"https://docs.rails.xyz/latest/perps/websocket-api/order-creation-stream#webpage\"},\"dateModified\":\"2026-09-28T18:19:18.342Z\",\"publisher\":{\"@id\":\"https://docs.rails.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.rails.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Rails Trading Developer API Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Rails Trading Developer API Documentation","nav":{"global":null,"tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":""}]},{"tab":"Get Started","icon":"rocket","pages":[{"title":"Get Started","href":"/latest/introduction"}]},{"tab":"Perpetuals","icon":"chart-line","groups":[{"group":"Guides","pages":[{"title":"Overview","href":"/latest/perps/guides/overview"},{"title":"Market Data","href":"/latest/perps/guides/market-data"},{"title":"Order Book","href":"/latest/perps/guides/order-book"},{"title":"Order Creation","href":"/latest/perps/guides/order-creation"},{"title":"Order Modification","href":"/latest/perps/guides/order-modification"},{"title":"Order Cancellation","href":"/latest/perps/guides/order-cancellation"},{"title":"Open Orders","href":"/latest/perps/guides/open-orders"},{"title":"Account Information","href":"/latest/perps/guides/account-info"},{"title":"Recent Trades","href":"/latest/perps/guides/recent-trades"},{"title":"Risk Management","href":"/latest/perps/guides/risk-management"},{"title":"Rate Limits","href":"/latest/perps/guides/rate-limits"},{"title":"Error Codes","href":"/latest/perps/guides/error-codes"},{"title":"FAQs","href":"/latest/perps/guides/faqs"}]},{"group":"Formulas","pages":[{"title":"Mark Price","href":"/latest/perps/formulas/mark-price"},{"title":"Position Metrics, Margin \u0026 Liquidation Price","href":"/latest/perps/formulas/position-metrics"},{"title":"Account Equity \u0026 Balances","href":"/latest/perps/formulas/account-balance"},{"title":"Funding","href":"/latest/perps/formulas/funding"}]},{"group":"Go SDK","pages":[{"title":"Quickstart","href":"/latest/perps/go-sdk/quickstart"},{"title":"Orders","href":"/latest/perps/go-sdk/orders"},{"title":"Streams \u0026 Account","href":"/latest/perps/go-sdk/streams-and-account"}]},{"group":"WebSocket API Reference","pages":[{"title":"Overview","href":"/latest/perps/websocket-api/overview"},{"title":"Common Requests","description":"Available on every connection: ping, subscribe, and unsubscribe, plus the connection shutdown notice.","asyncapi":"latest/perps/asyncapi/perps-ws.yaml commonRequests","href":"/latest/perps/websocket-api/common-requests"},{"title":"Order Creation Stream","asyncapi":"latest/perps/asyncapi/perps-ws.yaml orderCreationStream","href":"/latest/perps/websocket-api/order-creation-stream"},{"title":"Account Trades Stream","description":"Real-time trade updates for your account, across all markets.","asyncapi":"latest/perps/asyncapi/perps-ws.yaml accountTradesStream","href":"/latest/perps/websocket-api/account-trades-stream"},{"title":"Public Trades Stream","asyncapi":"latest/perps/asyncapi/perps-ws.yaml publicTradesStream","href":"/latest/perps/websocket-api/public-trades-stream"},{"title":"Order Book Stream","asyncapi":"latest/perps/asyncapi/perps-ws.yaml publicOrderBookStream","href":"/latest/perps/websocket-api/order-book-stream"}]},{"group":"HTTP API Reference","pages":[{"group":"Market Data","pages":[{"title":"Get Order Book","openapi":"GET /api/v1/order-book","href":"/latest/perps/rest-api/get-order-book"},{"title":"Get Market Data","openapi":"GET /api/v1/market-data","href":"/latest/perps/rest-api/get-market-data"},{"title":"Get Supported Markets","openapi":"GET /api/v1/markets","href":"/latest/perps/rest-api/get-supported-markets"},{"title":"Get Product Specifications","openapi":"GET /api/v1/product-specifications","href":"/latest/perps/rest-api/get-product-specifications"},{"title":"Get Contract Specifications","openapi":"GET /api/v1/contract-specifications","href":"/latest/perps/rest-api/get-contract-specifications"}]},{"group":"Margin, Leverage \u0026 Orders","pages":[{"title":"Update Margin Mode","openapi":"POST /api/v1/update-margin-mode","href":"/latest/perps/rest-api/update-margin-mode"},{"title":"Update Leverage","openapi":"POST /api/v1/update-leverage","href":"/latest/perps/rest-api/update-leverage"},{"title":"Get Order By ID","openapi":"GET /api/v1/order","href":"/latest/perps/rest-api/get-order-by-id"},{"title":"Get Open Orders","openapi":"GET /api/v1/open-orders","href":"/latest/perps/rest-api/get-open-orders"},{"title":"Get Completed Orders","openapi":"GET /api/v1/completed-orders","href":"/latest/perps/rest-api/get-completed-orders"},{"title":"Cancel Orders","openapi":"DELETE /api/v1/orders","href":"/latest/perps/rest-api/cancel-orders"}]},{"group":"User Account","pages":[{"title":"Get Account Balances","openapi":"GET /api/v1/balances","href":"/latest/perps/rest-api/get-account-balances"},{"title":"Get Account Positions","openapi":"GET /api/v1/positions","href":"/latest/perps/rest-api/get-account-positions"},{"title":"Get Account Fundings","openapi":"GET /api/v1/fundings","href":"/latest/perps/rest-api/get-account-fundings"},{"title":"Get Account Deposits","openapi":"GET /api/v1/deposits","href":"/latest/perps/rest-api/get-account-deposits"},{"title":"Get Account Withdrawals","openapi":"GET /api/v1/withdrawals","href":"/latest/perps/rest-api/get-account-withdrawals"}]}]}]},{"tab":"Options","icon":"layer-group","pages":[{"title":"Options","href":"/latest/options/guides/overview"}]}]},"basePath":"","title":"Order Creation Stream - Rails Trading Developer API Documentation","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["3b021dca80","a4b48b4bee","a9bb46feb3"],"chunks":["MessageExamples-MyiaavaP.js","CodeSnippet-Bm5RU7m1.js","Page-DhoE8Dke.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","getApiPlaygroundDisplay-BB9vkXtE.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}