{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"32418151-3b8f-4238-8c8c-0fe6a4c94c79","catalogType":"api","categories":["crypto-defi"],"dataPlatform":"jupiter","dataPlatformLogoUrl":"https://developers.jup.ag/docs/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/android-chrome-192x192.png","dataPlatformTranslations":{"ar":"jupiter","ja":"jupiter","zh":"jupiter"},"dataProduct":"prediction","description":"Get Jupiter Unsigned Position Close data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Jupiter, pass parameters such as ownerPubkey, Set, and retrieve structured data including unsigned transaction payload, required signer public keys, referenced position account, contracts decimal, and contract quantity in millionths for wallet review, and validity context.","descriptionTranslations":{"ar":"جهز معاملة إغلاق مركز Jupiter Prediction بحساب المركز وعنوان المالك، واحصل على الحمولة غير الموقعة وسياق الأمر ومتطلبات التوقيع للمراجعة قبل التنفيذ المنفصل. استخدم الحمولة في شاشات مراجعة المحفظة أو أدوات تجميع المعاملات، مع توضيح وحدات الرموز ومتطلبات التوقيع، وراجع أمثلة الطلبات والمدخلات المدعومة وتسعير التنفيذ المحدد في صفحة التفاصيل.","ja":"ポジション口座と保有者アドレスから Jupiter Prediction の決済取引を準備し、未署名ペイロード、注文情報、署名要件を別途実行する前の確認に利用できます。 返されたペイロードをウォレット確認画面や取引の組み立てに利用し、トークンの単位と署名要件を保持できます。詳細ページにはリクエスト例、対応入力、選択した実装の料金が掲載されています。","zh":"按持仓账户和持有人地址准备 Jupiter Prediction 平仓交易，返回未签名内容、订单信息及签名要求，用于独立执行前的钱包审核。 可将返回内容用于钱包审核界面或交易组装工具，明确保留代币单位和签名要求；详情页提供请求示例、支持的输入及所选实现的价格。"},"effectContentHtml":"","executionMode":"sync","id":"81891742-900a-4bdc-adb4-2ef6a80ffee1","includedContentHtml":"","inputs":[{"description":"Position account public key","location":"path","min_length":32,"name":"positionPubkey","nullable":false,"required":true,"type":"string"},{"description":"Close position — complete JSON body for the verified unsigned preparation profile.","json_schema":{"description":"Close position — complete JSON body for the verified unsigned preparation profile.","examples":[{"ownerPubkey":"EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6"}],"properties":{"ownerPubkey":{"description":"Position owner public key","example":"EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6","minLength":32,"type":"string"}},"type":"object"},"location":"body","name":"body","nullable":false,"pointer":"","required":true,"type":"object"}],"logoUrl":"https://developers.jup.ag/docs/_mintlify/favicons/jupiter/VhCnOYl5khz0IKiZ/_generated/favicon/android-chrome-192x192.png","method":"DELETE","name":"Jupiter — Prediction API — Prepare unsigned close position","nameTranslations":{"ar":"Jupiter — Prediction API — تحضير إغلاق مركز غير موقّع","ja":"Jupiter — Prediction API — 未署名のポジションクローズを準備","zh":"Jupiter — 预测 API — 准备未签名平仓"},"overviewHtml":"\u003ch2\u003eJupiter Unsigned Position Close API\u003c/h2\u003e\n\u003cp\u003eUse the documented DELETE method with positionPubkey in the path and a JSON body for ownerPubkey when supplied. The position key and any supplied owner key have a minimum length of 32 characters. The preparation response includes transaction, requiredSigners, order and txMeta. This response does not establish a completed close or fill.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eJSON body: ownerPubkey\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003ejupiter · Jupiter — Prediction API — Prepare unsigned close position\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003ePer call; check the selected implementation pricing and charge conditions\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eWallet review\u003c/strong\u003e: Inspect close-order context and signer identities.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eValidity context\u003c/strong\u003e: Keep blockhash metadata with the returned payload.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etransaction\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eUnsigned transaction payload\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003erequiredSigners\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eRequired signer public keys\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eorder.positionPubkey\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReferenced position account\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eorder.contractsDecimal\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDecimal contract quantity in the prepared order\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eorder.contractsMicro\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eContract quantity in millionths\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eorder.estimatedTotalFeeUsd\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eEstimated trading fee in the source money unit\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etxMeta.blockhash\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTransaction blockhash\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etxMeta.lastValidBlockHeight\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eLast valid block height\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eSet the path variables shown in the URL to your target values; URL-encode each path segment before calling.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request DELETE \\\n  \u0026#34;https://api.openany.si/v1/agent-apis/jupiter/prediction/v1/positions/${POSITIONPUBKEY_URI:?Set POSITIONPUBKEY_URI}\u0026#34; \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#34;Content-Type: application/json\u0026#34; \\\n  --data-raw \u0026#39;{\u0026#34;ownerPubkey\u0026#34;:\u0026#34;EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6\u0026#34;}\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe saved response is a published documentation example. Its values may be historical; the request is an independent calling template. Use current returned identifiers and optional fields for your chosen resource.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/81891742-900a-4bdc-adb4-2ef6a80ffee1\"\u003ePublished Jupiter Unsigned Position Close API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eDoes DELETE immediately close the on-chain position?\u003c/h3\u003e\n\u003cp\u003eThis implementation prepares an unsigned close-position transaction. A preparation response is not confirmation that a position closed or an order filled.\u003c/p\u003e\n\u003ch3\u003eIs ownerPubkey schema-required?\u003c/h3\u003e\n\u003cp\u003eThe JSON body is required, but its schema does not list ownerPubkey as a required property. The documented template includes it; any supplied ownerPubkey must be at least 32 characters.\u003c/p\u003e\n\u003ch3\u003eIs the trading fee the OpenAny request price?\u003c/h3\u003e\n\u003cp\u003eNo. Estimated trading fees in the response are separate from the price of calling the selected OpenAny implementation.\u003c/p\u003e\n\u003ch3\u003eHow should I handle contract quantity and validity?\u003c/h3\u003e\n\u003cp\u003ePreserve contractsDecimal or contractsMicro for fractional quantities. Keep the returned blockhash and lastValidBlockHeight with the prepared transaction.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/jupiter/jupiter-lend-borrow-prepare-unsigned-build-operate-instructions\"\u003eJupiter — Lend Borrow — Prepare unsigned build operate instructions\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/jupiter/jupiter-lend-borrow-prepare-unsigned-build-unsigned-operate-transaction\"\u003eJupiter — Lend Borrow — Prepare unsigned build unsigned operate transaction\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/jupiter/jupiter-lend-earn-prepare-unsigned-deposit\"\u003eJupiter — Lend Earn — Prepare unsigned deposit\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/jupiter/jupiter-prediction-api-prepare-unsigned-close-position?offering=81891742-900a-4bdc-adb4-2ef6a80ffee1","providerId":"jupiter","publicPath":"/v1/agent-apis/jupiter/prediction/v1/positions/{positionPubkey}","requestContentType":"application/json","revision":3,"samples":[{"http_status":200,"name":"Documentation example","request":{"body":{"ownerPubkey":"EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6"},"headers":{},"path":{"positionPubkey":"5RgcHYYMPccH6a6oJnxtf6tvuNS2qfBStXxNokyWKLpf"},"query":{}},"response_body":{"clientOrderId":"28ed634b69f44be389c0aa24968292fc","execution":{"context":{"type":"create_order"},"endpoint":"/api/v1/execute"},"externalOrderId":"28ed634b69f44be389c0aa24968292fc","isGasless":false,"order":{"clientOrderId":"28ed634b69f44be389c0aa24968292fc","contracts":"102","contractsDecimal":"102.93","contractsMicro":"102930000","estimatedIntegratorFeeUsd":"0","estimatedProtocolFeeUsd":"0","estimatedTotalFeeUsd":"1570202","estimatedVenueFeeUsd":"1570202","externalOrderId":"28ed634b69f44be389c0aa24968292fc","isBuy":false,"isYes":true,"marketId":"POLY-6347272-1","marketIdHash":"6863d587602a48eb4fceb1a04f56bb30","maxBuyPriceUsd":null,"maxSlippageBps":2500,"minSellPriceUsd":"210000","newAvgPriceUsd":"0","newContracts":"0","newContractsDecimal":"0","newContractsMicro":"0","newPayoutUsd":"0","newSizeUsd":"0","orderAtaPubkey":"85UArgkaEmDv7HowNfVdTKXmU6UWiFJYMKp9oHuUD8xb","orderCostUsd":"0","orderPubkey":"4SF6LH5Xbxz4fuMa15bdiopaK67oDLNc3iAz8mjitue6","payoutUsd":"102930000","positionPubkey":"5RgcHYYMPccH6a6oJnxtf6tvuNS2qfBStXxNokyWKLpf","slippageBps":0,"userPubkey":"EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6"},"requiredSigners":["EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6"],"transaction":"AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADsGBTmEwBF3PfVa1r55qlWEAd/BjsuQLgPb7lty4BiteOUbCGCgTRk7JtyH0t9K1cqqfmHpf53/8RX+NVMv3cAgAIBBgzNiKdPWQ7EAYyDWz0dc2U+0XRiuPEwadRV6V2uiGjXc4pI+E5Qg1NtOawuU241JvUbkDGLCMTmdMsZd8yesS2gMwqDyptEUnaa9S7ml06M+rSRpxBH0JuwHrRWKdpOEP9BwXjyMjMKtl10i+3BIBcoMUYP2ZaxIRrZ6ZcsXN3r2Gkm2lXWlzxwvm5QysDsyL+tqFVWqinyFGYulwflkfSkj3mhApD7fEYiX+irhD/BT9Eemx2S/uzC9yDc3uP5D5UmDyo5Ib7v0YpssyPyQPaDsYXYzpxmnPmExGNVoy9tIYtplLZeyZ5FTtHhbzoJzQRwyBDzGetJmMsut9XTCvUjjJclj04kifG7PRApFI4NgwtaE5na/xCEBI572Nvp+FkDBkZv5SEXMv/srbpyw5vnvIzlu8X3EmssQ5s6QAAAAASWmnM222lIweUWwz+Ue/cr5jTUZr1A53p+4ikQNTACBt324ddloZPZy+FGzut5rBy0he1fWzeROoz1hX7/AKkgZWj6yGQMv7GTpCR0L0leksd+z0g7pcHUPJSQhp4wDwQJAAkDUMMAAAAAAAAJAAUC8EkCAAgGAAUACgwLAQEGDQAAAQ0DAgcFCgQLCAxtlu0RPTvAfDQgAAAAMjhlZDYzNGI2OWY0NGJlMzg5YzBhYTI0OTY4MjkyZmMgAAAANjg2M2Q1ODc2MDJhNDhlYjRmY2ViMWEwNGY1NmJiMzABAFCWIgYAAAAAUDQDAAAAAAAAAAAAAAAAAAAAAAFS/LtlOFIqbeHphq+FUwEIanitliMNofwBm1bdlcuougACBQE=","txMeta":{"blockhash":"3BTjZtURbmSE5PNtDgw44TDSF276kT5Jim5UkpL5MRUJ","lastValidBlockHeight":441204083}}}],"seoDescription":"Get Jupiter Unsigned Position Close data via REST or MCP powered by Jupiter. Pay per call, no subscription. Built for wallet review workflows.","updatedAt":"2026-12-03T02:49:38.753Z","usageInstructionsHtml":""}}