Legacy whole-contract sell quantity (only when isBuy is false). Cannot express fractions; prefer contractsMicro or contractsDecimal. Provide only one of contracts, contractsMicro, or contractsDecimal.
Execution model for the order. atomic_swap for Jupiter Forecast (bisonfi) orders, which execute as a single atomic swap through POST /execute. null for keeper-filled prediction orders.
Jupiter swap request id when the order executes as a swap (Jupiter Forecast). null otherwise.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Jupiter Developers","colors":{"primary":"#00BEF0","light":"#C7F284","dark":"#000000"},"logo":{"light":"https://mintcdn.com/jupiter/mrenEfoqnubhOTHf/logo/logo.png?fit=max\u0026auto=format\u0026n=mrenEfoqnubhOTHf\u0026q=85\u0026s=e745e60a4186bc382d3d5d9bdff9273a","dark":"https://mintcdn.com/jupiter/mrenEfoqnubhOTHf/logo/logo.png?fit=max\u0026auto=format\u0026n=mrenEfoqnubhOTHf\u0026q=85\u0026s=e745e60a4186bc382d3d5d9bdff9273a","href":"https://developers.jup.ag/"},"favicon":"https://mintcdn.com/jupiter/mrenEfoqnubhOTHf/favicon.png?fit=max\u0026auto=format\u0026n=mrenEfoqnubhOTHf\u0026q=85\u0026s=453e41111d621d16c4f196f9e772ce58","api":{"playground":{"display":"interactive"}},"appearance":{"default":"dark"},"navbar":{"primary":{"type":"button","label":"Dashboard","href":"https://developers.jup.ag/portal"}},"footer":{"socials":{"x":"https://x.com/JupiterExchange","discord":"https://discord.gg/jup","telegram":"https://t.me/jup_dev","github":"https://github.com/jup-ag","youtube":"https://www.youtube.com/@JupiterOnchain"},"links":[{"items":[{"label":"Support","href":"/docs/resources/support"},{"label":"Guidelines","href":"/docs/legal"},{"label":"Legal","href":"/docs/legal/sdk-api-license-agreement"},{"label":"Brand Kit","href":"/docs/resources/brand-kit"},{"label":"Status","href":"https://status.jup.ag"}]}]},"seo":{"metatags":{"og:image":"/logo/og.png","og:type":"website","og:site_name":"Jupiter Developers","twitter:card":"summary_large_image","twitter:site":"@JupiterExchange","twitter:image":"/logo/og.png","keywords":"Jupiter, Jupiter Developer Platform, Jupiter API, Jupiter SDK, Solana API, Solana swap API, Solana price API, Solana token API, prediction market API, Solana DeFi API, crypto API, Jupiter Swap, Jupiter Ultra, Jupiter Lend, Jupiter Perps, Jupiter Studio, Jupiter Plugin, Jupiter Wallet Kit, Jupiter Referral Program"}},"banner":{"content":"Manage your API keys, billing, and usage on the [**Developer Platform**](https://developers.jup.ag/portal). Questions? Reach us via [**Support**](/docs/resources/support)."},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"jupiter","hasAudioNarration":false,"actualSubdomain":"jupiter","customDomains":["developers.jup.ag"],"gitSource":{"type":"github","owner":"jup-ag","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aef297ac11f500273005720","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Docs","count":193},{"language":"default","tag":"API Reference","count":77},{"language":"default","tag":"Lend","count":64},{"language":"default","tag":"Prediction","count":44},{"language":"default","tag":"LO \u0026 DCA","count":30},{"language":"default","tag":"Swap","count":27},{"language":"default","tag":"Get Started","count":25},{"language":"default","tag":"More","count":23},{"language":"default","tag":"Resources","count":21},{"language":"default","tag":"Earn","count":18}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"th{color:black!important}.dark th{color:white!important}@media screen and (min-width: 768px){#banner button,#banner [aria-label*=\"close\"],#banner [aria-label*=\"dismiss\"],#banner [data-dismiss],#banner button[type=\"button\"]{display:none!important}}@media screen and (max-width: 767px){[data-radix-menu-content]{max-height:80vh!important}}@media screen and (min-width: 768px){[data-radix-menu-content]{max-height:600px!important}}"}],"page":{"pagePath":"api-reference/prediction/create-order","slug":"/api-reference/prediction/create-order","pageMetadata":{"openapi":"openapi-spec/prediction/prediction.yaml post /orders","title":"Create Order (Prediction API)","sidebarTitle":"Create Order","description":"Request an unsigned transaction to create a new order","llmsDescription":"POST /orders endpoint of the Jupiter Prediction Market API at api.jup.ag/prediction/v1/orders. Builds an unsigned transaction that buys or sells YES or NO contracts on a market. Body: isBuy (required), ownerPubkey, marketId or positionPubkey, isYes, size as contracts, contractsMicro or contractsDecimal, optional depositAmount and depositMint. Returns transaction, txMeta, externalOrderId, requiredSigners, execution (with the context to pass to /execute), executionModel, settlement, jupiterSwapRequestId and order. Sign the transaction, then submit it with POST /execute.","href":"/api-reference/prediction/create-order"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Request an unsigned transaction to create a new order\"\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":{"openapi":"openapi-spec/prediction/prediction.yaml post /orders","title":"Create Order (Prediction API)","sidebarTitle":"Create Order","description":"Request an unsigned transaction to create a new order","llmsDescription":"POST /orders endpoint of the Jupiter Prediction Market API at api.jup.ag/prediction/v1/orders. Builds an unsigned transaction that buys or sells YES or NO contracts on a market. Body: isBuy (required), ownerPubkey, marketId or positionPubkey, isYes, size as contracts, contractsMicro or contractsDecimal, optional depositAmount and depositMint. Returns transaction, txMeta, externalOrderId, requiredSigners, execution (with the context to pass to /execute), executionModel, settlement, jupiterSwapRequestId and order. Sign the transaction, then submit it with POST /execute.","href":"/api-reference/prediction/create-order"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/jupiter/5d1fbe037184af90/generate-llms-from-docs.js","/docs/_mintlify/custom/jupiter/4b0472a73cb92cca/check-redirects.js"],"openApiReferenceData":{"operation":{"tags":["Orders"],"summary":"Create order","description":"Request an unsigned transaction to create a new order","requestBody":"1d88c927-3f2f-4fb9-a630-f6a022d5ecf7","responses":{"200":"a1b586e6-f04b-4cc2-90db-cf63f54cf3bc","400":"70ed9518-b758-4982-b1de-21d20304f892"},"method":"post","type":"path","servers":["575bafd4-7b69-409f-9b3d-9f47da9e9236"],"security":["0e8c4b64-20a8-4863-8bd3-89422f6e5427"],"path":"/orders","baseUrlOptions":["https://api.jup.ag/prediction/v1"],"title":"Create order","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"isBuy":{"type":"boolean","description":"`true` to buy contracts, `false` to sell.","isRequired":true,"uniqueKey":"isBuy","typeLabel":"boolean"},"ownerPubkey":{"type":"string","description":"Order owner public key","uniqueKey":"ownerPubkey","typeLabel":"string"},"marketId":{"type":"string","minLength":1,"description":"Hashed or canonical market ID for buys","uniqueKey":"marketId","typeLabel":"string"},"positionPubkey":{"type":"string","minLength":32,"description":"Required for sells","uniqueKey":"positionPubkey","typeLabel":"string"},"isYes":{"type":"boolean","description":"`true` to trade YES contracts, `false` for NO.","uniqueKey":"isYes","typeLabel":"boolean"},"contracts":{"oneOf":[{"type":"string","description":"Legacy whole-contract sell quantity (only when `isBuy` is `false`). Cannot express fractions; prefer contractsMicro or contractsDecimal. Provide only one of contracts, contractsMicro, or contractsDecimal.","uniqueKey":"contracts.oneOf.0","typeLabel":"string"},{"type":"number","description":"Legacy whole-contract sell quantity (only when `isBuy` is `false`). Cannot express fractions; prefer contractsMicro or contractsDecimal. Provide only one of contracts, contractsMicro, or contractsDecimal.","uniqueKey":"contracts.oneOf.1","typeLabel":"number"}],"uniqueKey":"contracts","typeLabel":"string | number"},"contractsMicro":{"oneOf":[{"type":"string","description":"Exact sell quantity in micro-contract units (1000000 = 1 contract). Provide only one of contracts, contractsMicro, or contractsDecimal.","uniqueKey":"contractsMicro.oneOf.0","typeLabel":"string"},{"type":"number","description":"Exact sell quantity in micro-contract units (1000000 = 1 contract). Provide only one of contracts, contractsMicro, or contractsDecimal.","uniqueKey":"contractsMicro.oneOf.1","typeLabel":"number"}],"uniqueKey":"contractsMicro","typeLabel":"string | number"},"contractsDecimal":{"oneOf":[{"type":"string","description":"Exact sell quantity as a decimal (e.g. 5.777773). Provide only one of contracts, contractsMicro, or contractsDecimal.","uniqueKey":"contractsDecimal.oneOf.0","typeLabel":"string"},{"type":"number","description":"Exact sell quantity as a decimal (e.g. 5.777773). Provide only one of contracts, contractsMicro, or contractsDecimal.","uniqueKey":"contractsDecimal.oneOf.1","typeLabel":"number"}],"uniqueKey":"contractsDecimal","typeLabel":"string | number"},"depositAmount":{"oneOf":[{"type":"string","description":"Amount must conform to the token decimals used by the token mint in `depositMint`","uniqueKey":"depositAmount.oneOf.0","typeLabel":"string"},{"type":"number","description":"Amount must conform to the token decimals used by the token mint in `depositMint`","uniqueKey":"depositAmount.oneOf.1","typeLabel":"number"}],"uniqueKey":"depositAmount","typeLabel":"string | number"},"depositMint":{"type":"string","default":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","description":"Mint address for the deposit token","uniqueKey":"depositMint","typeLabel":"string"}},"required":["isBuy"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"isBuy":true,"ownerPubkey":"\u003cstring>","marketId":"\u003cstring>","positionPubkey":"\u003cstring>","isYes":true,"contracts":"\u003cstring>","contractsMicro":"\u003cstring>","contractsDecimal":"\u003cstring>","depositAmount":"\u003cstring>","depositMint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"a1b586e6-f04b-4cc2-90db-cf63f54cf3bc":{"description":"Unsigned transaction for creating an order","content":{"application/json":{"schema":{"type":"object","properties":{"transaction":{"oneOf":[{"type":"string","description":"Base64 encoded transaction","isRequired":true,"uniqueKey":"transaction.oneOf.0","typeLabel":"string"},{"type":"null","description":"Base64 encoded transaction","isRequired":true,"uniqueKey":"transaction.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"transaction","typeLabel":"string | null"},"txMeta":{"oneOf":[{"type":"object","properties":{"blockhash":{"type":"string","isRequired":true,"uniqueKey":"txMeta.oneOf.0.blockhash","typeLabel":"string"},"lastValidBlockHeight":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"txMeta.oneOf.0.lastValidBlockHeight","typeLabel":"integer"}},"required":["blockhash","lastValidBlockHeight"],"description":"Transaction metadata","isRequired":true,"uniqueKey":"txMeta.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"blockhash":{"type":"string"},"lastValidBlockHeight":{"type":"integer","minimum":0}},"required":["blockhash","lastValidBlockHeight"],"description":"Transaction metadata","isRequired":true,"uniqueKey":"txMeta.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"txMeta","typeLabel":"object | null"},"externalOrderId":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"externalOrderId.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"externalOrderId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"externalOrderId","typeLabel":"string | null"},"order":{"type":"object","properties":{"orderPubkey":{"oneOf":[{"type":"string","description":"Order account public key","isRequired":true,"uniqueKey":"order.orderPubkey.oneOf.0","typeLabel":"string"},{"type":"null","description":"Order account public key","isRequired":true,"uniqueKey":"order.orderPubkey.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"order.orderPubkey","typeLabel":"string | null"},"orderAtaPubkey":{"oneOf":[{"type":"string","description":"Order escrow token account","isRequired":true,"uniqueKey":"order.orderAtaPubkey.oneOf.0","typeLabel":"string"},{"type":"null","description":"Order escrow token account","isRequired":true,"uniqueKey":"order.orderAtaPubkey.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"order.orderAtaPubkey","typeLabel":"string | null"},"userPubkey":{"type":"string","description":"Order owner public key","isRequired":true,"uniqueKey":"order.userPubkey","typeLabel":"string"},"marketId":{"type":"string","description":"Associated market identifier","isRequired":true,"uniqueKey":"order.marketId","typeLabel":"string"},"marketIdHash":{"type":"string","description":"Hashed market identifier used for on-chain PDAs","isRequired":true,"uniqueKey":"order.marketIdHash","typeLabel":"string"},"positionPubkey":{"type":"string","description":"Position PDA used for the order","isRequired":true,"uniqueKey":"order.positionPubkey","typeLabel":"string"},"isBuy":{"type":"boolean","description":"True when the order increases exposure","isRequired":true,"uniqueKey":"order.isBuy","typeLabel":"boolean"},"isYes":{"type":"boolean","description":"True when the order is on the YES side","isRequired":true,"uniqueKey":"order.isYes","typeLabel":"boolean"},"contracts":{"type":"string","description":"Legacy whole-contract quantity. Use contractsMicro or contractsDecimal for the exact fractional quantity.","isRequired":true,"uniqueKey":"order.contracts","typeLabel":"string"},"newContracts":{"type":"string","description":"Position contracts after executing the order (legacy whole-contract quantity)","isRequired":true,"uniqueKey":"order.newContracts","typeLabel":"string"},"maxBuyPriceUsd":{"oneOf":[{"type":"string","description":"Max fill price for buys (micro USD)","isRequired":true,"uniqueKey":"order.maxBuyPriceUsd.oneOf.0","typeLabel":"string"},{"type":"null","description":"Max fill price for buys (micro USD)","isRequired":true,"uniqueKey":"order.maxBuyPriceUsd.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"order.maxBuyPriceUsd","typeLabel":"string | null"},"minSellPriceUsd":{"oneOf":[{"type":"string","description":"Min fill price for sells (micro USD)","isRequired":true,"uniqueKey":"order.minSellPriceUsd.oneOf.0","typeLabel":"string"},{"type":"null","description":"Min fill price for sells (micro USD)","isRequired":true,"uniqueKey":"order.minSellPriceUsd.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"order.minSellPriceUsd","typeLabel":"string | null"},"externalOrderId":{"oneOf":[{"type":"string","description":"Client provided order identifier","isRequired":true,"uniqueKey":"order.externalOrderId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Client provided order identifier","isRequired":true,"uniqueKey":"order.externalOrderId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"order.externalOrderId","typeLabel":"string | null"},"orderCostUsd":{"type":"string","description":"Notional for this order in micro USD","isRequired":true,"uniqueKey":"order.orderCostUsd","typeLabel":"string"},"newAvgPriceUsd":{"type":"string","description":"Average position entry price after the order","isRequired":true,"uniqueKey":"order.newAvgPriceUsd","typeLabel":"string"},"newSizeUsd":{"type":"string","description":"Total position cost basis after the order","isRequired":true,"uniqueKey":"order.newSizeUsd","typeLabel":"string"},"newPayoutUsd":{"type":"string","description":"Position max payout after the order","isRequired":true,"uniqueKey":"order.newPayoutUsd","typeLabel":"string"},"estimatedProtocolFeeUsd":{"type":"string","description":"Estimated protocol fee (micro USD)","isRequired":true,"uniqueKey":"order.estimatedProtocolFeeUsd","typeLabel":"string"},"estimatedVenueFeeUsd":{"type":"string","description":"Estimated venue fee (micro USD)","isRequired":true,"uniqueKey":"order.estimatedVenueFeeUsd","typeLabel":"string"},"estimatedTotalFeeUsd":{"type":"string","description":"Estimated total fees applied (micro USD)","isRequired":true,"uniqueKey":"order.estimatedTotalFeeUsd","typeLabel":"string"},"contractsMicro":{"type":"string","description":"Contracts in micro-contract units (u64 as string, 1000000 = 1 contract)","uniqueKey":"order.contractsMicro","typeLabel":"string"},"contractsDecimal":{"type":"string","description":"Contracts as a decimal string","uniqueKey":"order.contractsDecimal","typeLabel":"string"},"newContractsMicro":{"type":"string","description":"Position contracts after the order, in micro-contract units","uniqueKey":"order.newContractsMicro","typeLabel":"string"},"newContractsDecimal":{"type":"string","description":"Position contracts after the order, as a decimal string","uniqueKey":"order.newContractsDecimal","typeLabel":"string"},"payoutUsd":{"type":"string","description":"Position max payout for this order (micro USD)","uniqueKey":"order.payoutUsd","typeLabel":"string"},"slippageBps":{"type":"integer","minimum":0,"description":"Estimated slippage for this order, in basis points (0 = none, 250 = 2.5%). For a Polymarket buy this is the estimated price impact from sweeping orderbook levels; for a sell it is the max allowed slippage from best bid to the protected sell floor. Treat it as a quote signal, not a guaranteed loss.","uniqueKey":"order.slippageBps","typeLabel":"integer"},"maxSlippageBps":{"oneOf":[{"type":"integer","minimum":0,"description":"Maximum slippage allowed for this order, in basis points","uniqueKey":"order.maxSlippageBps.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":0,"description":"Maximum slippage allowed for this order, in basis points","uniqueKey":"order.maxSlippageBps.oneOf.1","typeLabel":"null"}],"uniqueKey":"order.maxSlippageBps","typeLabel":"integer | null"}},"required":["orderPubkey","orderAtaPubkey","userPubkey","marketId","marketIdHash","positionPubkey","isBuy","isYes","contracts","newContracts","maxBuyPriceUsd","minSellPriceUsd","externalOrderId","orderCostUsd","newAvgPriceUsd","newSizeUsd","newPayoutUsd","estimatedProtocolFeeUsd","estimatedVenueFeeUsd","estimatedTotalFeeUsd"],"isRequired":true,"uniqueKey":"order","typeLabel":"object"},"requiredSigners":{"type":"array","items":{"type":"string","uniqueKey":"requiredSigners.items.[INDEX]","typeLabel":"string"},"description":"Public keys that must sign the returned transaction","uniqueKey":"requiredSigners","typeLabel":"string[]"},"execution":{"type":"object","description":"Execution details returned with an order build. Sign the build's `transaction`, then pass `context` unchanged to `POST /execute`.","properties":{"endpoint":{"type":"string","description":"Relative execute path. Resolves to `https://api.jup.ag/prediction/v1/execute`.","example":"/api/v1/execute","isRequired":true,"uniqueKey":"execution.endpoint","typeLabel":"string"},"context":{"type":"object","additionalProperties":true,"description":"Opaque execution context. Pass this object unchanged to `POST /execute`. Includes a `type` field (`create_order` for keeper-filled orders, `bisonfi_swap` for Jupiter Forecast orders).","isRequired":true,"uniqueKey":"execution.context","typeLabel":"object"}},"required":["endpoint","context"],"uniqueKey":"execution","typeLabel":"object"},"executionModel":{"oneOf":[{"type":"string","description":"Execution model for the order. `atomic_swap` for Jupiter Forecast (bisonfi) orders, which execute as a single atomic swap through `POST /execute`. `null` for keeper-filled prediction orders.","uniqueKey":"executionModel.oneOf.0","typeLabel":"string"},{"type":"null","description":"Execution model for the order. `atomic_swap` for Jupiter Forecast (bisonfi) orders, which execute as a single atomic swap through `POST /execute`. `null` for keeper-filled prediction orders.","uniqueKey":"executionModel.oneOf.1","typeLabel":"null"}],"uniqueKey":"executionModel","typeLabel":"string | null"},"settlement":{"oneOf":[{"type":"string","description":"Settlement mode. `auto` for Jupiter Forecast orders, which settle automatically. `null` for keeper-filled prediction orders.","uniqueKey":"settlement.oneOf.0","typeLabel":"string"},{"type":"null","description":"Settlement mode. `auto` for Jupiter Forecast orders, which settle automatically. `null` for keeper-filled prediction orders.","uniqueKey":"settlement.oneOf.1","typeLabel":"null"}],"uniqueKey":"settlement","typeLabel":"string | null"},"jupiterSwapRequestId":{"oneOf":[{"type":"string","description":"Jupiter swap request id when the order executes as a swap (Jupiter Forecast). `null` otherwise.","uniqueKey":"jupiterSwapRequestId.oneOf.0","typeLabel":"string"},{"type":"null","description":"Jupiter swap request id when the order executes as a swap (Jupiter Forecast). `null` otherwise.","uniqueKey":"jupiterSwapRequestId.oneOf.1","typeLabel":"null"}],"uniqueKey":"jupiterSwapRequestId","typeLabel":"string | null"}},"required":["transaction","txMeta","externalOrderId","order"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"transaction":"\u003cstring>","txMeta":{"blockhash":"\u003cstring>","lastValidBlockHeight":1},"externalOrderId":"\u003cstring>","order":{"orderPubkey":"\u003cstring>","orderAtaPubkey":"\u003cstring>","userPubkey":"\u003cstring>","marketId":"\u003cstring>","marketIdHash":"\u003cstring>","positionPubkey":"\u003cstring>","isBuy":true,"isYes":true,"contracts":"\u003cstring>","newContracts":"\u003cstring>","maxBuyPriceUsd":"\u003cstring>","minSellPriceUsd":"\u003cstring>","externalOrderId":"\u003cstring>","orderCostUsd":"\u003cstring>","newAvgPriceUsd":"\u003cstring>","newSizeUsd":"\u003cstring>","newPayoutUsd":"\u003cstring>","estimatedProtocolFeeUsd":"\u003cstring>","estimatedVenueFeeUsd":"\u003cstring>","estimatedTotalFeeUsd":"\u003cstring>","contractsMicro":"\u003cstring>","contractsDecimal":"\u003cstring>","newContractsMicro":"\u003cstring>","newContractsDecimal":"\u003cstring>","payoutUsd":"\u003cstring>","slippageBps":1,"maxSlippageBps":1},"requiredSigners":["\u003cstring>"],"execution":{"endpoint":"/api/v1/execute","context":{}},"executionModel":"\u003cstring>","settlement":"\u003cstring>","jupiterSwapRequestId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"70ed9518-b758-4982-b1de-21d20304f892":{"description":"Invalid request parameters","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","idempotency_error","rate_limit_error","api_error"],"isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"request_id":{"type":"string","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"code":{"type":"string","uniqueKey":"code","typeLabel":"string"},"param":{"type":"string","uniqueKey":"param","typeLabel":"string"},"doc_url":{"type":"string","uniqueKey":"doc_url","typeLabel":"string"}},"required":["type","message","request_id"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"invalid_request_error","message":"\u003cstring>","request_id":"\u003cstring>","code":"\u003cstring>","param":"\u003cstring>","doc_url":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"0e8c4b64-20a8-4863-8bd3-89422f6e5427":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Get API key via https://developers.jup.ag/portal","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"575bafd4-7b69-409f-9b3d-9f47da9e9236":{"url":"https://api.jup.ag/prediction/v1","description":"Jupiter Prediction Market API Endpoint"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Get API key via https://developers.jup.ag/portal","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"Get API key via https://developers.jup.ag/portal","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi-spec/prediction/prediction.yaml"},"subdomain":"jupiter","siteName":"Jupiter Developers","title":"Create Order (Prediction API) - Jupiter Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-02T07:38:25.012Z","originalFileLocation":"api-reference/prediction/create-order.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=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Request an unsigned transaction to create a new order\">\u003cmeta data-mint-head name=\"keywords\" content=\"Jupiter, Jupiter Developer Platform, Jupiter API, Jupiter SDK, Solana API, Solana swap API, Solana price API, Solana token API, prediction market API, Solana DeFi API, crypto API, Jupiter Swap, Jupiter Ultra, Jupiter Lend, Jupiter Perps, Jupiter Studio, Jupiter Plugin, Jupiter Wallet Kit, Jupiter Referral Program\">\u003cmeta data-mint-head name=\"application-name\" content=\"Jupiter Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_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=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Order (Prediction API) - Jupiter Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Request an unsigned transaction to create a new order\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Jupiter Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.jup.ag/docs/api-reference/prediction/create-order\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://jupiter.mintlify.site/docs/logo/og.png\">\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 Order (Prediction API) - Jupiter Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Request an unsigned transaction to create a new order\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://jupiter.mintlify.site/docs/logo/og.png\">\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=\"/docs/mintlify-assets/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Jupiter Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00BEF0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.jup.ag/docs/api-reference/prediction/create-order\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/prediction/create-order.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.jup.ag/#organization\",\"name\":\"Jupiter Developers\",\"url\":\"https://developers.jup.ag\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/jupiter/mrenEfoqnubhOTHf/logo/logo.png?fit=max\u0026auto=format\u0026n=mrenEfoqnubhOTHf\u0026q=85\u0026s=e745e60a4186bc382d3d5d9bdff9273a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.jup.ag/docs#website\",\"name\":\"Jupiter Developers\",\"url\":\"https://developers.jup.ag/docs\",\"publisher\":{\"@id\":\"https://developers.jup.ag/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.jup.ag/docs/api-reference/prediction/create-order#webpage\",\"url\":\"https://developers.jup.ag/docs/api-reference/prediction/create-order\",\"name\":\"Create Order (Prediction API)\",\"description\":\"Request an unsigned transaction to create a new order\",\"dateModified\":\"2026-10-02T07:38:25.012Z\",\"isPartOf\":{\"@id\":\"https://developers.jup.ag/docs#website\"},\"breadcrumb\":{\"@id\":\"https://developers.jup.ag/docs/api-reference/prediction/create-order#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.jup.ag/docs/api-reference/prediction/create-order#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://developers.jup.ag/docs/api-reference/prediction/get-events\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Orders\",\"item\":\"https://developers.jup.ag/docs/api-reference/prediction/get-orders\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Order (Prediction API)\",\"item\":\"https://developers.jup.ag/docs/api-reference/prediction/create-order\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.jup.ag/docs/api-reference/prediction/create-order#apireference\",\"headline\":\"Create Order (Prediction API)\",\"name\":\"Create Order (Prediction API)\",\"description\":\"Request an unsigned transaction to create a new order\",\"url\":\"https://developers.jup.ag/docs/api-reference/prediction/create-order\",\"mainEntityOfPage\":{\"@id\":\"https://developers.jup.ag/docs/api-reference/prediction/create-order#webpage\"},\"image\":\"https://developers.jup.ag/logo/og.png\",\"dateModified\":\"2026-10-02T07:38:25.012Z\",\"publisher\":{\"@id\":\"https://developers.jup.ag/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.jup.ag/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Jupiter Developers\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Jupiter Developers","nav":{"global":null,"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started"}]},{"tab":"Docs","menu":[{"item":"Swap","icon":"arrow-right-arrow-left","pages":[{"title":"Swap","href":"/swap"}]},{"item":"Tokens","icon":"coin","pages":[{"title":"Tokens","href":"/tokens"}]},{"item":"Price","icon":"dollar-sign","pages":[{"title":"Price","href":"/price"}]},{"item":"Transaction Landing","icon":"paper-plane","pages":[{"title":"Transaction Landing","href":"/transaction/submit"}]},{"item":"JupUSD","icon":"money-bill","pages":[{"title":"JupUSD","href":"/jupusd"}]},{"item":"Lend","icon":"piggy-bank","pages":[{"title":"Lend","href":"/lend"}]},{"item":"LO \u0026 DCA","icon":"crosshairs","pages":[{"title":"LO \u0026 DCA","href":"/trigger"}]},{"item":"Prediction","icon":"check-to-slot","groups":[{"group":"Prediction","tag":"BETA","pages":[{"title":"Prediction Market API","sidebarTitle":"About Prediction","href":"/prediction"},{"title":"Jupiter Forecast","sidebarTitle":"Forecast","href":"/prediction/forecast"},{"title":"Trading Lifecycle","href":"/prediction/trading-lifecycle"},{"title":"Events \u0026 Markets","href":"/prediction/events-and-markets"},{"title":"Open Positions","href":"/prediction/open-positions"},{"title":"Manage Positions","href":"/prediction/manage-positions"},{"title":"Claim Payouts","href":"/prediction/claim-payouts"}]},{"group":"Data \u0026 Analytics","tag":"BETA","pages":[{"title":"Position Data \u0026 History","href":"/prediction/position-data"},{"title":"Social Features","href":"/prediction/social-features"}]},{"group":"Guides","pages":[{"title":"How to Build a Prediction Market App on Solana","sidebarTitle":"Prediction Markets","href":"/guides/how-to-build-a-prediction-market-app-on-solana"}]},{"group":"API Reference","tag":"BETA","pages":[{"group":"Events","pages":[{"openapi":"openapi-spec/prediction/prediction.yaml get /events","title":"Get Events","href":"/api-reference/prediction/get-events"},{"openapi":"openapi-spec/prediction/prediction.yaml get /events/search","title":"Search Events","href":"/api-reference/prediction/search-events"},{"openapi":"openapi-spec/prediction/prediction.yaml get /events/{eventId}","title":"Get Event","href":"/api-reference/prediction/get-event"},{"openapi":"openapi-spec/prediction/prediction.yaml get /events/suggested/{pubkey}","title":"Get Suggested Events","href":"/api-reference/prediction/get-suggested-events"},{"openapi":"openapi-spec/prediction/prediction.yaml get /events/scores","title":"Get Live Scores","href":"/api-reference/prediction/get-event-scores"},{"openapi":"openapi-spec/prediction/prediction.yaml get /events/{eventId}/score","title":"Get Event Score","href":"/api-reference/prediction/get-event-score"}]},{"group":"Markets","pages":[{"openapi":"openapi-spec/prediction/prediction.yaml get /events/{eventId}/markets","title":"Get Event Markets","href":"/api-reference/prediction/get-event-markets"},{"openapi":"openapi-spec/prediction/prediction.yaml get /events/{eventId}/markets/{marketId}","title":"Get Event Market","href":"/api-reference/prediction/get-event-market"},{"openapi":"openapi-spec/prediction/prediction.yaml get /markets/{marketId}","title":"Get Market","href":"/api-reference/prediction/get-market"}]},{"group":"Orders","pages":[{"openapi":"openapi-spec/prediction/prediction.yaml get /orders","title":"Get Orders","href":"/api-reference/prediction/get-orders"},{"openapi":"openapi-spec/prediction/prediction.yaml get /orders/{orderPubkey}","title":"Get Order (Prediction API)","sidebarTitle":"Get Order","href":"/api-reference/prediction/get-order"},{"openapi":"openapi-spec/prediction/prediction.yaml get /orders/status/{orderPubkey}","title":"Get Order Status","description":"Get the latest status and history for an order","href":"/api-reference/prediction/get-order-status"},{"openapi":"openapi-spec/prediction/prediction.yaml post /orders","title":"Create Order (Prediction API)","sidebarTitle":"Create Order","href":"/api-reference/prediction/create-order"},{"openapi":"openapi-spec/prediction/prediction.yaml post /execute","title":"Execute Order (Prediction API)","sidebarTitle":"Execute Order","description":"Submit a signed order transaction, including Jupiter Forecast orders","href":"/api-reference/prediction/execute"}]},{"group":"Positions","pages":[{"openapi":"openapi-spec/prediction/prediction.yaml get /positions","title":"Get Positions (Prediction API)","sidebarTitle":"Get Positions","href":"/api-reference/prediction/get-positions"},{"openapi":"openapi-spec/prediction/prediction.yaml get /positions/{positionPubkey}","title":"Get Position","href":"/api-reference/prediction/get-position"},{"openapi":"openapi-spec/prediction/prediction.yaml delete /positions/{positionPubkey}","title":"Close Position","href":"/api-reference/prediction/close-position"},{"openapi":"openapi-spec/prediction/prediction.yaml delete /positions","title":"Close All Positions","href":"/api-reference/prediction/close-all-positions"},{"openapi":"openapi-spec/prediction/prediction.yaml post /positions/{positionPubkey}/claim","title":"Claim Position","href":"/api-reference/prediction/claim-position"}]},{"group":"History \u0026 Data","pages":[{"openapi":"openapi-spec/prediction/prediction.yaml get /history","title":"Get History","href":"/api-reference/prediction/get-history"},{"openapi":"openapi-spec/prediction/prediction.yaml get /orderbook/{marketId}","title":"Get Orderbook","href":"/api-reference/prediction/get-orderbook"},{"openapi":"openapi-spec/prediction/prediction.yaml get /trading-status","title":"Get Trading Status","href":"/api-reference/prediction/get-trading-status"}]},{"group":"Profile \u0026 Social","pages":[{"openapi":"openapi-spec/prediction/prediction.yaml get /profiles/{ownerPubkey}","title":"Get Profile","href":"/api-reference/prediction/get-profile"},{"openapi":"openapi-spec/prediction/prediction.yaml get /profiles/{ownerPubkey}/pnl-history","title":"Get PnL History","href":"/api-reference/prediction/get-pnl-history"},{"openapi":"openapi-spec/prediction/prediction.yaml get /trades","title":"Get Trades","href":"/api-reference/prediction/get-trades"},{"openapi":"openapi-spec/prediction/prediction.yaml get /leaderboards","title":"Get Leaderboards","href":"/api-reference/prediction/get-leaderboards"}]},{"group":"Vault","pages":[{"openapi":"openapi-spec/prediction/prediction.yaml get /vault-info","title":"Get Vault Info","href":"/api-reference/prediction/get-vault-info"}]}]}]},{"item":"More","icon":"ellipsis","pages":[{"title":"More","href":"/send"}]}]},{"tab":"AI","pages":[{"title":"AI","href":"/ai"}]},{"tab":"Tool Kits","pages":[{"title":"Tool Kits","href":"/tool-kits"}]},{"tab":"Changelog","href":"https://developers.jup.ag/changelog"},{"tab":"Resources","pages":[{"title":"Resources","href":"/resources/support"}]}]},"basePath":"","title":"Create Order (Prediction API) - Jupiter Developers","buildId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","deploymentId":"dpl_ATnXPMW25DMPUr9VBw6kL6MfBt6T","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-B5WzX-8C.js","dist-BPypQKlo.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-6wHzaN2_.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CNqlzjVB.js","utils-BqFiXZ79.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CnR4QBe6.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BY2ZM1OO.js","snippetPresets-x-8ACO8V.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ch-SJE05.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CqqG_0NE.js","shallow-BXrZ2b0C.js","getApiPlaygroundDisplay-n7J_wkjq.js","CodeSnippet-CQsp4vyQ.js","CodeSnippets-BfuHqvZx.js","Page-CTxrMSpo.js","getPastedJson-BjrGIK1i.js","icon-7iLZnVOC.js","MethodPill-TBS1m84e.js","DuplicateIcon-BNMrV4Vs.js","createIcon-C5kCqeU2.js","DynamicMarkdown-Bq09mRwR.js","SectionHeading-G4Bflf5Q.js","axios-vUo_bRtp.js","Markdown-BTUds0aX.js","AssistantPageLink-o6bee4ro.js"]}