Submits wallet.create_twap when this method is enabled for the selected deployment. This is a slow operational method, not the low-latency trading path. Relay validates the typed request and signature where applicable, simulates the exact call against latest, and only then queues a sponsored transaction. See Operational methods for availability, gas, and latency rules.
The example uses testnet WETH/USDC where a market is required, but all identities, nonces, timestamps, hashes, and signatures are illustrative. Read current state and build a fresh valid signature for the selected network. Omit authorization7702 and makerSlotsPrimed; complete delegation first.
string
required
New lowercase UUIDv7 for request correlation.
string
default:"wallet.create_twap"
required
Must be wallet.create_twap.
string
required
Trading wallet matching the bearer JWT; for AccountCore operations this is the sponsoring frontend identity, not necessarily the signed authorizer.
object
required
Method-specific payload shown below; unknown fields are rejected.
Automated TWAP execution is not implemented and remains work in progress. This method only stores an instruction where enabled; no service schedules or submits slices.
Storage only: Relay creates an on-chain instruction but does not monitor or execute slices. totalQuantity must divide evenly by a positive sliceCount; intervalSeconds is positive, startTime is future Unix seconds, and the computed end must fit the configured horizon. Quantity and price use native market precision. Creation uses the wallet’s one-shot trigger/TWAP nonce namespace, not lastSeenOrderNonce; WebSocket submissions still follow connection-level increasing nonce ordering.Sign the exact EIP-712 type below using the KuruTradingWallet version 2, with the delegated trading wallet as verifyingContract and the selected chain ID (143 mainnet; 10143 testnet):
BROADCAST means scheduling for asynchronous RPC broadcast, not provider acceptance or successful execution. Check the receipt and expected events/state. A failed estimate returns an immediate error with no transaction signed or broadcast.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Kuru","description":"Understand Kuru, trade onchain, and build exchange integrations.","colors":{"primary":"#357A1D","light":"#A8EE7A","dark":"#4B842D"},"logo":{"light":"https://mintcdn.com/kuru/ZJFEKPbRANZFowHn/logo/Kuru_Dark_Full.svg?fit=max\u0026auto=format\u0026n=ZJFEKPbRANZFowHn\u0026q=85\u0026s=d30ea59720742757617f228333d6ce92","dark":"https://mintcdn.com/kuru/ZJFEKPbRANZFowHn/logo/Kuru_Light_Full.svg?fit=max\u0026auto=format\u0026n=ZJFEKPbRANZFowHn\u0026q=85\u0026s=8f93c2f3c01cbb60e2888bc41a1085b5"},"favicon":"https://mintcdn.com/kuru/mDO1HI37CmzeGv-Q/logo/KuruLogo.png?fit=max\u0026auto=format\u0026n=mDO1HI37CmzeGv-Q\u0026q=85\u0026s=b107f6940f9cb532de473b760f30a3b5","api":{"asyncapi":["api/exchange/asyncapi.yaml","api/relay/asyncapi.yaml"],"playground":{"display":"interactive"},"examples":{"defaults":"all","languages":["curl","javascript","python"]},"mdx":{"server":["https://relay.mainnet.kuru.io","https://relay.testnet.kuru.io"]}},"footer":{"socials":{"x":"https://x.com/kuruexchange","github":"https://github.com/kuru-labs"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"kuru","hasAudioNarration":false,"actualSubdomain":"kuru","customDomains":["docs.kuru.io"],"gitSource":{"type":"github","owner":"kuru-labs","repo":"v2-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af6b03f5a67264d6e5a93fe","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API","count":74},{"language":"default","tag":"Relay APIs","count":39},{"language":"default","tag":"SDK","count":29},{"language":"default","tag":"Docs","count":20},{"language":"default","tag":"Data Source APIs","count":17},{"language":"default","tag":"Data Source REST methods","count":16},{"language":"default","tag":"Exchange APIs","count":15},{"language":"default","tag":"Opt-in operational REST methods","count":9},{"language":"default","tag":"Opt-in operational WebSocket methods","count":9},{"language":"default","tag":"Exchange WebSocket methods","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api/relay/reference/create-twap","slug":"/api/relay/reference/create-twap","pageMetadata":{"title":"Store TWAP instruction","description":"Store a TWAP instruction through opt-in Relay; automated slice execution is not implemented.","api":"POST /relay","authMethod":"bearer","href":"/api/relay/reference/create-twap"},"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: \"Store a TWAP instruction through opt-in Relay; automated slice execution is not implemented.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Info,ParamField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Submits `,_jsx(_components.code,{children:`wallet.create_twap`}),` when this method is enabled for the selected deployment. This is a `,_jsx(_components.strong,{children:`slow operational method`}),`, not the low-latency trading path. Relay validates the typed request and signature where applicable, simulates the exact call against `,_jsx(_components.code,{children:`latest`}),`, and only then queues a sponsored transaction. See `,_jsx(_components.a,{href:`/api/relay/operational`,children:`Operational methods`}),` for availability, gas, and latency rules.`]}),`\n`,_jsxs(Info,{children:[`The example uses testnet WETH/USDC where a market is required, but all identities, nonces, timestamps, hashes, and signatures are illustrative. Read current state and build a fresh valid signature for the selected network. Omit `,_jsx(_components.code,{children:`authorization7702`}),` and `,_jsx(_components.code,{children:`makerSlotsPrimed`}),`; complete delegation first.`]}),`\n`,_jsx(ParamField,{body:`requestId`,type:`string`,required:true,id:`param-request-id`,children:`New lowercase UUIDv7 for request correlation.`}),`\n`,_jsxs(ParamField,{body:`method`,type:`string`,required:true,default:`wallet.create_twap`,id:`param-method`,children:[`Must be `,_jsx(_components.code,{children:`wallet.create_twap`}),`.`]}),`\n`,_jsx(ParamField,{body:`wallet`,type:`string`,required:true,id:`param-wallet`,children:`Trading wallet matching the bearer JWT; for AccountCore operations this is the sponsoring frontend identity, not necessarily the signed authorizer.`}),`\n`,_jsx(ParamField,{body:`payload`,type:`object`,required:true,id:`param-payload`,children:`Method-specific payload shown below; unknown fields are rejected.`}),`\n`,_jsxs(Warning,{children:[`Automated TWAP execution is `,_jsx(_components.strong,{children:`not implemented`}),` and remains work in progress. This method only stores an instruction where enabled; no service schedules or submits slices.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Storage only:`}),` Relay creates an on-chain instruction but does not monitor or execute slices. `,_jsx(_components.code,{children:`totalQuantity`}),` must divide evenly by a positive `,_jsx(_components.code,{children:`sliceCount`}),`; `,_jsx(_components.code,{children:`intervalSeconds`}),` is positive, `,_jsx(_components.code,{children:`startTime`}),` is future Unix seconds, and the computed end must fit the configured horizon. Quantity and price use native market precision. Creation uses the wallet’s one-shot trigger/TWAP nonce namespace, not `,_jsx(_components.code,{children:`lastSeenOrderNonce`}),`; WebSocket submissions still follow connection-level increasing nonce ordering.`]}),`\n`,_jsxs(_components.p,{children:[`Sign the exact EIP-712 type below using the `,_jsx(_components.code,{children:`KuruTradingWallet`}),` version `,_jsx(_components.code,{children:`2`}),`, with the delegated trading wallet as `,_jsx(_components.code,{children:`verifyingContract`}),` and the selected chain ID (`,_jsx(_components.code,{children:`143`}),` mainnet; `,_jsx(_components.code,{children:`10143`}),` testnet):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`CreateTwapIntent(uint40 accountId,address market,uint256 authNonce,uint64 nonce,uint64 deadline,bytes32 clientOrderId,address builder,uint32 builderFeePps,uint8 side,uint96 totalQuantity,uint32 limitPrice,uint64 startTime,uint32 intervalSeconds,uint32 sliceCount)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,`\n`,`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`BROADCAST`}),` means scheduling for asynchronous RPC broadcast, not provider acceptance or successful execution. Check the receipt and expected events/state. A failed estimate returns an immediate error with no transaction signed or broadcast.`]})]})}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":"Store TWAP instruction","description":"Store a TWAP instruction through opt-in Relay; automated slice execution is not implemented.","api":"POST /relay","authMethod":"bearer","href":"/api/relay/reference/create-twap"}}},"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Info,ParamField,RequestExample,ResponseExample,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Submits `,_jsx(_components.code,{children:`wallet.create_twap`}),` when this method is enabled for the selected deployment. This is a `,_jsx(_components.strong,{children:`slow operational method`}),`, not the low-latency trading path. Relay validates the typed request and signature where applicable, simulates the exact call against `,_jsx(_components.code,{children:`latest`}),`, and only then queues a sponsored transaction. See `,_jsx(_components.a,{href:`/api/relay/operational`,children:`Operational methods`}),` for availability, gas, and latency rules.`]}),`\n`,_jsxs(Info,{children:[`The example uses testnet WETH/USDC where a market is required, but all identities, nonces, timestamps, hashes, and signatures are illustrative. Read current state and build a fresh valid signature for the selected network. Omit `,_jsx(_components.code,{children:`authorization7702`}),` and `,_jsx(_components.code,{children:`makerSlotsPrimed`}),`; complete delegation first.`]}),`\n`,_jsx(ParamField,{body:`requestId`,type:`string`,required:true,id:`param-request-id`,children:`New lowercase UUIDv7 for request correlation.`}),`\n`,_jsxs(ParamField,{body:`method`,type:`string`,required:true,default:`wallet.create_twap`,id:`param-method`,children:[`Must be `,_jsx(_components.code,{children:`wallet.create_twap`}),`.`]}),`\n`,_jsx(ParamField,{body:`wallet`,type:`string`,required:true,id:`param-wallet`,children:`Trading wallet matching the bearer JWT; for AccountCore operations this is the sponsoring frontend identity, not necessarily the signed authorizer.`}),`\n`,_jsx(ParamField,{body:`payload`,type:`object`,required:true,id:`param-payload`,children:`Method-specific payload shown below; unknown fields are rejected.`}),`\n`,_jsxs(Warning,{children:[`Automated TWAP execution is `,_jsx(_components.strong,{children:`not implemented`}),` and remains work in progress. This method only stores an instruction where enabled; no service schedules or submits slices.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Storage only:`}),` Relay creates an on-chain instruction but does not monitor or execute slices. `,_jsx(_components.code,{children:`totalQuantity`}),` must divide evenly by a positive `,_jsx(_components.code,{children:`sliceCount`}),`; `,_jsx(_components.code,{children:`intervalSeconds`}),` is positive, `,_jsx(_components.code,{children:`startTime`}),` is future Unix seconds, and the computed end must fit the configured horizon. Quantity and price use native market precision. Creation uses the wallet’s one-shot trigger/TWAP nonce namespace, not `,_jsx(_components.code,{children:`lastSeenOrderNonce`}),`; WebSocket submissions still follow connection-level increasing nonce ordering.`]}),`\n`,_jsxs(_components.p,{children:[`Sign the exact EIP-712 type below using the `,_jsx(_components.code,{children:`KuruTradingWallet`}),` version `,_jsx(_components.code,{children:`2`}),`, with the delegated trading wallet as `,_jsx(_components.code,{children:`verifyingContract`}),` and the selected chain ID (`,_jsx(_components.code,{children:`143`}),` mainnet; `,_jsx(_components.code,{children:`10143`}),` testnet):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`CreateTwapIntent(uint40 accountId,address market,uint256 authNonce,uint64 nonce,uint64 deadline,bytes32 clientOrderId,address builder,uint32 builderFeePps,uint8 side,uint96 totalQuantity,uint32 limitPrice,uint64 startTime,uint32 intervalSeconds,uint32 sliceCount)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`5`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`curl --request POST --url https://relay.testnet.kuru.io/relay \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header \"Authorization: Bearer $KURU_RELAY_JWT\" \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --header 'Content-Type: application/json' \\\\`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` --data '{\"requestId\":\"018f5ef2-88a1-7b41-a826-4b679010f87f\",\"method\":\"wallet.create_twap\",\"wallet\":\"0x1111111111111111111111111111111111111111\",\"payload\":{\"header\":{\"accountId\":\"123\",\"market\":\"0x0A082280e4eA3D822E23Ec1186685477241A039d\",\"authNonce\":\"1\",\"nonce\":\"1792480000001\",\"deadline\":\"1792500000\",\"clientOrderId\":\"0x0000000000000000000000000000000000000000000000000000000000000001\",\"builder\":\"0x0000000000000000000000000000000000000000\",\"builderFeePps\":\"0\"},\"config\":{\"side\":\"BUY\",\"totalQuantity\":\"10000000000\",\"limitPrice\":\"30000000\",\"startTime\":\"1792500300\",\"intervalSeconds\":\"60\",\"sliceCount\":\"10\"},\"signature\":\"0x...\"}}'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`BROADCAST`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"018f5ef2-88a1-7b41-a826-4b679010f87f\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"BROADCAST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"txHash\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"sponsorAddress\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"sponsorNonce\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"42\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"transactionType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DYNAMIC_FEE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`BROADCAST`}),` means scheduling for asynchronous RPC broadcast, not provider acceptance or successful execution. Check the receipt and expected events/state. A failed estimate returns an immediate error with no transaction signed or broadcast.`]})]})}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":"Store TWAP instruction","description":"Store a TWAP instruction through opt-in Relay; automated slice execution is not implemented.","api":"POST /relay","authMethod":"bearer","href":"/api/relay/reference/create-twap"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","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=\"text\">\u003ccode language=\"text\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan>curl --request POST --url https://relay.testnet.kuru.io/relay \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan> --header \"Authorization: Bearer $KURU_RELAY_JWT\" \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan> --header 'Content-Type: application/json' \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan> --data '{\"requestId\":\"018f5ef2-88a1-7b41-a826-4b679010f87f\",\"method\":\"wallet.create_twap\",\"wallet\":\"0x1111111111111111111111111111111111111111\",\"payload\":{\"header\":{\"accountId\":\"123\",\"market\":\"0x0A082280e4eA3D822E23Ec1186685477241A039d\",\"authNonce\":\"1\",\"nonce\":\"1792480000001\",\"deadline\":\"1792500000\",\"clientOrderId\":\"0x0000000000000000000000000000000000000000000000000000000000000001\",\"builder\":\"0x0000000000000000000000000000000000000000\",\"builderFeePps\":\"0\"},\"config\":{\"side\":\"BUY\",\"totalQuantity\":\"10000000000\",\"limitPrice\":\"30000000\",\"startTime\":\"1792500300\",\"intervalSeconds\":\"60\",\"sliceCount\":\"10\"},\"signature\":\"0x...\"}}'\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan>\u003c/span>\u003c/span>\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"BROADCAST","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=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"requestId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"018f5ef2-88a1-7b41-a826-4b679010f87f\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\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\">\"BROADCAST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"txHash\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"sponsorAddress\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"sponsorNonce\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"42\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"transactionType\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"DYNAMIC_FEE\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Store TWAP instruction","path":"/relay","servers":[{"url":"https://relay.mainnet.kuru.io"},{"url":"https://relay.testnet.kuru.io"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"requestId":[{"type":"string","description":"New lowercase UUIDv7 for request correlation.","required":true}],"method":[{"type":"string","description":"Must be `wallet.create_twap` .","required":true}],"wallet":[{"type":"string","description":"Trading wallet matching the bearer JWT; for AccountCore operations this is the sponsoring frontend identity, not necessarily the signed authorizer.","required":true}],"payload":[{"type":"object","properties":{},"description":"Method-specific payload shown below; unknown fields are rejected.","required":true}]}}],"examples":{"example":{"value":{"requestId":"\u003cstring>","method":"\u003cstring>","wallet":"\u003cstring>","payload":{}}}}}}},"response":{},"deprecated":false}},"jsLinks":[],"subdomain":"kuru","siteName":"Kuru","title":"Store TWAP instruction - Kuru","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T18:42:28.529Z","originalFileLocation":"api/relay/reference/create-twap.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=\"Store a TWAP instruction through opt-in Relay; automated slice execution is not implemented.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Kuru\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/kuru/YfLGlVkjCduqwDUs/_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/kuru/YfLGlVkjCduqwDUs/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/kuru/YfLGlVkjCduqwDUs/_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/kuru/YfLGlVkjCduqwDUs/_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/kuru/YfLGlVkjCduqwDUs/_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/kuru/YfLGlVkjCduqwDUs/_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/kuru/YfLGlVkjCduqwDUs/_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/kuru/YfLGlVkjCduqwDUs/_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/kuru/YfLGlVkjCduqwDUs/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Store TWAP instruction - Kuru\">\u003cmeta data-mint-head property=\"og:description\" content=\"Store a TWAP instruction through opt-in Relay; automated slice execution is not implemented.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Kuru\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.kuru.io/api/relay/reference/create-twap\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://kuru.mintlify.site/_mintlify/api/og/v2?division=Opt-in+operational+REST+methods\u0026amp;title=Store+TWAP+instruction\u0026amp;description=Store+a+TWAP+instruction+through+opt-in+Relay%3B+automated+slice+execution+is+not+implemented.\u0026amp;theme=98d6e336a25624b2bc2a9024\u0026amp;signature=f78d3d2c389fc6f9215a0c0116b32d895c93c7b787758f61cf548dfec689c9f9\">\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=\"Store TWAP instruction - Kuru\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Store a TWAP instruction through opt-in Relay; automated slice execution is not implemented.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://kuru.mintlify.site/_mintlify/api/og/v2?division=Opt-in+operational+REST+methods\u0026amp;title=Store+TWAP+instruction\u0026amp;description=Store+a+TWAP+instruction+through+opt-in+Relay%3B+automated+slice+execution+is+not+implemented.\u0026amp;theme=98d6e336a25624b2bc2a9024\u0026amp;signature=f78d3d2c389fc6f9215a0c0116b32d895c93c7b787758f61cf548dfec689c9f9\">\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/kuru/YfLGlVkjCduqwDUs/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Kuru\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#357A1D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.kuru.io/api/relay/reference/create-twap\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/relay/reference/create-twap.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.kuru.io/#organization\",\"name\":\"Kuru\",\"url\":\"https://docs.kuru.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/kuru/ZJFEKPbRANZFowHn/logo/Kuru_Dark_Full.svg?fit=max\u0026auto=format\u0026n=ZJFEKPbRANZFowHn\u0026q=85\u0026s=d30ea59720742757617f228333d6ce92\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.kuru.io#website\",\"name\":\"Kuru\",\"url\":\"https://docs.kuru.io\",\"publisher\":{\"@id\":\"https://docs.kuru.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.kuru.io/api/relay/reference/create-twap#webpage\",\"url\":\"https://docs.kuru.io/api/relay/reference/create-twap\",\"name\":\"Store TWAP instruction\",\"description\":\"Store a TWAP instruction through opt-in Relay; automated slice execution is not implemented.\",\"dateModified\":\"2026-10-30T18:42:28.529Z\",\"isPartOf\":{\"@id\":\"https://docs.kuru.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.kuru.io/api/relay/reference/create-twap#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.kuru.io/api/relay/reference/create-twap#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Relay APIs\",\"item\":\"https://docs.kuru.io/api/relay/rest\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Opt-in operational REST methods\",\"item\":\"https://docs.kuru.io/api/relay/reference/execute-cancel-orders-by-id\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Store TWAP instruction\",\"item\":\"https://docs.kuru.io/api/relay/reference/create-twap\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.kuru.io/api/relay/reference/create-twap#apireference\",\"headline\":\"Store TWAP instruction\",\"name\":\"Store TWAP instruction\",\"description\":\"Store a TWAP instruction through opt-in Relay; automated slice execution is not implemented.\",\"url\":\"https://docs.kuru.io/api/relay/reference/create-twap\",\"mainEntityOfPage\":{\"@id\":\"https://docs.kuru.io/api/relay/reference/create-twap#webpage\"},\"dateModified\":\"2026-10-30T18:42:28.529Z\",\"publisher\":{\"@id\":\"https://docs.kuru.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.kuru.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Kuru\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Kuru\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/relay/reference/create-twap.md","siteName":"Kuru","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":""}]},{"tab":"API","groups":[{"group":"Integration Guides","pages":[{"title":"API Overview","href":"/api/introduction"},{"title":"Reading Market Data","href":"/api/market-data"},{"title":"Following Account Activity","href":"/api/account-activity"}]},{"group":"Exchange APIs","pages":[{"title":"Exchange Gateway REST API","href":"/api/exchange/rest"},{"group":"Exchange REST methods","pages":[{"title":"Get L2 order book","openapi":"api/exchange/openapi.yaml GET /api/depth","href":"/api/exchange/reference/l2-book"},{"title":"Get best bid and offer","openapi":"api/exchange/openapi.yaml GET /api/bbo","href":"/api/exchange/reference/bbo"},{"title":"Get projected user balances","openapi":"api/exchange/openapi.yaml GET /api/v1/users/{userId}/balances","href":"/api/exchange/reference/user-balances"},{"title":"Get projected user open orders","openapi":"api/exchange/openapi.yaml GET /api/v1/users/{userId}/orders","href":"/api/exchange/reference/user-orders"}]},{"title":"Exchange WebSocket API","href":"/api/exchange/websocket"},{"group":"Protocol changelog","pages":[{"title":"userTrades response changelog","href":"/api/exchange/user-trades-changelog"}]},{"group":"Exchange WebSocket methods","pages":[{"title":"L2 delta stream","asyncapi":"api/exchange/asyncapi.yaml l2Delta","href":"/api/exchange/websocket-reference/l2-delta"},{"title":"Market trades stream","asyncapi":"api/exchange/asyncapi.yaml trades","href":"/api/exchange/websocket-reference/trades"},{"title":"L2 book stream","asyncapi":"api/exchange/asyncapi.yaml l2Book","href":"/api/exchange/websocket-reference/l2-book"},{"title":"BBO stream","asyncapi":"api/exchange/asyncapi.yaml bbo","href":"/api/exchange/websocket-reference/bbo"},{"title":"All mids stream","asyncapi":"api/exchange/asyncapi.yaml allMids","href":"/api/exchange/websocket-reference/all-mids"},{"title":"User orders stream","asyncapi":"api/exchange/asyncapi.yaml userOrders","href":"/api/exchange/websocket-reference/user-orders"},{"title":"User balances stream","asyncapi":"api/exchange/asyncapi.yaml userBalances","href":"/api/exchange/websocket-reference/user-balances"},{"title":"User trades stream","asyncapi":"api/exchange/asyncapi.yaml userTrades","href":"/api/exchange/websocket-reference/user-trades"}]}]},{"group":"Data Source APIs","pages":[{"title":"Data Source REST API","href":"/api/data-source"},{"group":"Data Source REST methods","pages":[{"title":"List markets","openapi":"api/data-source/openapi.yaml GET /api/v1/markets","href":"/api/data-source/reference/markets"},{"title":"Get market details","openapi":"api/data-source/openapi.yaml GET /api/v1/markets/{marketAddress}","href":"/api/data-source/reference/market"},{"title":"List market trades","openapi":"api/data-source/openapi.yaml GET /api/v1/markets/{marketAddress}/trades","href":"/api/data-source/reference/market-trades"},{"title":"Get finalized market order","openapi":"api/data-source/openapi.yaml GET /api/v1/markets/{marketAddress}/orders","href":"/api/data-source/reference/market-orders"},{"title":"List tokens","openapi":"api/data-source/openapi.yaml GET /api/v1/tokens","href":"/api/data-source/reference/tokens"},{"title":"Get token details","openapi":"api/data-source/openapi.yaml GET /api/v1/tokens/{tokenAddress}","href":"/api/data-source/reference/token"},{"title":"Get candles","openapi":"api/data-source/openapi.yaml GET /api/v1/markets/{marketAddress}/candles","href":"/api/data-source/reference/candles"},{"title":"Resolve user address","openapi":"api/data-source/openapi.yaml GET /api/v1/users/by-address/{userAddress}","href":"/api/data-source/reference/resolve-user"},{"title":"Get finalized user open orders","openapi":"api/data-source/openapi.yaml GET /api/v1/users/{userId}/orders","href":"/api/data-source/reference/user-orders"},{"title":"Get finalized user balances","openapi":"api/data-source/openapi.yaml GET /api/v1/users/{userId}/balances","href":"/api/data-source/reference/user-balances"},{"title":"List user trades","openapi":"api/data-source/openapi.yaml GET /api/v1/users/{userId}/trades","href":"/api/data-source/reference/user-trades"},{"title":"List user order events","openapi":"api/data-source/openapi.yaml GET /api/v1/users/{userId}/order-events","href":"/api/data-source/reference/order-events"},{"title":"Get user fee tier","openapi":"api/data-source/openapi.yaml GET /api/v1/users/{userId}/fee-tier","href":"/api/data-source/reference/user-fee-tier"},{"title":"Get user account transfers","api":"GET https://api.testnet.kuru.io/api/v1/users/{userId}/account-transfers","href":"/api/data-source/reference/user-account-transfers"},{"title":"Get account value and PnL snapshots","openapi":"api/data-source/openapi.yaml GET /api/v1/users/{userId}/account-value-snapshots","href":"/api/data-source/reference/account-value-snapshots"},{"title":"Exchange Stats","href":"/api/data-source/reference/stats"}]}]},{"group":"Relay APIs","pages":[{"title":"Relay","href":"/api/relay/rest"},{"title":"Using Hosted Relay","href":"/api/relay/security"},{"title":"Relay Rate Limits and Migration","href":"/api/relay/rate-limits"},{"title":"Relay errors and outcomes","href":"/api/relay/errors"},{"title":"Operational methods","href":"/api/relay/operational"},{"group":"Public authentication","pages":[{"title":"Create authentication challenge","openapi":"api/relay/openapi.yaml POST /auth/challenge","href":"/api/relay/reference/create-challenge"},{"title":"Exchange challenge for token","openapi":"api/relay/openapi.yaml POST /auth/token","href":"/api/relay/reference/exchange-token"}]},{"group":"REST methods","pages":[{"title":"Authorize account signer","api":"POST /relay","href":"/api/relay/reference/authorize-account-signer"},{"title":"Execute order batch","api":"POST /relay","href":"/api/relay/reference/execute-batch"},{"title":"Execute packed slot replacement","api":"POST /relay","href":"/api/relay/reference/execute-replace-by-slot"},{"title":"Cancel conditional order","api":"POST /relay","href":"/api/relay/reference/cancel-trigger"}]},{"group":"Coming soon: conditional orders","pages":[{"title":"Create batch trigger","api":"POST /relay","playground":"none","href":"/api/relay/reference/create-batch-trigger"},{"title":"Create packed replacement trigger","api":"POST /relay","playground":"none","href":"/api/relay/reference/create-replace-trigger"}]},{"group":"Opt-in operational REST methods","pages":[{"title":"Cancel orders by ID","api":"POST /relay","href":"/api/relay/reference/execute-cancel-orders-by-id"},{"title":"Cancel all orders in a market","api":"POST /relay","href":"/api/relay/reference/execute-cancel-all"},{"title":"Execute FOK swap","api":"POST /relay","href":"/api/relay/reference/execute-fok-swap"},{"title":"Store FOK swap trigger","description":"Store an FOK trigger through opt-in Relay; condition monitoring and execution are not implemented.","api":"POST /relay","href":"/api/relay/reference/create-fok-swap-trigger"},{"title":"Store TWAP instruction","api":"POST /relay","href":"/api/relay/reference/create-twap"},{"title":"Cancel TWAP instruction","description":"Submit wallet.cancel_twap through the opt-in Relay operational path.","api":"POST /relay","href":"/api/relay/reference/cancel-twap"},{"title":"Finalize expired TWAP","api":"POST /relay","href":"/api/relay/reference/finalize-twap"},{"title":"Revoke account signer","api":"POST /relay","href":"/api/relay/reference/revoke-account-signer"},{"title":"Create subaccount","api":"POST /relay","href":"/api/relay/reference/create-subaccount"}]},{"group":"WebSocket methods","pages":[{"title":"Authorize account signer","asyncapi":"api/relay/asyncapi.yaml authorizeAccountSigner","href":"/api/relay/websocket-reference/authorize-account-signer"},{"title":"Execute order batch","asyncapi":"api/relay/asyncapi.yaml executeBatch","href":"/api/relay/websocket-reference/execute-batch"},{"title":"Execute packed slot replacement","asyncapi":"api/relay/asyncapi.yaml executeReplaceBySlot","href":"/api/relay/websocket-reference/execute-replace-by-slot"},{"title":"Cancel conditional order","asyncapi":"api/relay/asyncapi.yaml cancelTrigger","href":"/api/relay/websocket-reference/cancel-trigger"},{"title":"Subscribe to transaction","asyncapi":"api/relay/asyncapi.yaml transactionSubscribe","href":"/api/relay/websocket-reference/transaction-subscribe"},{"title":"Transaction outcome","asyncapi":"api/relay/asyncapi.yaml transactionOutcome","href":"/api/relay/websocket-reference/transaction-outcome"}]},{"group":"Opt-in operational WebSocket methods","pages":[{"title":"Cancel orders by ID","asyncapi":"api/relay/asyncapi.yaml executeCancelOrdersById","href":"/api/relay/websocket-reference/execute-cancel-orders-by-id"},{"title":"Cancel all orders in a market","asyncapi":"api/relay/asyncapi.yaml executeCancelAll","href":"/api/relay/websocket-reference/execute-cancel-all"},{"title":"Execute FOK swap","asyncapi":"api/relay/asyncapi.yaml executeFokSwap","href":"/api/relay/websocket-reference/execute-fok-swap"},{"title":"Store FOK swap trigger","asyncapi":"api/relay/asyncapi.yaml createFokSwapTrigger","href":"/api/relay/websocket-reference/create-fok-swap-trigger"},{"title":"Store TWAP instruction","asyncapi":"api/relay/asyncapi.yaml createTwap","href":"/api/relay/websocket-reference/create-twap"},{"title":"Cancel TWAP instruction","asyncapi":"api/relay/asyncapi.yaml cancelTwap","href":"/api/relay/websocket-reference/cancel-twap"},{"title":"Finalize expired TWAP","asyncapi":"api/relay/asyncapi.yaml finalizeTwap","href":"/api/relay/websocket-reference/finalize-twap"},{"title":"Revoke account signer","asyncapi":"api/relay/asyncapi.yaml revokeAccountSigner","href":"/api/relay/websocket-reference/revoke-account-signer"},{"title":"Create subaccount","asyncapi":"api/relay/asyncapi.yaml createSubaccount","href":"/api/relay/websocket-reference/create-subaccount"}]},{"group":"Coming soon: WebSocket methods","pages":[{"title":"Create batch trigger","asyncapi":"api/relay/asyncapi.yaml createBatchTrigger","href":"/api/relay/websocket-reference/create-batch-trigger"},{"title":"Create packed replacement trigger","asyncapi":"api/relay/asyncapi.yaml createReplaceTrigger","href":"/api/relay/websocket-reference/create-replace-trigger"}]}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/overview"}]}]},"basePath":"","title":"Store TWAP instruction - Kuru","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js"]}