Build a tokenized-equity (Ondo) buy/sell order; the product account is the
maker.
Returns everything needed to place the order in one round-trip: a price quote,
a one-time token approval to sign (only until the settlement contract is
approved), and the order payload the owner signs off-chain. Only the approval
ever touches the chain — the signed order is relayed to market makers, never
broadcast. Equities only; RWA yield tokens use /transact/buy and
/transact/sell.
POST
/
v2
/
tokenized_assets
/
order
Python (SDK)
from compass_api_sdk import CompassAPIwith CompassAPI( api_key_auth="<YOUR_API_KEY_HERE>",) as compass_api: res = compass_api.tokenized_assets.tokenized_assets_order(from_token="<value>", to_token="<value>", amount="578.28", owner="<value>", slippage_bps=50) # Handle response print(res)
import { CompassApiSDK } from "@compass-labs/api-sdk";
const compassApiSDK = new CompassApiSDK({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await compassApiSDK.tokenizedAssets.tokenizedAssetsOrder({
fromToken: "<value>",
toToken: "<value>",
amount: "578.28",
owner: "<value>",
slippageBps: 50,
});
console.log(result);
}
run();
Token the sender is paying. Either an on-chain symbol (e.g. TSLAon), the literal USDC, or a 0x-prefixed token address.
Examples:
"USDC"
"WETH"
"0xA0b86a33E6441ccF30EE5DdEF1E9b652C91ac1c8"
to_token
string
required
Token the sender is receiving. Same accepted forms as from_token.
Examples:
"USDC"
"WETH"
"0xA0b86a33E6441ccF30EE5DdEF1E9b652C91ac1c8"
amount
string
required
Human-readable amount of from_token to swap (decimal string). Decimals are applied server-side.
owner
string
required
Wallet that owns the Tokenized Assets Account. The product account address is derived deterministically from this owner. The owner signs the EIP-712 payloads returned by this endpoint (the optional approval and the order itself).
slippage_bps
integer
default:50
Max acceptable slippage in basis points (1 bp = 0.01%). Range 1-5000 (0.01%-50%); defaults to 50 (0.5%). The upper bound is intentionally wide so callers can clear the wide auction floors quoted for thinly-traded tokenized stocks.
Required range: 1 <= x <= 5000
Response
Successful Response
Quote, optional approval payload, and the EIP-712 order to sign.
quote
Quote · object
required
Preview of input/output amounts and fees for the proposed order.
Show child attributes
order
OrderToSign · object
required
Order metadata plus the EIP-712 payload to sign. The owner signs order.safe_message_eip712 and submits the resulting signature to /order/submit along with the rest of the order fields.
Show child attributes
approval_safe_tx_eip712
BatchedSafeOperationsResponse · object | null
EIP-712 payload that authorizes a one-time max-approve of from_token to the settlement contract. Populated when the Tokenized Assets Account's existing allowance is below amount. The owner signs it, then it is broadcast via POST /v2/gas_sponsorship/prepare (or directly by the owner) to set the allowance on-chain. null when the allowance is already sufficient.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Compass API Docs","colors":{"primary":"#0284c7","light":"#0e9fe9","dark":"#0284c7"},"logo":{"light":"https://mintcdn.com/compasslabs-f07467e0/x2NrFgZ7soJbH6sc/logo/light.svg?fit=max\u0026auto=format\u0026n=x2NrFgZ7soJbH6sc\u0026q=85\u0026s=80a04b06674000990914306c6a833cb9","dark":"https://mintcdn.com/compasslabs-f07467e0/x2NrFgZ7soJbH6sc/logo/dark.svg?fit=max\u0026auto=format\u0026n=x2NrFgZ7soJbH6sc\u0026q=85\u0026s=77e910ba12605c7f004ad72498f8076f"},"favicon":"https://mintcdn.com/compasslabs-f07467e0/x2NrFgZ7soJbH6sc/favicon.svg?fit=max\u0026auto=format\u0026n=x2NrFgZ7soJbH6sc\u0026q=85\u0026s=2025e9c84a2b6b167d319b28e1ecb8a0","appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"https://calendly.com/elisabeth-compasslabs/30min","label":"Book a demo"},{"href":"https://compasslabs.ai/login","label":"Login"}]},"footer":{"socials":{"x":"https://x.com/labs_compass","github":"https://github.com/CompassLabs","linkedin":"https://www.linkedin.com/company/compass-labs-ai","medium":"https://medium.com/@compasslabs","telegram":"https://discord.com/invite/ujetyJJPYr","discord":"https://discord.com/invite/ujetyJJPYr"},"links":[{"header":"Resources","items":[{"label":"Blog","href":"https://medium.com/@compasslabs"}]},{"header":"Legal","items":[{"label":"Terms \u0026 Conditions","href":"https://docs.compasslabs.ai/v1/support/terms-and-conditions"},{"label":"Privacy Policy","href":"https://docs.compasslabs.ai/v1/support/privacy-policy"}]}]},"styling":{"eyebrows":"section","codeblocks":"system","latex":false},"integrations":{"ga4":{"measurementId":"G-EQSZ3TK15C"},"gtm":{"tagId":"GTM-5NXMZG6D"}},"contextual":{"options":["chatgpt","claude"],"display":"header"},"navigation":{"global":{"tabs":[],"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"compasslabs-f07467e0","hasAudioNarration":false,"actualSubdomain":"compasslabs-f07467e0","customDomains":["docs.compasslabs.ai"],"gitSource":{"type":"github","owner":"compasslabs","repo":"mono","deployBranch":"production","contentDirectory":"api_docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"issues":true,"edits":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af5b5300b3858d5ef253beb","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":300},{"language":"default","tag":"Documentation","count":30},{"language":"default","tag":"Aave V3","count":15},{"language":"default","tag":"Credit","count":15},{"language":"default","tag":"Perpetual Trading","count":15},{"language":"default","tag":"Tokenized Assets","count":15},{"language":"default","tag":"Earn","count":13},{"language":"default","tag":"Morpho","count":12},{"language":"default","tag":"Uniswap V3","count":10},{"language":"default","tag":"Transaction Bundler","count":9}]},"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":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"button.css","content":"@keyframes jump{0%,100%{transform:translateY(0)}50%{transform:translateY(-20px)}}.jump-loop{animation:jump 0.5s ease infinite}#code-group{background-color:#EFEFEF33;box-shadow:0 4px 12px rgba(0, 0, 0, 0.08)}#code-group:hover{box-shadow:0 6px 18px rgba(0, 0, 0, 0.1)}#content-area>div.flex.flex-col.gap-8>div.mt-6.flex.w-full.flex-col.space-y-4>div{background-color:#EFEFEF33}#content-area>div.flex.flex-col.gap-8>div.mt-6.flex.w-full.flex-col.space-y-4>div{box-shadow:0 4px 12px rgba(0, 0, 0, 0.08)}#content-area>div.flex.flex-col.gap-8>div.mt-6.flex.w-full.flex-col.space-y-4>div:hover{box-shadow:0 6px 18px rgba(0, 0, 0, 0.1)}"}]}
{"page":{"pagePath":"v2/api-reference/tokenized-assets/build-an-order","slug":"/v2/api-reference/tokenized-assets/build-an-order","pageMetadata":{"title":"Build an order","description":"Build a tokenized-**equity** (Ondo) buy/sell order; the product account is the\nmaker.\n\nReturns everything needed to place the order in one round-trip: a price quote,\na one-time token approval to sign (only until the settlement contract is\napproved), and the order payload the owner signs off-chain. Only the approval\never touches the chain — the signed order is relayed to market makers, never\nbroadcast. Equities only; RWA yield tokens use `/transact/buy` and\n`/transact/sell`.","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/order","href":"/v2/api-reference/tokenized-assets/build-an-order","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Build a tokenized-\", _jsx(_components.strong, {\n children: \"equity\"\n }), \" (Ondo) buy/sell order; the product account is the\\nmaker.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Returns everything needed to place the order in one round-trip: a price quote,\\na one-time token approval to sign (only until the settlement contract is\\napproved), and the order payload the owner signs off-chain. Only the approval\\never touches the chain — the signed order is relayed to market makers, never\\nbroadcast. Equities only; RWA yield tokens use \", _jsx(_components.code, {\n children: \"/transact/buy\"\n }), \" and\\n\", _jsx(_components.code, {\n children: \"/transact/sell\"\n }), \".\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Build an order","description":"Build a tokenized-**equity** (Ondo) buy/sell order; the product account is the\nmaker.\n\nReturns everything needed to place the order in one round-trip: a price quote,\na one-time token approval to sign (only until the settlement contract is\napproved), and the order payload the owner signs off-chain. Only the approval\never touches the chain — the signed order is relayed to market makers, never\nbroadcast. Equities only; RWA yield tokens use `/transact/buy` and\n`/transact/sell`.","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/order","href":"/v2/api-reference/tokenized-assets/build-an-order","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/compasslabs-f07467e0/27fd886bf35b6ed0/redeploy-trigger.js","/_mintlify/custom/compasslabs-f07467e0/5b350f94165e79a1/scripts/auth-btns.js","/_mintlify/custom/compasslabs-f07467e0/0c2ee6a003a69104/scripts/home-btn-link.js","/_mintlify/custom/compasslabs-f07467e0/17a3e2d25ff9b880/scripts/magic.js","/_mintlify/custom/compasslabs-f07467e0/2592024b81e4044f/scripts/modal.js","/_mintlify/custom/compasslabs-f07467e0/60b3db97b96f7d26/scripts/language-icon-fixer.js","/_mintlify/custom/compasslabs-f07467e0/60408501351ea2bb/scripts/disable-bundler-playground.js"],"openApiReferenceData":{"operation":{"tags":["Tokenized Assets"],"summary":"Build an order","description":"Build a tokenized-**equity** (Ondo) buy/sell order; the product account is the\nmaker.\n\nReturns everything needed to place the order in one round-trip: a price quote,\na one-time token approval to sign (only until the settlement contract is\napproved), and the order payload the owner signs off-chain. Only the approval\never touches the chain — the signed order is relayed to market makers, never\nbroadcast. Equities only; RWA yield tokens use `/transact/buy` and\n`/transact/sell`.","operationId":"v2_tokenized_assets_order","requestBody":"1dfcd781-7ded-4acb-b00d-4f0e8eaefd35","responses":{"200":"6019af5e-b7e5-4bbb-94d3-a0971e57f5f4","400":"4018ba06-ee61-4620-8f5e-f98185b920b4","404":"274654ff-9daa-4f05-b0f5-c38630fdebca","409":"1fad7c77-74a8-4717-8dd5-fa8211867d68","410":"79f15f51-81de-4363-90a5-4bf8c997162e","422":"6ef5b5e6-5a87-4cd3-af0f-0ceb9f184230","502":"58eec8ff-3323-4806-825d-b1ee48f0d24d"},"x-speakeasy-name-override":"tokenized_assets_order","x-codeSamples":[{"lang":"python","label":"Python (SDK)","source":"from compass_api_sdk import CompassAPI\n\n\nwith CompassAPI(\n api_key_auth=\"\u003cYOUR_API_KEY_HERE>\",\n) as compass_api:\n\n res = compass_api.tokenized_assets.tokenized_assets_order(from_token=\"\u003cvalue>\", to_token=\"\u003cvalue>\", amount=\"578.28\", owner=\"\u003cvalue>\", slippage_bps=50)\n\n # Handle response\n print(res)"},{"lang":"typescript","label":"Typescript (SDK)","source":"import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"\u003cYOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.tokenizedAssets.tokenizedAssetsOrder({\n fromToken: \"\u003cvalue>\",\n toToken: \"\u003cvalue>\",\n amount: \"578.28\",\n owner: \"\u003cvalue>\",\n slippageBps: 50,\n });\n\n console.log(result);\n}\n\nrun();"}],"method":"post","type":"path","servers":["5cc70962-0013-441d-bd6f-5cb484ceb892"],"security":["e89f6d8c-9ae7-44f6-91ab-c06b98b98bae"],"path":"/v2/tokenized_assets/order","baseUrlOptions":["https://api.compasslabs.ai"],"title":"Build an order","codeSamples":[{"label":"Python (SDK)","lang":"python","source":"from compass_api_sdk import CompassAPI\n\n\nwith CompassAPI(\n api_key_auth=\"\u003cYOUR_API_KEY_HERE>\",\n) as compass_api:\n\n res = compass_api.tokenized_assets.tokenized_assets_order(from_token=\"\u003cvalue>\", to_token=\"\u003cvalue>\", amount=\"578.28\", owner=\"\u003cvalue>\", slippage_bps=50)\n\n # Handle response\n print(res)"},{"label":"Typescript (SDK)","lang":"typescript","source":"import { CompassApiSDK } from \"@compass-labs/api-sdk\";\n\nconst compassApiSDK = new CompassApiSDK({\n apiKeyAuth: \"\u003cYOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await compassApiSDK.tokenizedAssets.tokenizedAssetsOrder({\n fromToken: \"\u003cvalue>\",\n toToken: \"\u003cvalue>\",\n amount: \"578.28\",\n owner: \"\u003cvalue>\",\n slippageBps: 50,\n });\n\n console.log(result);\n}\n\nrun();"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"from_token":{"type":"string","title":"Token","description":"Token the sender is paying. Either an on-chain symbol (e.g. `TSLAon`), the literal `USDC`, or a 0x-prefixed token address.","examples":["USDC","WETH","0xA0b86a33E6441ccF30EE5DdEF1E9b652C91ac1c8"],"isRequired":true,"uniqueKey":"from_token","typeLabel":"string"},"to_token":{"type":"string","title":"Token","description":"Token the sender is receiving. Same accepted forms as `from_token`.","examples":["USDC","WETH","0xA0b86a33E6441ccF30EE5DdEF1E9b652C91ac1c8"],"isRequired":true,"uniqueKey":"to_token","typeLabel":"string"},"amount":{"type":"string","title":"Amount","description":"Human-readable amount of `from_token` to swap (decimal string). Decimals are applied server-side.","isRequired":true,"uniqueKey":"amount","typeLabel":"string"},"owner":{"type":"string","title":"Owner","description":"Wallet that owns the Tokenized Assets Account. The product account address is derived deterministically from this owner. The owner signs the EIP-712 payloads returned by this endpoint (the optional approval and the order itself).","isRequired":true,"uniqueKey":"owner","typeLabel":"string"},"slippage_bps":{"type":"integer","maximum":5000,"minimum":1,"title":"Slippage Bps","description":"Max acceptable slippage in basis points (1 bp = 0.01%). Range 1-5000 (0.01%-50%); defaults to 50 (0.5%). The upper bound is intentionally wide so callers can clear the wide auction floors quoted for thinly-traded tokenized stocks.","default":50,"uniqueKey":"slippage_bps","typeLabel":"integer"}},"type":"object","required":["from_token","to_token","amount","owner"],"title":"TokenizedAssetsBuildOrderRequest","description":"Build a buy or sell order for a tokenized equity.","example":{"amount":"100","from_token":"USDC","owner":"0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B","slippage_bps":50,"to_token":"TSLAon"},"uniqueKey":"","typeLabel":"TokenizedAssetsBuildOrderRequest · object"},"examples":{"Example":{"title":"Example","value":{"amount":"100","from_token":"USDC","owner":"0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B","slippage_bps":50,"to_token":"TSLAon"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"6019af5e-b7e5-4bbb-94d3-a0971e57f5f4":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"quote":{"properties":{"input":{"properties":{"symbol":{"type":"string","title":"Symbol","description":"On-chain token symbol (e.g. `USDC`, `TSLAon`).","isRequired":true,"uniqueKey":"quote.input.symbol","typeLabel":"string"},"contract_address":{"type":"string","title":"Contract Address","description":"Ethereum mainnet ERC-20 address.","isRequired":true,"uniqueKey":"quote.input.contract_address","typeLabel":"string"},"amount":{"type":"string","title":"Amount","description":"Human-readable amount as a decimal string.","isRequired":true,"uniqueKey":"quote.input.amount","typeLabel":"string"},"amount_usd":{"oneOf":[{"type":"string","title":"Amount Usd","description":"USD value of `amount`.","uniqueKey":"quote.input.amount_usd.oneOf.0","typeLabel":"string"},{"type":"null","title":"Amount Usd","description":"USD value of `amount`.","uniqueKey":"quote.input.amount_usd.oneOf.1","typeLabel":"null"}],"uniqueKey":"quote.input.amount_usd","typeLabel":"string | null"}},"type":"object","required":["symbol","contract_address","amount"],"title":"TokenAmount","description":"Token the sender is paying.","isRequired":true,"uniqueKey":"quote.input","typeLabel":"TokenAmount · object"},"output":{"properties":{"symbol":{"type":"string","title":"Symbol","description":"On-chain token symbol (e.g. `USDC`, `TSLAon`).","isRequired":true,"uniqueKey":"quote.output.symbol","typeLabel":"string"},"contract_address":{"type":"string","title":"Contract Address","description":"Ethereum mainnet ERC-20 address.","isRequired":true,"uniqueKey":"quote.output.contract_address","typeLabel":"string"},"amount":{"type":"string","title":"Amount","description":"Human-readable amount as a decimal string.","isRequired":true,"uniqueKey":"quote.output.amount","typeLabel":"string"},"amount_usd":{"oneOf":[{"type":"string","title":"Amount Usd","description":"USD value of `amount`.","uniqueKey":"quote.output.amount_usd.oneOf.0","typeLabel":"string"},{"type":"null","title":"Amount Usd","description":"USD value of `amount`.","uniqueKey":"quote.output.amount_usd.oneOf.1","typeLabel":"null"}],"uniqueKey":"quote.output.amount_usd","typeLabel":"string | null"}},"type":"object","required":["symbol","contract_address","amount"],"title":"TokenAmount","description":"Token the sender is receiving.","isRequired":true,"uniqueKey":"quote.output","typeLabel":"TokenAmount · object"},"fee":{"properties":{"amount_usd":{"oneOf":[{"type":"string","title":"Amount Usd","description":"Total fee in USD as a decimal string.","uniqueKey":"quote.fee.amount_usd.oneOf.0","typeLabel":"string"},{"type":"null","title":"Amount Usd","description":"Total fee in USD as a decimal string.","uniqueKey":"quote.fee.amount_usd.oneOf.1","typeLabel":"null"}],"uniqueKey":"quote.fee.amount_usd","typeLabel":"string | null"},"bps":{"oneOf":[{"type":"integer","title":"Bps","description":"Fee as basis points of the input amount.","uniqueKey":"quote.fee.bps.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Bps","description":"Fee as basis points of the input amount.","uniqueKey":"quote.fee.bps.oneOf.1","typeLabel":"null"}],"uniqueKey":"quote.fee.bps","typeLabel":"integer | null"}},"type":"object","title":"QuoteFee","description":"Aggregate fee.","isRequired":true,"uniqueKey":"quote.fee","typeLabel":"QuoteFee · object"},"est_fill_seconds":{"type":"integer","title":"Est Fill Seconds","description":"Estimated upper bound on time-to-fill, in seconds.","isRequired":true,"uniqueKey":"quote.est_fill_seconds","typeLabel":"integer"}},"type":"object","required":["input","output","fee","est_fill_seconds"],"title":"Quote","description":"Preview of input/output amounts and fees for the proposed order.","isRequired":true,"uniqueKey":"quote","typeLabel":"Quote · object"},"order":{"properties":{"order_hash":{"type":"string","title":"Order Hash","description":"The on-chain order hash. Wrapped inside `safe_message_eip712.message.message` for the owner to sign; also passed back to `/order/submit` so the API can return a usable handle even if the upstream submit response omits the hash.","isRequired":true,"uniqueKey":"order.order_hash","typeLabel":"string"},"extension":{"type":"string","title":"Extension","description":"Opaque hex blob from the upstream quote — pass back to `/order/submit` unchanged.","isRequired":true,"uniqueKey":"order.extension","typeLabel":"string"},"quote_id":{"type":"string","title":"Quote Id","description":"Upstream quote identifier — must be echoed back at `/order/submit`.","isRequired":true,"uniqueKey":"order.quote_id","typeLabel":"string"},"order_message":{"additionalProperties":true,"type":"object","title":"Order Message","description":"Order struct (maker, makerAsset, makingAmount, etc.) — pass back to `/order/submit` unchanged. The maker is the Tokenized Equities Account, not the owner's wallet.","isRequired":true,"uniqueKey":"order.order_message","typeLabel":"Order Message · object"},"safe_message_eip712":{"properties":{"domain":{"properties":{"chainId":{"type":"integer","title":"Chainid","description":"Chain ID","isRequired":true,"uniqueKey":"order.safe_message_eip712.domain.chainId","typeLabel":"integer"},"verifyingContract":{"type":"string","title":"Verifyingcontract","description":"Address of the Product Account","isRequired":true,"uniqueKey":"order.safe_message_eip712.domain.verifyingContract","typeLabel":"string"}},"type":"object","required":["chainId","verifyingContract"],"title":"EIP712Domain","description":"EIP-712 domain separator.","isRequired":true,"uniqueKey":"order.safe_message_eip712.domain","typeLabel":"EIP712Domain · object"},"types":{"properties":{"EIP712Domain":{"items":{"properties":{"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"order.safe_message_eip712.types.EIP712Domain.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","title":"Type","isRequired":true,"uniqueKey":"order.safe_message_eip712.types.EIP712Domain.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["name","type"],"title":"EIP712DomainField","description":"A field in the EIP712Domain type definition.","uniqueKey":"order.safe_message_eip712.types.EIP712Domain.items.[INDEX]","typeLabel":"EIP712DomainField · object"},"type":"array","title":"Eip712Domain","description":"EIP712Domain type definition","isRequired":true,"uniqueKey":"order.safe_message_eip712.types.EIP712Domain","typeLabel":"EIP712DomainField · object[]"},"SafeMessage":{"items":{"properties":{"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"order.safe_message_eip712.types.SafeMessage.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","title":"Type","isRequired":true,"uniqueKey":"order.safe_message_eip712.types.SafeMessage.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["name","type"],"title":"SafeMessageField","description":"A field in the ``SafeMessage`` type definition.","uniqueKey":"order.safe_message_eip712.types.SafeMessage.items.[INDEX]","typeLabel":"SafeMessageField · object"},"type":"array","title":"Safemessage","description":"SafeMessage type definition","isRequired":true,"uniqueKey":"order.safe_message_eip712.types.SafeMessage","typeLabel":"SafeMessageField · object[]"}},"type":"object","required":["EIP712Domain","SafeMessage"],"title":"SafeMessageEip712Types","description":"EIP-712 type definitions.","isRequired":true,"uniqueKey":"order.safe_message_eip712.types","typeLabel":"SafeMessageEip712Types · object"},"primaryType":{"type":"string","const":"SafeMessage","title":"Primarytype","description":"Primary type for the structured data.","isRequired":true,"uniqueKey":"order.safe_message_eip712.primaryType","typeLabel":"string"},"message":{"properties":{"message":{"type":"string","title":"Message","description":"Raw bytes the product account is signing under ERC-1271. For a tokenized-asset order this is the 32-byte order hash.","isRequired":true,"uniqueKey":"order.safe_message_eip712.message.message","typeLabel":"string"}},"type":"object","required":["message"],"title":"SafeMessageMessage","description":"Message bytes the product account is signing.","isRequired":true,"uniqueKey":"order.safe_message_eip712.message","typeLabel":"SafeMessageMessage · object"}},"type":"object","required":["domain","types","primaryType","message"],"title":"SafeMessageEip712Response","description":"EIP-712 payload the owner signs off-chain to authorize the order. Sign with `wallet.signTypedData(...)` and submit the signature to `/order/submit`. This signature is never broadcast on-chain.","example":{"domain":{"chainId":1,"verifyingContract":"0x2ed5C9c14E1F8baA94CD3e9b5b6e3F8e3D27504F"},"message":{"message":"0x14459af3a06abf6f7a1234567890abcdef1234567890abcdef1234567890596b016a"},"primaryType":"SafeMessage","types":{"EIP712Domain":[{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"SafeMessage":[{"name":"message","type":"bytes"}]}},"isRequired":true,"uniqueKey":"order.safe_message_eip712","typeLabel":"SafeMessageEip712Response · object"}},"type":"object","required":["order_hash","extension","quote_id","order_message","safe_message_eip712"],"title":"OrderToSign","description":"Order metadata plus the EIP-712 payload to sign. The owner signs `order.safe_message_eip712` and submits the resulting signature to `/order/submit` along with the rest of the order fields.","isRequired":true,"uniqueKey":"order","typeLabel":"OrderToSign · object"},"approval_safe_tx_eip712":{"oneOf":[{"type":"object","title":"BatchedSafeOperationsResponse","description":"EIP-712 payload that authorizes a one-time max-approve of `from_token` to the settlement contract. Populated when the Tokenized Assets Account's existing allowance is below `amount`. The owner signs it, then it is broadcast via `POST /v2/gas_sponsorship/prepare` (or directly by the owner) to set the allowance on-chain. `null` when the allowance is already sufficient.","required":["domain","types","primaryType","message"],"example":{"domain":{"chainId":8453,"verifyingContract":"0x6B90E8B4E3E971E74C1A47a3a20976377E2dB4b1"},"message":{"baseGas":"0","data":"0x8d80ff0a0000000000000000000000000000000000000000000000000000000000000020","gasPrice":"0","gasToken":"0x0000000000000000000000000000000000000000","nonce":"7","operation":1,"refundReceiver":"0x0000000000000000000000000000000000000000","safeTxGas":"0","to":"0x93C23AAE4793C14D6DF35D2A2A2234204e1559dA","value":"0"},"primaryType":"SafeTx","types":{"EIP712Domain":[{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"SafeTx":[{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"},{"name":"operation","type":"uint8"},{"name":"safeTxGas","type":"uint256"},{"name":"baseGas","type":"uint256"},{"name":"gasPrice","type":"uint256"},{"name":"gasToken","type":"address"},{"name":"refundReceiver","type":"address"},{"name":"nonce","type":"uint256"}]}},"properties":{"domain":{"properties":{"chainId":{"type":"integer","title":"Chainid","description":"Chain ID","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.domain.chainId","typeLabel":"integer"},"verifyingContract":{"type":"string","title":"Verifyingcontract","description":"Address of the Product Account","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.domain.verifyingContract","typeLabel":"string"}},"type":"object","required":["chainId","verifyingContract"],"title":"EIP712Domain","description":"EIP-712 domain separator","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.domain","typeLabel":"EIP712Domain · object"},"types":{"properties":{"EIP712Domain":{"items":{"properties":{"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.types.EIP712Domain.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","title":"Type","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.types.EIP712Domain.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["name","type"],"title":"EIP712DomainField","description":"A field in the EIP712Domain type definition.","uniqueKey":"approval_safe_tx_eip712.oneOf.0.types.EIP712Domain.items.[INDEX]","typeLabel":"EIP712DomainField · object"},"type":"array","title":"Eip712Domain","description":"EIP712Domain type definition","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.types.EIP712Domain","typeLabel":"EIP712DomainField · object[]"},"SafeTx":{"items":{"properties":{"name":{"type":"string","title":"Name","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.types.SafeTx.items.[INDEX].name","typeLabel":"string"},"type":{"type":"string","title":"Type","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.types.SafeTx.items.[INDEX].type","typeLabel":"string"}},"type":"object","required":["name","type"],"title":"SafeTxField","description":"A field in the SafeTx type definition.","uniqueKey":"approval_safe_tx_eip712.oneOf.0.types.SafeTx.items.[INDEX]","typeLabel":"SafeTxField · object"},"type":"array","title":"Safetx","description":"SafeTx type definition","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.types.SafeTx","typeLabel":"SafeTxField · object[]"}},"type":"object","required":["EIP712Domain","SafeTx"],"title":"EIP712Types","description":"EIP-712 type definitions","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.types","typeLabel":"EIP712Types · object"},"primaryType":{"type":"string","const":"SafeTx","title":"Primarytype","description":"Primary type for the structured data","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.primaryType","typeLabel":"string"},"message":{"properties":{"to":{"type":"string","title":"To","description":"Destination address","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message.to","typeLabel":"string"},"value":{"type":"string","title":"Value","description":"Value in wei as a string","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message.value","typeLabel":"string"},"data":{"type":"string","title":"Data","description":"Transaction data as hex string","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message.data","typeLabel":"string"},"operation":{"type":"integer","enum":[0,1],"title":"OperationType","description":"Operation type (0=Call, 1=DelegateCall)","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message.operation","typeLabel":"enum\u003cinteger>"},"safeTxGas":{"type":"string","title":"Safetxgas","description":"Gas for the transaction","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message.safeTxGas","typeLabel":"string"},"baseGas":{"type":"string","title":"Basegas","description":"Base gas costs","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message.baseGas","typeLabel":"string"},"gasPrice":{"type":"string","title":"Gasprice","description":"Gas price","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message.gasPrice","typeLabel":"string"},"gasToken":{"type":"string","title":"Gastoken","description":"Token address for gas payment","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message.gasToken","typeLabel":"string"},"refundReceiver":{"type":"string","title":"Refundreceiver","description":"Address to receive gas refund","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message.refundReceiver","typeLabel":"string"},"nonce":{"type":"string","title":"Nonce","description":"Transaction nonce","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message.nonce","typeLabel":"string"}},"type":"object","required":["to","value","data","operation","safeTxGas","baseGas","gasPrice","gasToken","refundReceiver","nonce"],"title":"SafeTxMessage","description":"Safe transaction message data","isRequired":true,"uniqueKey":"approval_safe_tx_eip712.oneOf.0.message","typeLabel":"SafeTxMessage · object"}},"uniqueKey":"approval_safe_tx_eip712.oneOf.0","typeLabel":"BatchedSafeOperationsResponse · object"},{"type":"null","description":"EIP-712 payload that authorizes a one-time max-approve of `from_token` to the settlement contract. Populated when the Tokenized Assets Account's existing allowance is below `amount`. The owner signs it, then it is broadcast via `POST /v2/gas_sponsorship/prepare` (or directly by the owner) to set the allowance on-chain. `null` when the allowance is already sufficient.","uniqueKey":"approval_safe_tx_eip712.oneOf.1","typeLabel":"null"}],"uniqueKey":"approval_safe_tx_eip712","typeLabel":"BatchedSafeOperationsResponse · object | null"}},"type":"object","required":["quote","order"],"title":"TokenizedAssetsBuildOrderResponse","description":"Quote, optional approval payload, and the EIP-712 order to sign.","example":{"approval_safe_tx_eip712":{"domain":{"chainId":1,"verifyingContract":"0x2ed5C9c14E1F8baA94CD3e9b5b6e3F8e3D27504F"},"message":{"baseGas":"0","data":"0x095ea7b3000000000000000000000000111111125421ca6dc452d289314280a0f8842a65ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","gasPrice":"0","gasToken":"0x0000000000000000000000000000000000000000","nonce":"0","operation":0,"refundReceiver":"0x0000000000000000000000000000000000000000","safeTxGas":"0","to":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","value":"0"},"primaryType":"SafeTx","types":{"EIP712Domain":[{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"SafeTx":[{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"},{"name":"operation","type":"uint8"},{"name":"safeTxGas","type":"uint256"},{"name":"baseGas","type":"uint256"},{"name":"gasPrice","type":"uint256"},{"name":"gasToken","type":"address"},{"name":"refundReceiver","type":"address"},{"name":"nonce","type":"uint256"}]}},"order":{"extension":"0x000000a4000000a4000000a40000005200000000","order_hash":"0x14459af3a06abf6f7a0d3c2c1fa3b64d2e1b8a7c5e3d2b1f0a9876543210596b","order_message":{"maker":"0x2ed5C9c14E1F8baA94CD3e9b5b6e3F8e3D27504F","makerAsset":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","makerTraits":"0","makingAmount":"100000000","receiver":"0x399740157391a9f1bf4e9921a8834f9bc8f2678e","salt":"102030405060708090","takerAsset":"0xf6b1117ec07684D3958caD8BEb1b302bfD21103f","takingAmount":"281678000000000000"},"quote_id":"9afa6d80-9216-4bcd-b762-87151f9dae51","safe_message_eip712":{"domain":{"chainId":1,"verifyingContract":"0x2ed5C9c14E1F8baA94CD3e9b5b6e3F8e3D27504F"},"message":{"message":"0x14459af3a06abf6f7a0d3c2c1fa3b64d2e1b8a7c5e3d2b1f0a9876543210596b"},"primaryType":"SafeMessage","types":{"EIP712Domain":[{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"SafeMessage":[{"name":"message","type":"bytes"}]}}},"quote":{"est_fill_seconds":180,"fee":{"amount_usd":"0.06","bps":6},"input":{"amount":"100","amount_usd":"100.00","contract_address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","symbol":"USDC"},"output":{"amount":"0.281678","amount_usd":"99.94","contract_address":"0xf6b1117ec07684D3958caD8BEb1b302bfD21103f","symbol":"TSLAon"}}},"uniqueKey":"","typeLabel":"TokenizedAssetsBuildOrderResponse · object"},"examples":{"Example":{"title":"Example","value":{"approval_safe_tx_eip712":{"domain":{"chainId":1,"verifyingContract":"0x2ed5C9c14E1F8baA94CD3e9b5b6e3F8e3D27504F"},"message":{"baseGas":"0","data":"0x095ea7b3000000000000000000000000111111125421ca6dc452d289314280a0f8842a65ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","gasPrice":"0","gasToken":"0x0000000000000000000000000000000000000000","nonce":"0","operation":0,"refundReceiver":"0x0000000000000000000000000000000000000000","safeTxGas":"0","to":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","value":"0"},"primaryType":"SafeTx","types":{"EIP712Domain":[{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"SafeTx":[{"name":"to","type":"address"},{"name":"value","type":"uint256"},{"name":"data","type":"bytes"},{"name":"operation","type":"uint8"},{"name":"safeTxGas","type":"uint256"},{"name":"baseGas","type":"uint256"},{"name":"gasPrice","type":"uint256"},{"name":"gasToken","type":"address"},{"name":"refundReceiver","type":"address"},{"name":"nonce","type":"uint256"}]}},"order":{"extension":"0x000000a4000000a4000000a40000005200000000","order_hash":"0x14459af3a06abf6f7a0d3c2c1fa3b64d2e1b8a7c5e3d2b1f0a9876543210596b","order_message":{"maker":"0x2ed5C9c14E1F8baA94CD3e9b5b6e3F8e3D27504F","makerAsset":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","makerTraits":"0","makingAmount":"100000000","receiver":"0x399740157391a9f1bf4e9921a8834f9bc8f2678e","salt":"102030405060708090","takerAsset":"0xf6b1117ec07684D3958caD8BEb1b302bfD21103f","takingAmount":"281678000000000000"},"quote_id":"9afa6d80-9216-4bcd-b762-87151f9dae51","safe_message_eip712":{"domain":{"chainId":1,"verifyingContract":"0x2ed5C9c14E1F8baA94CD3e9b5b6e3F8e3D27504F"},"message":{"message":"0x14459af3a06abf6f7a0d3c2c1fa3b64d2e1b8a7c5e3d2b1f0a9876543210596b"},"primaryType":"SafeMessage","types":{"EIP712Domain":[{"name":"chainId","type":"uint256"},{"name":"verifyingContract","type":"address"}],"SafeMessage":[{"name":"message","type":"bytes"}]}}},"quote":{"est_fill_seconds":180,"fee":{"amount_usd":"0.06","bps":6},"input":{"amount":"100","amount_usd":"100.00","contract_address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","symbol":"USDC"},"output":{"amount":"0.281678","amount_usd":"99.94","contract_address":"0xf6b1117ec07684D3958caD8BEb1b302bfD21103f","symbol":"TSLAon"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"4018ba06-ee61-4620-8f5e-f98185b920b4":{"description":"`Tokenized Assets Account not deployed` — the requesting `owner` does not have a Tokenized Assets Account on Ethereum mainnet. Call `POST /v2/tokenized_assets/create_account` first.","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Short human-readable error label (e.g. `Market not found.`, `Insufficient liquidity`, `Order not found.`).","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation.","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"type":"object","required":["error","message"],"title":"TokenizedAssetsErrorResponse","description":"Standard error envelope returned by every non-2xx response.\n\nSurfaced in OpenAPI ``responses`` declarations so SDK consumers can decode\nfailures uniformly without inspecting per-status-code shapes.","uniqueKey":"","typeLabel":"TokenizedAssetsErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"274654ff-9daa-4f05-b0f5-c38630fdebca":{"description":"`Market not found.` — `from_token`/`to_token` is unsupported.","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Short human-readable error label (e.g. `Market not found.`, `Insufficient liquidity`, `Order not found.`).","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation.","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"type":"object","required":["error","message"],"title":"TokenizedAssetsErrorResponse","description":"Standard error envelope returned by every non-2xx response.\n\nSurfaced in OpenAPI ``responses`` declarations so SDK consumers can decode\nfailures uniformly without inspecting per-status-code shapes.","uniqueKey":"","typeLabel":"TokenizedAssetsErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"1fad7c77-74a8-4717-8dd5-fa8211867d68":{"description":"`Insufficient liquidity` — no market maker could fill the trade. Try a different size or retry shortly.","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Short human-readable error label (e.g. `Market not found.`, `Insufficient liquidity`, `Order not found.`).","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation.","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"type":"object","required":["error","message"],"title":"TokenizedAssetsErrorResponse","description":"Standard error envelope returned by every non-2xx response.\n\nSurfaced in OpenAPI ``responses`` declarations so SDK consumers can decode\nfailures uniformly without inspecting per-status-code shapes.","uniqueKey":"","typeLabel":"TokenizedAssetsErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"79f15f51-81de-4363-90a5-4bf8c997162e":{"description":"`Quote expired` — re-quote and retry.","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Short human-readable error label (e.g. `Market not found.`, `Insufficient liquidity`, `Order not found.`).","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation.","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"type":"object","required":["error","message"],"title":"TokenizedAssetsErrorResponse","description":"Standard error envelope returned by every non-2xx response.\n\nSurfaced in OpenAPI ``responses`` declarations so SDK consumers can decode\nfailures uniformly without inspecting per-status-code shapes.","uniqueKey":"","typeLabel":"TokenizedAssetsErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"6ef5b5e6-5a87-4cd3-af0f-0ceb9f184230":{"description":"`Wrong trade flow` — an RWA yield token (mTBILL/mBASIS/mBTC) was passed to this equity order endpoint; use `/transact/buy` or `/transact/sell` instead. **or** `Slippage exceeded` — the on-chain auction may fill below the requested `slippage_bps` tolerance; raise `slippage_bps` or pick a more liquid market. (Standard 422 input-validation errors use FastAPI's default `{detail: [...]}` shape; both labels above use the Compass envelope.)","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Short human-readable error label (e.g. `Market not found.`, `Insufficient liquidity`, `Order not found.`).","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation.","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"type":"object","required":["error","message"],"title":"TokenizedAssetsErrorResponse","description":"Standard error envelope returned by every non-2xx response.\n\nSurfaced in OpenAPI ``responses`` declarations so SDK consumers can decode\nfailures uniformly without inspecting per-status-code shapes.","uniqueKey":"","typeLabel":"TokenizedAssetsErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"58eec8ff-3323-4806-825d-b1ee48f0d24d":{"description":"`Swap service unavailable` — the swap service is temporarily unavailable.","content":{"application/json":{"schema":{"properties":{"error":{"type":"string","title":"Error","description":"Short human-readable error label (e.g. `Market not found.`, `Insufficient liquidity`, `Order not found.`).","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","title":"Message","description":"Human-readable explanation.","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"type":"object","required":["error","message"],"title":"TokenizedAssetsErrorResponse","description":"Standard error envelope returned by every non-2xx response.\n\nSurfaced in OpenAPI ``responses`` declarations so SDK consumers can decode\nfailures uniformly without inspecting per-status-code shapes.","uniqueKey":"","typeLabel":"TokenizedAssetsErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","message":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e89f6d8c-9ae7-44f6-91ab-c06b98b98bae":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your Compass API Key. Get your key [here](https://www.compasslabs.ai/dashboard).","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"5cc70962-0013-441d-bd6f-5cb484ceb892":{"url":"https://api.compasslabs.ai","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your Compass API Key. Get your key [here](https://www.compasslabs.ai/dashboard).","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"Your Compass API Key. Get your key [here](https://www.compasslabs.ai/dashboard).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"v2/combined_spec.json"},"subdomain":"compasslabs-f07467e0","siteName":"Compass API Docs","title":"Build an order - Compass API Docs","navMaps":{"firstHrefInVersion":{"V2":{"href":"/v2/api-reference/tokenized-assets/build-an-order","matchLevel":0},"V1":{"href":"/v1/api-reference/aave-v3/aave-supported-tokens","matchLevel":2}},"firstHrefInLanguage":{}},"lastModified":"2026-11-05T13:11:30.974Z","originalFileLocation":"v2/api-reference/tokenized-assets/build-an-order.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Build a tokenized-equity (Ondo) buy/sell order; the product account is the maker. Returns everything needed to place the order in one round-trip: a price quote, a one-time token approval to sign (only until the settlement contract is approved), and the order payload the owner signs off-chain. Only the approval ever touches the chain — the signed order is relayed to market makers, never broadcast. Equities only; RWA yield tokens use /transact/buy and /transact/sell.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Compass API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/compasslabs-f07467e0/CejAEahS9T_GZmf_/_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/compasslabs-f07467e0/CejAEahS9T_GZmf_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/compasslabs-f07467e0/CejAEahS9T_GZmf_/_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/compasslabs-f07467e0/CejAEahS9T_GZmf_/_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/compasslabs-f07467e0/CejAEahS9T_GZmf_/_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/compasslabs-f07467e0/CejAEahS9T_GZmf_/_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/compasslabs-f07467e0/CejAEahS9T_GZmf_/_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/compasslabs-f07467e0/CejAEahS9T_GZmf_/_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/compasslabs-f07467e0/CejAEahS9T_GZmf_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Build an order - Compass API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Build a tokenized-equity (Ondo) buy/sell order; the product account is the maker. Returns everything needed to place the order in one round-trip: a price quote, a one-time token approval to sign (only until the settlement contract is approved), and the order payload the owner signs off-chain. Only the approval ever touches the chain — the signed order is relayed to market makers, never broadcast. Equities only; RWA yield tokens use /transact/buy and /transact/sell.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Compass API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/build-an-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://compasslabs-f07467e0.mintlify.site/_mintlify/api/og/v2?division=Tokenized+Assets\u0026amp;title=Build+an+order\u0026amp;description=Build+a+tokenized-**equity**+%28Ondo%29+buy%2Fsell+order%3B+the+product+account+is+the%0Amaker.%0A%0AReturns+everything+needed+to+place+the+order+in+one+round-trip%3A+a+price+q\u0026amp;theme=3dbf73b4b3dd364abd493b9c\u0026amp;signature=484a7e1fe7bf4b5921a9986a6a8398f32ae0e42e55fd1e855a314717568d6e12\">\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=\"Build an order - Compass API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Build a tokenized-equity (Ondo) buy/sell order; the product account is the maker. Returns everything needed to place the order in one round-trip: a price quote, a one-time token approval to sign (only until the settlement contract is approved), and the order payload the owner signs off-chain. Only the approval ever touches the chain — the signed order is relayed to market makers, never broadcast. Equities only; RWA yield tokens use /transact/buy and /transact/sell.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://compasslabs-f07467e0.mintlify.site/_mintlify/api/og/v2?division=Tokenized+Assets\u0026amp;title=Build+an+order\u0026amp;description=Build+a+tokenized-**equity**+%28Ondo%29+buy%2Fsell+order%3B+the+product+account+is+the%0Amaker.%0A%0AReturns+everything+needed+to+place+the+order+in+one+round-trip%3A+a+price+q\u0026amp;theme=3dbf73b4b3dd364abd493b9c\u0026amp;signature=484a7e1fe7bf4b5921a9986a6a8398f32ae0e42e55fd1e855a314717568d6e12\">\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/compasslabs-f07467e0/CejAEahS9T_GZmf_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Compass API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0284c7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/build-an-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v2/api-reference/tokenized-assets/build-an-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.compasslabs.ai/#organization\",\"name\":\"Compass API Docs\",\"url\":\"https://docs.compasslabs.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/compasslabs-f07467e0/x2NrFgZ7soJbH6sc/logo/light.svg?fit=max\u0026auto=format\u0026n=x2NrFgZ7soJbH6sc\u0026q=85\u0026s=80a04b06674000990914306c6a833cb9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.compasslabs.ai#website\",\"name\":\"Compass API Docs\",\"url\":\"https://docs.compasslabs.ai\",\"publisher\":{\"@id\":\"https://docs.compasslabs.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/build-an-order#webpage\",\"url\":\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/build-an-order\",\"name\":\"Build an order\",\"description\":\"Build a tokenized-equity (Ondo) buy/sell order; the product account is the maker. Returns everything needed to place the order in one round-trip: a price quote, a one-time token approval to sign (only until the settlement contract is approved), and the order payload the owner signs off-chain. Only the approval ever touches the chain — the signed order is relayed to market makers, never broadcast. Equities only; RWA yield tokens use /transact/buy and /transact/sell.\",\"dateModified\":\"2026-11-05T13:11:30.974Z\",\"isPartOf\":{\"@id\":\"https://docs.compasslabs.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/build-an-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/build-an-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.compasslabs.ai/v2/api-reference/gas-sponsorship/prepare-gas-sponsored-transaction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tokenized Assets\",\"item\":\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/list-markets\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Build an order\",\"item\":\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/build-an-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/build-an-order#apireference\",\"headline\":\"Build an order\",\"name\":\"Build an order\",\"description\":\"Build a tokenized-equity (Ondo) buy/sell order; the product account is the maker. Returns everything needed to place the order in one round-trip: a price quote, a one-time token approval to sign (only until the settlement contract is approved), and the order payload the owner signs off-chain. Only the approval ever touches the chain — the signed order is relayed to market makers, never broadcast. Equities only; RWA yield tokens use /transact/buy and /transact/sell.\",\"url\":\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/build-an-order\",\"mainEntityOfPage\":{\"@id\":\"https://docs.compasslabs.ai/v2/api-reference/tokenized-assets/build-an-order#webpage\"},\"dateModified\":\"2026-11-05T13:11:30.974Z\",\"publisher\":{\"@id\":\"https://docs.compasslabs.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.compasslabs.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Compass API Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Compass API Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v2/api-reference/tokenized-assets/build-an-order.md","siteName":"Compass API Docs","nav":{"global":{"tabs":[],"anchors":[]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/v2/get_started/overview"}]},{"tab":"API Reference","versions":[{"version":"V2","groups":[{"group":"API Reference","pages":[{"group":"Gas Sponsorship","pages":[{"title":"Prepare gas-sponsored transaction","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/gas_sponsorship/prepare","href":"/v2/api-reference/gas-sponsorship/prepare-gas-sponsored-transaction"},{"title":"Approve token transfer","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/gas_sponsorship/approve_transfer","href":"/v2/api-reference/gas-sponsorship/approve-token-transfer"}]},{"group":"Earn","pages":[{"title":"List earn positions","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/earn/positions","href":"/v2/api-reference/earn/list-earn-positions"},{"title":"List earn positions across all chains","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/earn/positions_all","href":"/v2/api-reference/earn/list-earn-positions-across-all-chains"},{"title":"List vaults","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/earn/vaults","href":"/v2/api-reference/earn/list-vaults"},{"title":"List aave markets","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/earn/aave_markets","href":"/v2/api-reference/earn/list-aave-markets"},{"title":"List pendle markets","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/earn/pendle_markets","href":"/v2/api-reference/earn/list-pendle-markets"},{"title":"List maple pools","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/earn/maple_pools","href":"/v2/api-reference/earn/list-maple-pools"},{"title":"Quote a swap","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/earn/swap_quote","href":"/v2/api-reference/earn/quote-a-swap"},{"title":"Get token balances","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/earn/balances","href":"/v2/api-reference/earn/get-token-balances"},{"title":"Create earn account","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/earn/create_account","href":"/v2/api-reference/earn/create-earn-account"},{"title":"Transfer tokens to/from account","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/earn/transfer","href":"/v2/api-reference/earn/transfer-tokens-tofrom-account"},{"title":"Manage earn position","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/earn/manage","href":"/v2/api-reference/earn/manage-earn-position"},{"title":"Swap tokens","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/earn/swap","href":"/v2/api-reference/earn/swap-tokens"},{"title":"Execute multiple earn actions","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/earn/bundle","href":"/v2/api-reference/earn/execute-multiple-earn-actions"}]},{"group":"Bridge","pages":[{"title":"Initiate USDC bridging","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/cctp/burn","href":"/v2/api-reference/bridge/initiate-usdc-bridging"},{"title":"Complete USDC bridging","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/cctp/mint","href":"/v2/api-reference/bridge/complete-usdc-bridging"}]},{"group":"Credit","pages":[{"title":"List credit positions","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/credit/positions","href":"/v2/api-reference/credit/list-credit-positions"},{"title":"Get credit account token balances","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/credit/balances","href":"/v2/api-reference/credit/get-credit-account-token-balances"},{"title":"List looped (leveraged) credit positions","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/credit/looped_positions","href":"/v2/api-reference/credit/list-looped-leveraged-credit-positions"},{"title":"List Euler markets","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/credit/euler_markets","href":"/v2/api-reference/credit/list-euler-markets"},{"title":"List Morpho markets","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/credit/morpho_markets","href":"/v2/api-reference/credit/list-morpho-markets"},{"title":"List Aave markets","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/credit/aave_markets","href":"/v2/api-reference/credit/list-aave-markets"},{"title":"Create credit account","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/credit/create_account","href":"/v2/api-reference/credit/create-credit-account"},{"title":"Borrow against collateral","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/credit/borrow","href":"/v2/api-reference/credit/borrow-against-collateral"},{"title":"Open a leveraged loop","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/credit/loop","href":"/v2/api-reference/credit/open-a-leveraged-loop"},{"title":"Unwind a leveraged loop","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/credit/unloop","href":"/v2/api-reference/credit/unwind-a-leveraged-loop"},{"title":"Rebalance the leveraged credit book","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/credit/rebalance","href":"/v2/api-reference/credit/rebalance-the-leveraged-credit-book"},{"title":"Transfer tokens to/from Credit Account","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/credit/transfer","href":"/v2/api-reference/credit/transfer-tokens-tofrom-credit-account"},{"title":"Swap tokens","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/credit/swap","href":"/v2/api-reference/credit/swap-tokens"},{"title":"Repay debt and withdraw collateral","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/credit/repay","href":"/v2/api-reference/credit/repay-debt-and-withdraw-collateral"},{"title":"Execute multiple credit actions","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/credit/bundle","href":"/v2/api-reference/credit/execute-multiple-credit-actions"}]},{"group":"Perpetual Trading","pages":[{"title":"List perpetual trading markets","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/perpetual_trading/opportunities","href":"/v2/api-reference/perpetual-trading/list-perpetual-trading-markets"},{"title":"List perpetual trading positions","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/perpetual_trading/positions","href":"/v2/api-reference/perpetual-trading/list-perpetual-trading-positions"},{"title":"Get OHLCV candles","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/perpetual_trading/candles","href":"/v2/api-reference/perpetual-trading/get-ohlcv-candles"},{"title":"Aggregated Hyperliquid activity for a user","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/perpetual_trading/activity","href":"/v2/api-reference/perpetual-trading/aggregated-hyperliquid-activity-for-a-user"},{"title":"Deposit USDC to perpetual trading account","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/deposit","href":"/v2/api-reference/perpetual-trading/deposit-usdc-to-perpetual-trading-account"},{"title":"Build the Bridge2 deposit tx from a signed permit","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/deposit/sponsor_prepare","href":"/v2/api-reference/perpetual-trading/build-the-bridge2-deposit-tx-from-a-signed-permit"},{"title":"Withdraw USDC from perpetual trading account","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/withdraw","href":"/v2/api-reference/perpetual-trading/withdraw-usdc-from-perpetual-trading-account"},{"title":"Place market order","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/market_order","href":"/v2/api-reference/perpetual-trading/place-market-order"},{"title":"Place limit order","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/limit_order","href":"/v2/api-reference/perpetual-trading/place-limit-order"},{"title":"Cancel order","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/cancel_order","href":"/v2/api-reference/perpetual-trading/cancel-order"},{"title":"Execute signed action","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/execute","href":"/v2/api-reference/perpetual-trading/execute-signed-action"},{"title":"Approve builder fee","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/approve_builder_fee","href":"/v2/api-reference/perpetual-trading/approve-builder-fee"},{"title":"Enable unified account mode","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/enable_unified_account","href":"/v2/api-reference/perpetual-trading/enable-unified-account-mode"},{"title":"Ensure 1x cross leverage","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/ensure_leverage","href":"/v2/api-reference/perpetual-trading/ensure-1x-cross-leverage"},{"title":"Set leverage (defaults to market maximum)","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/perpetual_trading/set_leverage","href":"/v2/api-reference/perpetual-trading/set-leverage-defaults-to-market-maximum"}]},{"group":"Tokenized Assets","pages":[{"title":"List markets","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/tokenized_assets/markets","href":"/v2/api-reference/tokenized-assets/list-markets"},{"title":"Get a market","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/tokenized_assets/markets/{symbol}","href":"/v2/api-reference/tokenized-assets/get-a-market"},{"title":"List positions","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/tokenized_assets/positions","href":"/v2/api-reference/tokenized-assets/list-positions"},{"title":"Get token balances","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/tokenized_assets/balances","href":"/v2/api-reference/tokenized-assets/get-token-balances"},{"title":"Get order status","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/tokenized_assets/order/{order_hash}","href":"/v2/api-reference/tokenized-assets/get-order-status"},{"title":"List redemption requests","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json get /v2/tokenized_assets/redemptions","href":"/v2/api-reference/tokenized-assets/list-redemption-requests"},{"title":"Create account","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/create_account","href":"/v2/api-reference/tokenized-assets/create-account"},{"title":"Transfer tokens to/from account","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/transfer","href":"/v2/api-reference/tokenized-assets/transfer-tokens-tofrom-account"},{"title":"Quote an order","description":"Preview a buy/sell quote for a tokenized **equity** (Ondo, e.g. `TSLAon`).\n\nRead-only price preview: returns the expected input/output amounts and a\nsystem-recommended slippage tolerance to carry into `/order`. Equities only —\nRWA yield tokens (Midas) have no quote step and are rejected with `422 Wrong\ntrade flow`; trade them via `/transact/buy` and `/transact/sell`.","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/quote","href":"/v2/api-reference/tokenized-assets/quote-an-order"},{"title":"Build an order","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/order","href":"/v2/api-reference/tokenized-assets/build-an-order"},{"title":"Submit a signed order","description":"Submit a signed equity order to the market-maker network for settlement.\n\nRelays the payload from `/order` plus the owner's signature, and returns the\norder hash. Poll `GET /order/{order_hash}` to track its lifecycle (`pending` →\n`filled` / `expired` / `cancelled`).","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/order/submit","href":"/v2/api-reference/tokenized-assets/submit-a-signed-order"},{"title":"Cancel an order","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/order/{order_hash}/cancel","href":"/v2/api-reference/tokenized-assets/cancel-an-order"},{"title":"Charge a partner fee","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/order/{order_hash}/charge_fee","href":"/v2/api-reference/tokenized-assets/charge-a-partner-fee"},{"title":"Buy an RWA yield token","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/transact/buy","href":"/v2/api-reference/tokenized-assets/buy-an-rwa-yield-token"},{"title":"Sell an RWA yield token","deprecated":null,"version":null,"openapi":"/v2/combined_spec.json post /v2/tokenized_assets/transact/sell","href":"/v2/api-reference/tokenized-assets/sell-an-rwa-yield-token"}]}]}]},{"version":"V1","pages":[{"title":"V1","href":"/v1/api-reference/aave-v3/aave-supported-tokens"}]}]}]},"basePath":"","title":"Build an order - Compass API Docs","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}