Unprefixed AssetId: 8 characters for native perps/spot pairs or 16 for HIP-3. Use the spot
pair ID. Outcome markets are unsupported.
boolean
required
true: Places a buy order.
false: Places a sell order.
string
required
Total requested quantity in base-asset units, aligned to the market lot grid. Each slice needs at least 10 USD estimated notional after rounding, except assigned HIP-3 reduce-only slices.
boolean
required
true: Restricts execution to reducing a position. The TWAP is canceled once the
position closes or changes direction.
false: Allows opening or increasing it; spot TWAPs require false.
number
required
Integer duration in minutes, from 1 to 1440 (24 hours).
number
required
Positive integer slice count. The first slice is placed immediately; the base interval
between slices is durationMinutes ÷ (numSlices − 1), or durationMinutes for one slice,
and must be 10 seconds to 10 minutes. Each slice independently passes admission.
boolean
required
true: Varies each interval randomly by up to ±50% of the base interval, narrowed so it
stays between 10 seconds and 10 minutes.
ECDSA r component as a 0x-prefixed 32-byte hex string.
string
required
ECDSA s component as a 0x-prefixed 32-byte hex string.
number
required
ECDSA recovery value, for example 27.
string
Optional account-owner address. Rejects the request if the verified signer currently maps to
another account. This unsigned check does not select an account or grant access.
number
Optional signed deadline in Unix milliseconds; requests after it are rejected
"ok" when a result is returned; inspect response.data.status for the outcome.
string
Always "twapOrder".
string
pending: The TWAP was recorded. Admission checks applied when it is recorded can still store
it as "rejected" with a reason, for example a closing isolated assignment or a reduce-only
TWAP with no position to close. Read its outcome with
Get TWAP schedule or
TWAP Updates.
rejected: The first-slice checks failed when the request was recorded; no TWAP was created.
string
Optional. Deterministic ID derived from the signed request. Present on pending, and on a
rejected response returned for a resubmission of an already-processed request.
string
Optional. Rejection reason on rejected.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Notional Protocol","colors":{"primary":"#48deb1","light":"#A3C5D9","dark":"#1FA67D"},"logo":{"light":"https://mintcdn.com/notional-43733c01/rsXtK44UR9aOso5z/public/logo.png?fit=max\u0026auto=format\u0026n=rsXtK44UR9aOso5z\u0026q=85\u0026s=e2acea2226c856b07c19b34b150f7e1a","dark":"https://mintcdn.com/notional-43733c01/rsXtK44UR9aOso5z/public/logo.png?fit=max\u0026auto=format\u0026n=rsXtK44UR9aOso5z\u0026q=85\u0026s=e2acea2226c856b07c19b34b150f7e1a"},"favicon":"https://mintcdn.com/notional-43733c01/rsXtK44UR9aOso5z/favicon.ico?fit=max\u0026auto=format\u0026n=rsXtK44UR9aOso5z\u0026q=85\u0026s=8103db2ee853205eb2b790f7d36f21e0","appearance":{"default":"dark","strict":true},"search":{"prompt":"Search documentation..."},"interaction":{"drilldown":false},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"notional-43733c01","hasAudioNarration":false,"actualSubdomain":"notional-43733c01","customDomains":["docs.notional.xyz"],"gitSource":{"type":"github","owner":"notional-xyz","repo":"monorepo","deployBranch":"main","contentDirectory":"packages/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0b5c263d9ba212ea0df3a8","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API Reference","count":64},{"language":"default","tag":"Trading","count":33},{"language":"default","tag":"Info","count":27},{"language":"default","tag":"Account","count":23},{"language":"default","tag":"WebSocket","count":17},{"language":"default","tag":"Documentation","count":14},{"language":"default","tag":"Exchange","count":13},{"language":"default","tag":"Start Here","count":7},{"language":"default","tag":"Market Data","count":5},{"language":"default","tag":"Market metadata","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","href":"/_mintlify/custom/notional-43733c01/d41cd1d80ad0b93e/styles.css"}]}
{"page":{"pagePath":"api-reference/exchange-endpoints/twap-order","slug":"/api-reference/exchange-endpoints/twap-order","pageMetadata":{"title":"Place TWAP Order","description":"A time-weighted average price (TWAP) order splits a total size into smaller orders submitted over a chosen duration.","href":"/api-reference/exchange-endpoints/twap-order"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"A time-weighted average price (TWAP) order splits a total size into smaller orders submitted over a chosen duration.\"\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`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(`div`,{className:`api-reference-page`,\"aria-hidden\":`true`}),`\n`,`\n`,_jsx(`div`,{className:`venue-tags`,\"aria-label\":`Supported venues`,children:_jsx(`span`,{className:`venue-tag`,children:`Hyperliquid`})}),`\n`,_jsxs(`div`,{className:`api-endpoint`,\"aria-label\":`Endpoint`,children:[_jsx(`span`,{className:`api-method`,children:`POST`}),_jsx(`code`,{children:`/exchange`})]}),`\n`,_jsx(Heading,{level:`2`,id:`request-headers`,children:`Request Headers`}),`\n`,_jsx(ResponseField,{name:`Content-Type`,type:`string`,required:true,id:`param-content-type`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`application/json`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(ResponseField,{name:`action`,type:`object`,required:true,id:`param-action`,children:[_jsx(_components.p,{children:`Signed action. Unknown keys are rejected.`}),_jsxs(Expandable,{title:`child attributes`,children:[_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`\"twapOrder\"`})]})}),_jsx(ResponseField,{name:`asset`,type:`string`,required:true,id:`param-asset`,children:_jsx(_components.p,{children:`Unprefixed AssetId: 8 characters for native perps/spot pairs or 16 for HIP-3. Use the spot\npair ID. Outcome markets are unsupported.`})}),_jsx(ResponseField,{name:`isBuy`,type:`boolean`,required:true,id:`param-is-buy`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: Places a buy order.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),`: Places a sell order.`]}),`\n`]})}),_jsx(ResponseField,{name:`sz`,type:`string`,required:true,id:`param-sz`,children:_jsx(_components.p,{children:`Total requested quantity in base-asset units, aligned to the market lot grid. Each slice needs at least 10 USD estimated notional after rounding, except assigned HIP-3 reduce-only slices.`})}),_jsx(ResponseField,{name:`reduceOnly`,type:`boolean`,required:true,id:`param-reduce-only`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: Restricts execution to reducing a position. The TWAP is canceled once the\nposition closes or changes direction.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),`: Allows opening or increasing it; spot TWAPs require `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`]})}),_jsx(ResponseField,{name:`durationMinutes`,type:`number`,required:true,id:`param-duration-minutes`,children:_jsx(_components.p,{children:`Integer duration in minutes, from 1 to 1440 (24 hours).`})}),_jsx(ResponseField,{name:`numSlices`,type:`number`,required:true,id:`param-num-slices`,children:_jsxs(_components.p,{children:[`Positive integer slice count. The first slice is placed immediately; the base interval\nbetween slices is `,_jsx(_components.code,{children:`durationMinutes`}),` ÷ (`,_jsx(_components.code,{children:`numSlices`}),` − 1), or `,_jsx(_components.code,{children:`durationMinutes`}),` for one slice,\nand must be 10 seconds to 10 minutes. Each slice independently passes admission.`]})}),_jsx(ResponseField,{name:`randomize`,type:`boolean`,required:true,id:`param-randomize`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: Varies each interval randomly by up to ±50% of the base interval, narrowed so it\nstays between 10 seconds and 10 minutes.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),`: Uses the base interval.`]}),`\n`]})})]})]}),`\n`,_jsx(ResponseField,{name:`nonce`,type:`number`,required:true,id:`param-nonce`,children:_jsxs(_components.p,{children:[`Replay-protection nonce, e.g., `,_jsx(_components.code,{children:`1701234567890`})]})}),`\n`,_jsxs(ResponseField,{name:`signature`,type:`object`,required:true,id:`param-signature`,children:[_jsxs(_components.p,{children:[`Account owner or approved API wallet; use the `,_jsx(_components.a,{href:`/api-reference/signing#signing-formats`,children:`exchange signing format`}),`.`]}),_jsxs(Expandable,{title:`child attributes`,children:[_jsx(ResponseField,{name:`r`,type:`string`,required:true,id:`param-r`,children:_jsxs(_components.p,{children:[`ECDSA `,_jsx(_components.code,{children:`r`}),` component as a `,_jsx(_components.code,{children:`0x`}),`-prefixed 32-byte hex string.`]})}),_jsx(ResponseField,{name:`s`,type:`string`,required:true,id:`params`,children:_jsxs(_components.p,{children:[`ECDSA `,_jsx(_components.code,{children:`s`}),` component as a `,_jsx(_components.code,{children:`0x`}),`-prefixed 32-byte hex string.`]})}),_jsx(ResponseField,{name:`v`,type:`number`,required:true,id:`param-v`,children:_jsxs(_components.p,{children:[`ECDSA recovery value, for example `,_jsx(_components.code,{children:`27`}),`.`]})})]})]}),`\n`,_jsx(ResponseField,{name:`expectedAccount`,type:`string`,id:`param-expected-account`,children:_jsx(_components.p,{children:`Optional account-owner address. Rejects the request if the verified signer currently maps to\nanother account. This unsigned check does not select an account or grant access.`})}),`\n`,_jsx(ResponseField,{name:`expiresAfter`,type:`number`,id:`param-expires-after`,children:_jsx(_components.p,{children:`Optional signed deadline in Unix milliseconds; requests after it are rejected`})}),`\n`,_jsxs(`div`,{className:`api-inline-response`,children:[_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`200: OK`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"twapOrder\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"twapOrderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x7f3c9a1e5b2d4c6f8a0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response Fields`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"ok\"`}),` when a result is returned; inspect `,_jsx(_components.code,{children:`response.data.status`}),` for the outcome.`]})}),`\n`,_jsx(ResponseField,{name:`response.type`,type:`string`,id:`param-response-type`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`\"twapOrder\"`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`response.data.status`,type:`string`,id:`param-response-data-status`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pending`}),`: The TWAP was recorded. Admission checks applied when it is recorded can still store\nit as `,_jsx(_components.code,{children:`\"rejected\"`}),` with a `,_jsx(_components.code,{children:`reason`}),`, for example a closing isolated assignment or a reduce-only\nTWAP with no position to close. Read its outcome with\n`,_jsx(_components.a,{href:`/api-reference/info-endpoints/twap-get-by-id`,children:`Get TWAP schedule`}),` or\n`,_jsx(_components.a,{href:`/api-reference/websocket/twap-updates`,children:`TWAP Updates`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`rejected`}),`: The first-slice checks failed when the request was recorded; no TWAP was created.`]}),`\n`]})}),`\n`,_jsx(ResponseField,{name:`response.data.twapOrderId`,type:`string`,id:`param-response-data-twap-order-id`,children:_jsxs(_components.p,{children:[`Optional. Deterministic ID derived from the signed request. Present on `,_jsx(_components.code,{children:`pending`}),`, and on a\n`,_jsx(_components.code,{children:`rejected`}),` response returned for a resubmission of an already-processed request.`]})}),`\n`,_jsx(ResponseField,{name:`response.data.error`,type:`string`,id:`param-response-data-error`,children:_jsxs(_components.p,{children:[`Optional. Rejection reason on `,_jsx(_components.code,{children:`rejected`}),`.`]})})]})}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":"Place TWAP Order","description":"A time-weighted average price (TWAP) order splits a total size into smaller orders submitted over a chosen duration.","href":"/api-reference/exchange-endpoints/twap-order"}}},"mdxSourceWithNoJs":{"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`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(`div`,{className:`api-reference-page`,\"aria-hidden\":`true`}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`200: OK`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"twapOrder\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"twapOrderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x7f3c9a1e5b2d4c6f8a0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(`div`,{className:`venue-tags`,\"aria-label\":`Supported venues`,children:_jsx(`span`,{className:`venue-tag`,children:`Hyperliquid`})}),`\n`,_jsxs(`div`,{className:`api-endpoint`,\"aria-label\":`Endpoint`,children:[_jsx(`span`,{className:`api-method`,children:`POST`}),_jsx(`code`,{children:`/exchange`})]}),`\n`,_jsx(Heading,{level:`2`,id:`request-headers`,children:`Request Headers`}),`\n`,_jsx(ResponseField,{name:`Content-Type`,type:`string`,required:true,id:`param-content-type`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`application/json`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(ResponseField,{name:`action`,type:`object`,required:true,id:`param-action`,children:[_jsx(_components.p,{children:`Signed action. Unknown keys are rejected.`}),_jsxs(Expandable,{title:`child attributes`,children:[_jsx(ResponseField,{name:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`\"twapOrder\"`})]})}),_jsx(ResponseField,{name:`asset`,type:`string`,required:true,id:`param-asset`,children:_jsx(_components.p,{children:`Unprefixed AssetId: 8 characters for native perps/spot pairs or 16 for HIP-3. Use the spot\npair ID. Outcome markets are unsupported.`})}),_jsx(ResponseField,{name:`isBuy`,type:`boolean`,required:true,id:`param-is-buy`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: Places a buy order.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),`: Places a sell order.`]}),`\n`]})}),_jsx(ResponseField,{name:`sz`,type:`string`,required:true,id:`param-sz`,children:_jsx(_components.p,{children:`Total requested quantity in base-asset units, aligned to the market lot grid. Each slice needs at least 10 USD estimated notional after rounding, except assigned HIP-3 reduce-only slices.`})}),_jsx(ResponseField,{name:`reduceOnly`,type:`boolean`,required:true,id:`param-reduce-only`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: Restricts execution to reducing a position. The TWAP is canceled once the\nposition closes or changes direction.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),`: Allows opening or increasing it; spot TWAPs require `,_jsx(_components.code,{children:`false`}),`.`]}),`\n`]})}),_jsx(ResponseField,{name:`durationMinutes`,type:`number`,required:true,id:`param-duration-minutes`,children:_jsx(_components.p,{children:`Integer duration in minutes, from 1 to 1440 (24 hours).`})}),_jsx(ResponseField,{name:`numSlices`,type:`number`,required:true,id:`param-num-slices`,children:_jsxs(_components.p,{children:[`Positive integer slice count. The first slice is placed immediately; the base interval\nbetween slices is `,_jsx(_components.code,{children:`durationMinutes`}),` ÷ (`,_jsx(_components.code,{children:`numSlices`}),` − 1), or `,_jsx(_components.code,{children:`durationMinutes`}),` for one slice,\nand must be 10 seconds to 10 minutes. Each slice independently passes admission.`]})}),_jsx(ResponseField,{name:`randomize`,type:`boolean`,required:true,id:`param-randomize`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`true`}),`: Varies each interval randomly by up to ±50% of the base interval, narrowed so it\nstays between 10 seconds and 10 minutes.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`false`}),`: Uses the base interval.`]}),`\n`]})})]})]}),`\n`,_jsx(ResponseField,{name:`nonce`,type:`number`,required:true,id:`param-nonce`,children:_jsxs(_components.p,{children:[`Replay-protection nonce, e.g., `,_jsx(_components.code,{children:`1701234567890`})]})}),`\n`,_jsxs(ResponseField,{name:`signature`,type:`object`,required:true,id:`param-signature`,children:[_jsxs(_components.p,{children:[`Account owner or approved API wallet; use the `,_jsx(_components.a,{href:`/api-reference/signing#signing-formats`,children:`exchange signing format`}),`.`]}),_jsxs(Expandable,{title:`child attributes`,children:[_jsx(ResponseField,{name:`r`,type:`string`,required:true,id:`param-r`,children:_jsxs(_components.p,{children:[`ECDSA `,_jsx(_components.code,{children:`r`}),` component as a `,_jsx(_components.code,{children:`0x`}),`-prefixed 32-byte hex string.`]})}),_jsx(ResponseField,{name:`s`,type:`string`,required:true,id:`params`,children:_jsxs(_components.p,{children:[`ECDSA `,_jsx(_components.code,{children:`s`}),` component as a `,_jsx(_components.code,{children:`0x`}),`-prefixed 32-byte hex string.`]})}),_jsx(ResponseField,{name:`v`,type:`number`,required:true,id:`param-v`,children:_jsxs(_components.p,{children:[`ECDSA recovery value, for example `,_jsx(_components.code,{children:`27`}),`.`]})})]})]}),`\n`,_jsx(ResponseField,{name:`expectedAccount`,type:`string`,id:`param-expected-account`,children:_jsx(_components.p,{children:`Optional account-owner address. Rejects the request if the verified signer currently maps to\nanother account. This unsigned check does not select an account or grant access.`})}),`\n`,_jsx(ResponseField,{name:`expiresAfter`,type:`number`,id:`param-expires-after`,children:_jsx(_components.p,{children:`Optional signed deadline in Unix milliseconds; requests after it are rejected`})}),`\n`,_jsxs(`div`,{className:`api-inline-response`,children:[_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`200: OK`,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"twapOrder\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pending\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"twapOrderId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0x7f3c9a1e5b2d4c6f8a0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response Fields`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"ok\"`}),` when a result is returned; inspect `,_jsx(_components.code,{children:`response.data.status`}),` for the outcome.`]})}),`\n`,_jsx(ResponseField,{name:`response.type`,type:`string`,id:`param-response-type`,children:_jsxs(_components.p,{children:[`Always `,_jsx(_components.code,{children:`\"twapOrder\"`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`response.data.status`,type:`string`,id:`param-response-data-status`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pending`}),`: The TWAP was recorded. Admission checks applied when it is recorded can still store\nit as `,_jsx(_components.code,{children:`\"rejected\"`}),` with a `,_jsx(_components.code,{children:`reason`}),`, for example a closing isolated assignment or a reduce-only\nTWAP with no position to close. Read its outcome with\n`,_jsx(_components.a,{href:`/api-reference/info-endpoints/twap-get-by-id`,children:`Get TWAP schedule`}),` or\n`,_jsx(_components.a,{href:`/api-reference/websocket/twap-updates`,children:`TWAP Updates`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`rejected`}),`: The first-slice checks failed when the request was recorded; no TWAP was created.`]}),`\n`]})}),`\n`,_jsx(ResponseField,{name:`response.data.twapOrderId`,type:`string`,id:`param-response-data-twap-order-id`,children:_jsxs(_components.p,{children:[`Optional. Deterministic ID derived from the signed request. Present on `,_jsx(_components.code,{children:`pending`}),`, and on a\n`,_jsx(_components.code,{children:`rejected`}),` response returned for a resubmission of an already-processed request.`]})}),`\n`,_jsx(ResponseField,{name:`response.data.error`,type:`string`,id:`param-response-data-error`,children:_jsxs(_components.p,{children:[`Optional. Rejection reason on `,_jsx(_components.code,{children:`rejected`}),`.`]})})]})}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":"Place TWAP Order","description":"A time-weighted average price (TWAP) order splits a total size into smaller orders submitted over a chosen duration.","href":"/api-reference/exchange-endpoints/twap-order"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Request Headers","slug":"request-headers","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Response Fields","slug":"response-fields","depth":2,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"200: OK","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ok\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"response\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"twapOrder\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pending\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"twapOrderId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0x7f3c9a1e5b2d4c6f8a0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/notional-43733c01/3fa330e70c85b516/response-scrollbars.js"],"subdomain":"notional-43733c01","siteName":"Notional Protocol","title":"Place TWAP Order - Notional Protocol","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-09T04:36:17.729Z","originalFileLocation":"api-reference/exchange-endpoints/twap-order.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"dark\"}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=\"A time-weighted average price (TWAP) order splits a total size into smaller orders submitted over a chosen duration.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Notional Protocol\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/notional-43733c01/c3oUL2UT8l-eR7rO/_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/notional-43733c01/c3oUL2UT8l-eR7rO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/notional-43733c01/c3oUL2UT8l-eR7rO/_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/notional-43733c01/c3oUL2UT8l-eR7rO/_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/notional-43733c01/c3oUL2UT8l-eR7rO/_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/notional-43733c01/c3oUL2UT8l-eR7rO/_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/notional-43733c01/c3oUL2UT8l-eR7rO/_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/notional-43733c01/c3oUL2UT8l-eR7rO/_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/notional-43733c01/c3oUL2UT8l-eR7rO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Place TWAP Order - Notional Protocol\">\u003cmeta data-mint-head property=\"og:description\" content=\"A time-weighted average price (TWAP) order splits a total size into smaller orders submitted over a chosen duration.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Notional Protocol\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.notional.xyz/api-reference/exchange-endpoints/twap-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://notional-43733c01.mintlify.site/_mintlify/api/og/v2?division=Trading\u0026amp;title=Place+TWAP+Order\u0026amp;description=A+time-weighted+average+price+%28TWAP%29+order+splits+a+total+size+into+smaller+orders+submitted+over+a+chosen+duration.\u0026amp;theme=4b554a7cf1e319abcac8f6f0\u0026amp;signature=4b1479f0c61951f3ea1d0a1306923aa6ddeca79fd8979e31503484f4dd532aea\">\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=\"Place TWAP Order - Notional Protocol\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"A time-weighted average price (TWAP) order splits a total size into smaller orders submitted over a chosen duration.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://notional-43733c01.mintlify.site/_mintlify/api/og/v2?division=Trading\u0026amp;title=Place+TWAP+Order\u0026amp;description=A+time-weighted+average+price+%28TWAP%29+order+splits+a+total+size+into+smaller+orders+submitted+over+a+chosen+duration.\u0026amp;theme=4b554a7cf1e319abcac8f6f0\u0026amp;signature=4b1479f0c61951f3ea1d0a1306923aa6ddeca79fd8979e31503484f4dd532aea\">\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/notional-43733c01/c3oUL2UT8l-eR7rO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Notional Protocol\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#48deb1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.notional.xyz/api-reference/exchange-endpoints/twap-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/exchange-endpoints/twap-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.notional.xyz/#organization\",\"name\":\"Notional Protocol\",\"url\":\"https://docs.notional.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/notional-43733c01/rsXtK44UR9aOso5z/public/logo.png?fit=max\u0026auto=format\u0026n=rsXtK44UR9aOso5z\u0026q=85\u0026s=e2acea2226c856b07c19b34b150f7e1a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.notional.xyz#website\",\"name\":\"Notional Protocol\",\"url\":\"https://docs.notional.xyz\",\"publisher\":{\"@id\":\"https://docs.notional.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.notional.xyz/api-reference/exchange-endpoints/twap-order#webpage\",\"url\":\"https://docs.notional.xyz/api-reference/exchange-endpoints/twap-order\",\"name\":\"Place TWAP Order\",\"description\":\"A time-weighted average price (TWAP) order splits a total size into smaller orders submitted over a chosen duration.\",\"dateModified\":\"2026-11-09T04:36:17.729Z\",\"isPartOf\":{\"@id\":\"https://docs.notional.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.notional.xyz/api-reference/exchange-endpoints/twap-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.notional.xyz/api-reference/exchange-endpoints/twap-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Exchange\",\"item\":\"https://docs.notional.xyz/api-reference/exchange-endpoints/order\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Trading\",\"item\":\"https://docs.notional.xyz/api-reference/exchange-endpoints/order\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Place TWAP Order\",\"item\":\"https://docs.notional.xyz/api-reference/exchange-endpoints/twap-order\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.notional.xyz/api-reference/exchange-endpoints/twap-order#article\",\"headline\":\"Place TWAP Order\",\"name\":\"Place TWAP Order\",\"description\":\"A time-weighted average price (TWAP) order splits a total size into smaller orders submitted over a chosen duration.\",\"url\":\"https://docs.notional.xyz/api-reference/exchange-endpoints/twap-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.notional.xyz/api-reference/exchange-endpoints/twap-order#webpage\"},\"dateModified\":\"2026-11-09T04:36:17.729Z\",\"publisher\":{\"@id\":\"https://docs.notional.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.notional.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Notional Protocol\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Notional Protocol\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/exchange-endpoints/twap-order.md","siteName":"Notional Protocol","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Start Here","pages":[{"title":"Introduction","href":"/api-reference/overview"},{"title":"Notation","href":"/api-reference/notation"},{"title":"Asset IDs","href":"/api-reference/products-and-asset-ids"},{"title":"Tick and lot size","href":"/api-reference/tick-and-lot-size"},{"title":"Signing","href":"/api-reference/signing"},{"title":"Nonces and API wallets","href":"/api-reference/nonces-and-api-wallets"},{"title":"Error Responses","href":"/api-reference/error-responses"}]},{"group":"Info","pages":[{"group":"Market metadata","pages":[{"title":"Get spot metadata","href":"/api-reference/info-endpoints/spot-meta"},{"title":"Get perpetual metadata","href":"/api-reference/info-endpoints/perp-meta"},{"title":"Get prediction metadata","href":"/api-reference/info-endpoints/prediction-meta"},{"title":"Get borrow and lend state","href":"/api-reference/info-endpoints/borrow-lend-state"}]},{"group":"Trading","pages":[{"title":"Get perpetual positions","href":"/api-reference/info-endpoints/positions"},{"title":"Get balances","href":"/api-reference/info-endpoints/spot-clearinghouse-state"},{"title":"Get active asset data","href":"/api-reference/info-endpoints/active-asset-data"},{"title":"Get open orders","href":"/api-reference/info-endpoints/open-orders"},{"title":"Get order history","href":"/api-reference/info-endpoints/historical-orders"},{"title":"Get recent fills","href":"/api-reference/info-endpoints/user-fills"},{"title":"Get fills by time","href":"/api-reference/info-endpoints/user-fills-by-time"},{"title":"Get user statistics","href":"/api-reference/info-endpoints/user-stats"},{"title":"Get active TWAP schedules","href":"/api-reference/info-endpoints/twap-list-active"},{"title":"Get TWAP history","href":"/api-reference/info-endpoints/twap-list-history"},{"title":"Get TWAP schedule","href":"/api-reference/info-endpoints/twap-get-by-id"}]},{"group":"Account","pages":[{"title":"Get account summary","href":"/api-reference/info-endpoints/account"},{"title":"Get portfolio","href":"/api-reference/info-endpoints/portfolio"},{"title":"Get user role","href":"/api-reference/info-endpoints/user-role"},{"title":"Get API wallets","href":"/api-reference/info-endpoints/extra-agents"},{"title":"Get user fundings","href":"/api-reference/info-endpoints/user-fundings"},{"title":"Get user non-funding ledger updates","href":"/api-reference/info-endpoints/user-non-funding-ledger-updates"},{"title":"Get user borrow/lend interest","href":"/api-reference/info-endpoints/user-borrow-lend-interest"},{"title":"Get supplier earnings history","href":"/api-reference/info-endpoints/user-earn-history"},{"title":"Get pending withdrawals","href":"/api-reference/info-endpoints/pending-withdrawals"},{"title":"Get transfer routes","href":"/api-reference/info-endpoints/protocol-transfer-routes"},{"title":"Get transfer quote","href":"/api-reference/info-endpoints/protocol-transfer-quote"},{"title":"Get transfer status","href":"/api-reference/info-endpoints/protocol-transfer-status"}]}]},{"group":"Exchange","pages":[{"group":"Trading","pages":[{"title":"Place Order","href":"/api-reference/exchange-endpoints/order"},{"title":"Cancel Order","href":"/api-reference/exchange-endpoints/cancel"},{"title":"Modify Order","description":"Changes the price or size of one or more eligible orders.","href":"/api-reference/exchange-endpoints/modify"},{"title":"Place TWAP Order","href":"/api-reference/exchange-endpoints/twap-order"},{"title":"Cancel TWAP Order","description":"Cancels an active or pending TWAP schedule.","href":"/api-reference/exchange-endpoints/twap-cancel"},{"title":"Update Perpetual Leverage","href":"/api-reference/exchange-endpoints/update-leverage"},{"title":"Update Isolated Margin","href":"/api-reference/exchange-endpoints/update-isolated-margin"},{"title":"Split and Merge Outcomes","href":"/api-reference/exchange-endpoints/outcome-operations"}]},{"group":"Account","pages":[{"title":"Approve API Wallet","href":"/api-reference/exchange-endpoints/approve-agent"},{"title":"Report Hyperliquid Deposit","href":"/api-reference/exchange-endpoints/report-deposit"},{"title":"Report Polymarket Deposit","href":"/api-reference/exchange-endpoints/report-polymarket-deposit"},{"title":"Withdraw","href":"/api-reference/exchange-endpoints/withdraw"},{"title":"Execute Transfer","href":"/api-reference/exchange-endpoints/execute-protocol-transfer"}]}]},{"group":"WebSocket","pages":[{"title":"WebSocket Overview","sidebarTitle":"Overview","href":"/api-reference/websocket/overview"},{"group":"Account","pages":[{"title":"Account Summary","href":"/api-reference/websocket/account-summary"},{"title":"Spot State","href":"/api-reference/websocket/spot-state"},{"title":"User Transactions","href":"/api-reference/websocket/user-transactions"},{"title":"User Fundings","href":"/api-reference/websocket/user-fundings"},{"title":"User Non-Funding Ledger Updates","href":"/api-reference/websocket/user-non-funding-ledger-updates"},{"title":"User Borrow/Lend Interest","href":"/api-reference/websocket/user-borrow-lend-interest"}]},{"group":"Trading","pages":[{"title":"Active Asset Data","href":"/api-reference/websocket/active-asset-data"},{"title":"Order Updates","href":"/api-reference/websocket/order-updates"},{"title":"User Fills","href":"/api-reference/websocket/user-fills"},{"title":"User Order Rejections","href":"/api-reference/websocket/user-order-rejections"},{"title":"TWAP Updates","href":"/api-reference/websocket/twap-updates"}]},{"group":"Market Data","pages":[{"title":"Perpetual Metadata","href":"/api-reference/websocket/perp-meta"},{"title":"Spot Metadata","href":"/api-reference/websocket/spot-meta"},{"title":"Prediction Metadata","href":"/api-reference/websocket/prediction-meta"},{"title":"Polymarket Reference Prices","href":"/api-reference/websocket/polymarket-reference-prices"},{"title":"Borrow and Lend State","href":"/api-reference/websocket/borrow-lend-state"}]}]}]}]},"basePath":"","title":"Place TWAP Order - Notional Protocol","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["2b790eda92"],"chunks":["ApiExamples-pq4ns9YA.js","usePlaygroundInputsStore-D-gnigmo.js","shallow-DIfWGPrf.js","utils-Dsq-HLeF.js","utils-QL6OhUyF.js","isEqual-DDFuixlH.js","_Uint8Array-IXRJ_ueo.js","isObject-FP1Yky1u.js","CodeSnippets-8g5rilZj.js","CodeSnippet-C_J7pouP.js","snippetPresets-Bjd6OXRM.js","style-to-object-BY3JEAdk.js","use-playground-group-access-bkOyfPao.js","cloneDeep-CHgPjMM8.js","v4-DIgz8zy6.js"]}