OpenAny
Get API keyAPI Key
APICrypto & DeFi

jupiter logo
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
USE THIS API

Jupiter Unsigned Position Close API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
Jupiter Unsigned Position Close API

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

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Set the path variables shown in the URL to your target values; URL-encode each path segment before calling.
  3. Check the HTTP response and business result before reading optional fields.
bash
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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Position account public key
body* object
Position owner public key
Close position — complete JSON body for the verified unsigned preparation profile.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
jupiterCurrent
Jupiter — Prediction API — Prepare unsigned close position · DELETE · View API reference
$0 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · jupiterUSD / call
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.

calls

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
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
positionPubkeyURL path parameterspathstringYes

Position account public key

minLength: 32

ownerPubkeyJSON request bodybodystringNo

Position owner public key

minLength: 32

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • clientOrderIdstring
  • executionobject
    • contextobject
      • typestring
    • endpointstring
  • externalOrderIdstring
  • isGaslessboolean
  • orderobject
    • clientOrderIdstring
    • contractsstring
    • contractsDecimalstring
    • contractsMicrostring
    • estimatedIntegratorFeeUsdstring
    • estimatedProtocolFeeUsdstring
    • estimatedTotalFeeUsdstring
    • estimatedVenueFeeUsdstring
    • externalOrderIdstring
    • isBuyboolean
    • isYesboolean
    • marketIdstring
    • marketIdHashstring
    • maxBuyPriceUsdnull
    • maxSlippageBpsinteger
    • minSellPriceUsdstring
    • newAvgPriceUsdstring
    • newContractsstring
    • newContractsDecimalstring
    • newContractsMicrostring
    • newPayoutUsdstring
    • newSizeUsdstring
    • orderAtaPubkeystring
    • orderCostUsdstring
    • orderPubkeystring
    • payoutUsdstring
    • positionPubkeystring
    • slippageBpsinteger
    • userPubkeystring
  • requiredSignersstring[]
  • transactionstring
  • txMetaobject
    • blockhashstring
    • lastValidBlockHeightinteger

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation example

Published documentation example. Verify the actual response after an approved call.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    curl \
      '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"
    }'
  3. 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/uzC9yDc3uP5D5UmDyo5Ib7v0YpssyPyQPaDsYXYzpxmnPmExGNVoy9tIYtplLZeyZ5FTtHhbzoJzQRwyBDzGetJmMsut9XTCvUjjJclj04kifG7PRApFI4NgwtaE5na/xCEBI572Nvp+FkDBkZv5SEXMv/srbpyw5vnvIzlu8X3EmssQ5s6QAAAAASWmnM222lIweUWwz+Ue/cr5jTUZr1A53p+4ikQNTACBt324ddloZPZy+FGzut5rBy0he1fWzeROoz1hX7/AKkgZWj6yGQMv7GTpCR0L0leksd+z0g7pcHUPJSQhp4wDwQJAAkDUMMAAAAAAAAJAAUC8EkCAAgGAAUACgwLAQEGDQAAAQ0DAgcFCgQLCAxtlu0RPTvAfDQgAAAAMjhlZDYzNGI2OWY0NGJlMzg5YzBhYTI0OTY4MjkyZmMgAAAANjg2M2Q1ODc2MDJhNDhlYjRmY2ViMWEwNGY1NmJiMzABAFCWIgYAAAAAUDQDAAAAAAAAAAAAAAAAAAAAAAFS/LtlOFIqbeHphq+FUwEIanitliMNofwBm1bdlcuougACBQE=",
      "txMeta": {
        "blockhash": "3BTjZtURbmSE5PNtDgw44TDSF276kT5Jim5UkpL5MRUJ",
        "lastValidBlockHeight": 441204083
      }
    }

Common questions

Does DELETE immediately close the on-chain position?

This implementation prepares an unsigned close-position transaction. A preparation response is not confirmation that a position closed or an order filled.

Is ownerPubkey schema-required?

The 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.

Is the trading fee the OpenAny request price?

No. Estimated trading fees in the response are separate from the price of calling the selected OpenAny implementation.

How should I handle contract quantity and validity?

Preserve contractsDecimal or contractsMicro for fractional quantities. Keep the returned blockhash and lastValidBlockHeight with the prepared transaction.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

Use Jupiter Unsigned Position Close API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.