Additional SOL (in lamports) for ATA creation and account initialization. Recommended 12000000; the actual requirement may be lower, and any unused amount is refunded. Can be provided as a string or a number
A digital signature of 'By signing, I hereby agree to Vanish's Terms of Service and agree to be bound by them (docs.vanish.trade/legal/TOS)
Details: trade:{source_token_address}:{target_token_address}:{amount}:{loan_additional_sol}:{timestamp}:{jito_tip_amount}', signed by the user's wallet.
Number of trading accounts the purchased tokens are distributed across. Lower values keep the transaction smaller and work better with prefer_non_jito. Use 1 unless amount_out exceeds 0.5% of token supply.
When provided, prioritizes single-transaction (non-Jito) routing, using the supplied priority fee fields. Works best with low split_repay values, since smaller transactions are likelier to fit in one transaction.
Serialized single‐tx trade body for non‐Jito route; null if Jito bundle used.
⌘I
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Vanish Core Documentation","colors":{"primary":"#038d96","light":"#00dae9","dark":"#00dae9"},"logo":{"light":"https://mintcdn.com/vanish/3FR7Q4Es6PxIO6RY/logo/black.png?fit=max\u0026auto=format\u0026n=3FR7Q4Es6PxIO6RY\u0026q=85\u0026s=837483a250a04b6814c81102da6f19e1","dark":"https://mintcdn.com/vanish/_Xn3Lkosod_bqrcT/logo/dark.svg?fit=max\u0026auto=format\u0026n=_Xn3Lkosod_bqrcT\u0026q=85\u0026s=dd4b13b6bf38b859142c0acd7fb6f8b6"},"favicon":"https://mintcdn.com/vanish/_Xn3Lkosod_bqrcT/favicon.svg?fit=max\u0026auto=format\u0026n=_Xn3Lkosod_bqrcT\u0026q=85\u0026s=42e5419e46d9b21a0334afdd3df5e233","api":{"playground":{"proxy":false}},"navbar":{"links":[{"href":"https://discord.gg/vanishtrade","label":"Discord"}],"primary":{"type":"button","label":"Start Trading","href":"https://vanish.trade"}},"footer":{"socials":{"x":"https://x.com/vanishTrade","discord":"https://discord.gg/vanishtrade","website":"https://vanish.trade"}},"interaction":{"drilldown":false},"metadata":{"timestamp":false},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vanish","hasAudioNarration":false,"actualSubdomain":"vanish","customDomains":["core.vanish.trade"],"gitSource":{"type":"github","owner":"gekovn","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aaf56870a5e154bbd51d3ec","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Documentation","count":27},{"language":"default","tag":"Guides","count":9},{"language":"default","tag":"Lending","count":6},{"language":"default","tag":"Integration","count":4},{"language":"default","tag":"Account","count":3},{"language":"default","tag":"Quickstart","count":3},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Fund Management","count":2},{"language":"default","tag":"Trade","count":2},{"language":"default","tag":"Commit Action","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","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},{"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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--vanish-content-width: 72rem}@media (min-width: 1024px){#content-area,#content{max-width:var(--vanish-content-width)}}"}],"page":{"pagePath":"api-reference/trade/create","slug":"/api-reference/trade/create","pageMetadata":{"title":"Create Trade","openapi":"POST /trade/create","og:image":"/banner2.jpg","description":"Creates a user's trade transaction; supports both Jito and non-Jito routing based on parameters.","href":"/api-reference/trade/create"},"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: \"Creates a user’s trade transaction; supports both Jito and non-Jito routing based on parameters.\"\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":{"config":{},"pageMetadata":{"title":"Create Trade","openapi":"POST /trade/create","og:image":"/banner2.jpg","description":"Creates a user's trade transaction; supports both Jito and non-Jito routing based on parameters.","href":"/api-reference/trade/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Creates a user's trade transaction; supports both Jito and non-Jito routing based on parameters.","requestBody":"dc7458de-7cfa-40c9-b069-932b1c740118","responses":{"200":"6b4b500c-d84b-4e31-8915-8d8e9732d03b","401":"dbf44d81-d7eb-4ca1-a61d-feff8f277a66","500":"eb438c34-ebbd-408d-9cc2-23e37c358230"},"method":"post","type":"path","servers":["ed61ba1a-f710-46be-b897-f4f7ef220c6b"],"security":["6a461bbb-50c1-462f-900f-35213a27c463"],"path":"/trade/create","baseUrlOptions":["https://core-api-dev.vanish.trade"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{},"requestBody":{"description":"Details of the trade request.","content":{"application/json":{"schema":{"required":["user_address","source_token_address","target_token_address","amount","swap_transaction","loan_wallet_address","loan_additional_sol","timestamp","user_signature","split_repay","jito_tip_amount","one_time_wallet"],"type":"object","properties":{"user_address":{"description":"The wallet address of the user making the trade.","type":"string","isRequired":true,"uniqueKey":"user_address","typeLabel":"string"},"source_token_address":{"description":"The address of the token being traded (source token).","type":"string","isRequired":true,"uniqueKey":"source_token_address","typeLabel":"string"},"target_token_address":{"description":"The address of the token the user wants to receive (target token).","type":"string","isRequired":true,"uniqueKey":"target_token_address","typeLabel":"string"},"amount":{"oneOf":[{"type":"string","description":"The amount of the source token to be traded, expressed in the smallest unit (e.g., lamports for SOL). Can be provided as a string or a number","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"amount.oneOf.0","typeLabel":"string"},{"type":"integer","description":"The amount of the source token to be traded, expressed in the smallest unit (e.g., lamports for SOL). Can be provided as a string or a number","format":"int64","isRequired":true,"uniqueKey":"amount.oneOf.1","typeLabel":"integer\u003cint64>"}],"isRequired":true,"uniqueKey":"amount","typeLabel":"string | integer\u003cint64>"},"jito_tip_amount":{"oneOf":[{"type":"string","description":"The amount of Jito tip, expressed in the smallest unit (e.g., lamports for SOL). Can be provided as a string or a number","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"jito_tip_amount.oneOf.0","typeLabel":"string"},{"type":"integer","description":"The amount of Jito tip, expressed in the smallest unit (e.g., lamports for SOL). Can be provided as a string or a number","format":"int64","isRequired":true,"uniqueKey":"jito_tip_amount.oneOf.1","typeLabel":"integer\u003cint64>"}],"isRequired":true,"uniqueKey":"jito_tip_amount","typeLabel":"string | integer\u003cint64>"},"swap_transaction":{"description":"Serialized or encoded swap transaction data. The transaction must be provided unsigned.","type":"string","isRequired":true,"uniqueKey":"swap_transaction","typeLabel":"string"},"loan_additional_sol":{"oneOf":[{"type":"string","description":"Additional SOL (in lamports) for ATA creation and account initialization. Recommended 12000000; the actual requirement may be lower, and any unused amount is refunded. Can be provided as a string or a number","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"loan_additional_sol.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Additional SOL (in lamports) for ATA creation and account initialization. Recommended 12000000; the actual requirement may be lower, and any unused amount is refunded. Can be provided as a string or a number","format":"int64","isRequired":true,"uniqueKey":"loan_additional_sol.oneOf.1","typeLabel":"integer\u003cint64>"}],"isRequired":true,"uniqueKey":"loan_additional_sol","typeLabel":"string | integer\u003cint64>"},"timestamp":{"oneOf":[{"type":"string","description":"Unix timestamp of when the trade was initiated (in milliseconds). Can be provided as a string or a number","pattern":"^[0-9]+$","isRequired":true,"uniqueKey":"timestamp.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Unix timestamp of when the trade was initiated (in milliseconds). Can be provided as a string or a number","format":"int64","isRequired":true,"uniqueKey":"timestamp.oneOf.1","typeLabel":"integer\u003cint64>"}],"isRequired":true,"uniqueKey":"timestamp","typeLabel":"string | integer\u003cint64>"},"user_signature":{"description":"A digital signature of 'By signing, I hereby agree to Vanish's Terms of Service and agree to be bound by them (docs.vanish.trade/legal/TOS)\n\nDetails: trade:{source_token_address}:{target_token_address}:{amount}:{loan_additional_sol}:{timestamp}:{jito_tip_amount}', signed by the user's wallet.","type":"string","isRequired":true,"uniqueKey":"user_signature","typeLabel":"string"},"split_repay":{"description":"Number of trading accounts the purchased tokens are distributed across. Lower values keep the transaction smaller and work better with prefer_non_jito. Use 1 unless amount_out exceeds 0.5% of token supply.","type":"integer","format":"uint8","maximum":10,"isRequired":true,"uniqueKey":"split_repay","typeLabel":"integer\u003cuint8>"},"one_time_wallet":{"description":"The wallet address for the swap transaction, returned by the /trade/one-time-wallet endpoint.","type":"string","isRequired":true,"uniqueKey":"one_time_wallet","typeLabel":"string"},"prefer_non_jito":{"type":"object","properties":{"compute_unit_price":{"oneOf":[{"type":"string","description":"Optional fee per compute unit to set priority fee.","pattern":"^[0-9]+$","uniqueKey":"prefer_non_jito.compute_unit_price.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Optional fee per compute unit to set priority fee.","format":"int64","uniqueKey":"prefer_non_jito.compute_unit_price.oneOf.1","typeLabel":"integer\u003cint64>"}],"uniqueKey":"prefer_non_jito.compute_unit_price","typeLabel":"string | integer\u003cint64>"},"compute_unit_limit":{"oneOf":[{"type":"string","description":"Optional compute unit limit.","pattern":"^[0-9]+$","uniqueKey":"prefer_non_jito.compute_unit_limit.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Optional compute unit limit.","format":"int32","uniqueKey":"prefer_non_jito.compute_unit_limit.oneOf.1","typeLabel":"integer\u003cint32>"}],"uniqueKey":"prefer_non_jito.compute_unit_limit","typeLabel":"string | integer\u003cint32>"},"custom_tip_address":{"type":"string","description":"Optional Pubkey to receive the custom tip.","uniqueKey":"prefer_non_jito.custom_tip_address","typeLabel":"string"},"custom_tip_amount":{"oneOf":[{"type":"string","description":"Optional tip amount (in lamports) to send to the custom_tip_address.","pattern":"^[0-9]+$","uniqueKey":"prefer_non_jito.custom_tip_amount.oneOf.0","typeLabel":"string"},{"type":"integer","description":"Optional tip amount (in lamports) to send to the custom_tip_address.","format":"int64","uniqueKey":"prefer_non_jito.custom_tip_amount.oneOf.1","typeLabel":"integer\u003cint64>"}],"uniqueKey":"prefer_non_jito.custom_tip_amount","typeLabel":"string | integer\u003cint64>"}},"description":"When provided, prioritizes single-transaction (non-Jito) routing, using the supplied priority fee fields. Works best with low split_repay values, since smaller transactions are likelier to fit in one transaction.","uniqueKey":"prefer_non_jito","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"user_address":"\u003cstring>","source_token_address":"\u003cstring>","target_token_address":"\u003cstring>","amount":"\u003cstring>","jito_tip_amount":"\u003cstring>","swap_transaction":"\u003cstring>","loan_additional_sol":"\u003cstring>","timestamp":"\u003cstring>","user_signature":"\u003cstring>","split_repay":9,"one_time_wallet":"\u003cstring>","prefer_non_jito":{"compute_unit_price":"\u003cstring>","compute_unit_limit":"\u003cstring>","custom_tip_address":"\u003cstring>","custom_tip_amount":"\u003cstring>"}}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"6b4b500c-d84b-4e31-8915-8d8e9732d03b":{"description":"Successful trade transaction data response.","content":{"application/json":{"schema":{"required":["tx_id"],"type":"object","properties":{"tx_id":{"description":"Transaction ID of the (possibly bundled) trade.","type":"string","isRequired":true,"uniqueKey":"tx_id","typeLabel":"string"},"jito_bundle_id":{"oneOf":[{"description":"If routed via Jito bundle, its bundle ID; otherwise null.","type":"string","uniqueKey":"jito_bundle_id.oneOf.0","typeLabel":"string"},{"description":"If routed via Jito bundle, its bundle ID; otherwise null.","type":"null","uniqueKey":"jito_bundle_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"jito_bundle_id","typeLabel":"string | null"},"transaction":{"oneOf":[{"description":"Serialized single‐tx trade body for non‐Jito route; null if Jito bundle used.","type":"string","uniqueKey":"transaction.oneOf.0","typeLabel":"string"},{"description":"Serialized single‐tx trade body for non‐Jito route; null if Jito bundle used.","type":"null","uniqueKey":"transaction.oneOf.1","typeLabel":"null"}],"uniqueKey":"transaction","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"tx_id":"\u003cstring>","jito_bundle_id":"\u003cstring>","transaction":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"dbf44d81-d7eb-4ca1-a61d-feff8f277a66":{"description":"Unauthorized. The request is missing a valid API key or the signature is invalid.","content":{"application/json":{"schema":{"description":"API key is missing or invalid","uniqueKey":"","typeLabel":"any"},"examples":{"Example":{"title":"Example","value":"\u003cunknown>"}},"exampleType":"generated"}},"exampleType":"generated"},"eb438c34-ebbd-408d-9cc2-23e37c358230":{"description":"Internal server error.","content":{"application/json":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"6a461bbb-50c1-462f-900f-35213a27c463":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[]}}},"servers":{"ed61ba1a-f710-46be-b897-f4f7ef220c6b":{"url":"https://core-api-dev.vanish.trade"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[]},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"vanish","siteName":"Vanish Core Documentation","title":"Create Trade - Vanish Core Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-27T15:05:12.003Z","originalFileLocation":"api-reference/trade/create.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=\"Creates a user\u0026#x27;s trade transaction; supports both Jito and non-Jito routing based on parameters.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Vanish Core Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vanish/9s8o44Sm2nyTBjGl/_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/vanish/9s8o44Sm2nyTBjGl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vanish/9s8o44Sm2nyTBjGl/_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/vanish/9s8o44Sm2nyTBjGl/_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/vanish/9s8o44Sm2nyTBjGl/_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/vanish/9s8o44Sm2nyTBjGl/_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/vanish/9s8o44Sm2nyTBjGl/_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/vanish/9s8o44Sm2nyTBjGl/_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/vanish/9s8o44Sm2nyTBjGl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Trade - Vanish Core Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a user\u0026#x27;s trade transaction; supports both Jito and non-Jito routing based on parameters.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Vanish Core Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://core.vanish.trade/api-reference/trade/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vanish.mintlify.site/banner2.jpg\">\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=\"Create Trade - Vanish Core Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a user\u0026#x27;s trade transaction; supports both Jito and non-Jito routing based on parameters.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vanish.mintlify.site/banner2.jpg\">\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/vanish/9s8o44Sm2nyTBjGl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Vanish Core Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#038d96\">\u003clink data-mint-head rel=\"canonical\" href=\"https://core.vanish.trade/api-reference/trade/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/trade/create.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://core.vanish.trade/#organization\",\"name\":\"Vanish Core Documentation\",\"url\":\"https://core.vanish.trade\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vanish/3FR7Q4Es6PxIO6RY/logo/black.png?fit=max\u0026auto=format\u0026n=3FR7Q4Es6PxIO6RY\u0026q=85\u0026s=837483a250a04b6814c81102da6f19e1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://core.vanish.trade#website\",\"name\":\"Vanish Core Documentation\",\"url\":\"https://core.vanish.trade\",\"publisher\":{\"@id\":\"https://core.vanish.trade/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://core.vanish.trade/api-reference/trade/create#webpage\",\"url\":\"https://core.vanish.trade/api-reference/trade/create\",\"name\":\"Create Trade\",\"description\":\"Creates a user's trade transaction; supports both Jito and non-Jito routing based on parameters.\",\"dateModified\":\"2026-03-27T15:05:12.003Z\",\"isPartOf\":{\"@id\":\"https://core.vanish.trade#website\"},\"breadcrumb\":{\"@id\":\"https://core.vanish.trade/api-reference/trade/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://core.vanish.trade/api-reference/trade/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trade\",\"item\":\"https://core.vanish.trade/api-reference/trade/one-time-wallet\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Trade\",\"item\":\"https://core.vanish.trade/api-reference/trade/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://core.vanish.trade/api-reference/trade/create#apireference\",\"headline\":\"Create Trade\",\"name\":\"Create Trade\",\"description\":\"Creates a user's trade transaction; supports both Jito and non-Jito routing based on parameters.\",\"url\":\"https://core.vanish.trade/api-reference/trade/create\",\"mainEntityOfPage\":{\"@id\":\"https://core.vanish.trade/api-reference/trade/create#webpage\"},\"image\":\"https://core.vanish.trade/banner2.jpg\",\"dateModified\":\"2026-03-27T15:05:12.003Z\",\"publisher\":{\"@id\":\"https://core.vanish.trade/#organization\"},\"isPartOf\":{\"@id\":\"https://core.vanish.trade#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Vanish Core Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Vanish Core Documentation","nav":{"global":null,"tabs":[{"tab":"API Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","icon":"hand","mode":"wide","href":"/start/introduction"},{"title":"Compliance","icon":"file-contract","mode":"wide","href":"/start/compliance"},{"title":"Security","icon":"tower-observation","mode":"wide","href":"/start/security"}]},{"group":"Guides","pages":[{"group":"Quickstart","icon":"bolt","pages":[{"title":"Setup","icon":"wrench","href":"/guide/quickstart/setup"},{"title":"Trade","icon":"arrow-right-arrow-left","href":"/guide/quickstart/trade"},{"title":"Lend","icon":"building-columns","href":"/guide/quickstart/lend"}]},{"group":"Integration","icon":"sitemap","pages":[{"title":"Overview","icon":"sitemap","href":"/guide/integration/overview"},{"title":"Signing","icon":"signature","href":"/guide/integration/signing"},{"title":"Trading","icon":"arrow-right-arrow-left","href":"/guide/integration/trading"},{"title":"Lending","icon":"building-columns","href":"/guide/integration/lending"}]},{"title":"Error Handling","icon":"triangle-exclamation","href":"/guide/handling"},{"title":"FAQ","icon":"circle-question","href":"/guide/faq"}]},{"group":"Health Check","pages":[{"title":"Health Check","openapi":"GET /health","href":"/api-reference/health"}]},{"group":"Account","pages":[{"title":"Get Balances","openapi":"POST /account/balances","href":"/api-reference/account/get_balances"},{"title":"Get Points","openapi":"POST /account/points","href":"/api-reference/account/get_points"},{"title":"Get Pending Actions","openapi":"POST /account/pending","href":"/api-reference/account/get_pending_actions"}]},{"group":"Fund Management","pages":[{"title":"Get Deposit Address","openapi":"GET /deposit_address","href":"/api-reference/funds/deposit_address"},{"title":"Withdraw","openapi":"POST /withdraw/create","href":"/api-reference/funds/withdraw"}]},{"group":"Trade","pages":[{"title":"Get One-Time Wallet","openapi":"GET /trade/one-time-wallet","description":"Retrieves a one-time wallet address to be used for making a swap route.","href":"/api-reference/trade/one-time-wallet"},{"title":"Create Trade","openapi":"POST /trade/create","href":"/api-reference/trade/create"}]},{"group":"Lending","pages":[{"title":"Create One-Time Wallet","sidebarTitle":"Create Wallet","openapi":"POST /borrow/smart-wallet","description":"Creates the one-time wallet a lending position lives in; the returned `smart_wallet_id` identifies that position on later calls.","href":"/api-reference/lending/smart-wallet"},{"title":"Open Position","openapi":"POST /borrow/initiate","href":"/api-reference/lending/initiate"},{"title":"Commit Lending Action","sidebarTitle":"Commit Lending","openapi":"POST /borrow/commit","href":"/api-reference/lending/commit"},{"title":"Settle Position","openapi":"POST /borrow/settle","href":"/api-reference/lending/settle"},{"title":"Get Positions","openapi":"POST /borrow/positions","href":"/api-reference/lending/positions"},{"title":"Get Pending Lending Actions","sidebarTitle":"Get Pending Actions","openapi":"POST /borrow/pending","href":"/api-reference/lending/pending"}]},{"group":"Commit Action","pages":[{"title":"Commit Action","openapi":"POST /commit","href":"/api-reference/commit"}]}]}]},"basePath":"","title":"Create Trade - Vanish Core Documentation","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}