Jupiter Unsigned Position Close API
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.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
Jupiter Unsigned Position Close API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- API
- Pricing
On this page
Overview
Jupiter Unsigned Position Close API
Use 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.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | JSON body: ownerPubkey |
| Selected implementation | jupiter · Jupiter — Prediction API — Prepare unsigned close position |
| Billing | Per call; check the selected implementation pricing and charge conditions |
What You Can Build
- Wallet review: Inspect close-order context and signer identities.
- Validity context: Keep blockhash metadata with the returned payload.
Documented Response Fields
| Field | Meaning |
|---|---|
transaction |
Unsigned transaction payload |
requiredSigners |
Required signer public keys |
order.positionPubkey |
Referenced position account |
order.contractsDecimal |
Decimal contract quantity in the prepared order |
order.contractsMicro |
Contract quantity in millionths |
order.estimatedTotalFeeUsd |
Estimated trading fee in the source money unit |
txMeta.blockhash |
Transaction blockhash |
txMeta.lastValidBlockHeight |
Last valid block height |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Set the path variables shown in the URL to your target values; URL-encode each path segment before calling.
- Check the HTTP response and business result before reading optional fields.
curl --request DELETE \
"https://api.openany.si/v1/agent-apis/jupiter/prediction/v1/positions/${POSITIONPUBKEY_URI:?Set POSITIONPUBKEY_URI}" \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
-H "Content-Type: application/json" \
--data-raw '{"ownerPubkey":"EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6"}'
Request and Response Examples
The 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.
Published Jupiter Unsigned Position Close API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
jupiterCurrent Jupiter — Prediction API — Prepare unsigned close position · DELETE · View API reference | $0 / call | 0 | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0
API
- Method
- DELETE
- Endpoint
https://api.openany.si/v1/agent-apis/jupiter/prediction/v1/positions/{positionPubkey}- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
positionPubkey | URL path parameterspath | string | Yes | Position account public key minLength: 32 |
ownerPubkey | JSON request bodybody | string | No | Position owner public key minLength: 32 |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
clientOrderIdstringexecutionobjectcontextobjecttypestring
endpointstring
externalOrderIdstringisGaslessbooleanorderobjectclientOrderIdstringcontractsstringcontractsDecimalstringcontractsMicrostringestimatedIntegratorFeeUsdstringestimatedProtocolFeeUsdstringestimatedTotalFeeUsdstringestimatedVenueFeeUsdstringexternalOrderIdstringisBuybooleanisYesbooleanmarketIdstringmarketIdHashstringmaxBuyPriceUsdnullmaxSlippageBpsintegerminSellPriceUsdstringnewAvgPriceUsdstringnewContractsstringnewContractsDecimalstringnewContractsMicrostringnewPayoutUsdstringnewSizeUsdstringorderAtaPubkeystringorderCostUsdstringorderPubkeystringpayoutUsdstringpositionPubkeystringslippageBpsintegeruserPubkeystring
requiredSignersstring[]transactionstringtxMetaobjectblockhashstringlastValidBlockHeightinteger
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
positionPubkey- Position account public key
body- Close position — complete JSON body for the verified unsigned preparation profile.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/jupiter/prediction/v1/positions/5RgcHYYMPccH6a6oJnxtf6tvuNS2qfBStXxNokyWKLpf' \ -X DELETE \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "ownerPubkey": "EqKSEoXiwA65pGbyZvmY6EfhEn5i7MuKwmUF4fVNuTg6" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "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/uzC9yDc3uP5D5UmDyo5Ib7v0YpssyPyQPaDsYXYzpxmnPmExGNVoy9tIYtplLZeyZ5FTtHhbzoJzQRwyBDzGetJmMsut9XTCvUjjJclj04kifG7P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