Skip to main content
DELETE
/
orders
/
close-all
cURL
curl --request DELETE \
  --url https://api.jup.ag/prediction/v1/orders/close-all \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "ownerPubkey": "<string>",
  "userPubkey": "<string>",
  "statuses": [
    "pending"
  ]
}
'
{
  "data": [
    {
      "blockhash": "<string>",
      "transaction": "<string>",
      "latestBlockhash": "<string>",
      "lastValidBlockHeight": 1,
      "requiredSigners": [
        "<string>"
      ],
      "computeUnits": 1,
      "orderPubkey": "<string>",
      "accounts": {
        "owner": "<string>",
        "authority": "<string>",
        "vault": "<string>",
        "marketId": "<string>",
        "position": "<string>",
        "order": "<string>",
        "orderAta": "<string>",
        "ownerTokenAccount": "<string>",
        "settlementMint": "<string>"
      }
    }
  ]
}

Authorizations

x-api-key
string
header
required

Get API key via https://portal.jup.ag

Body

application/json
ownerPubkey
string

Order owner public key

Minimum string length: 32
userPubkey
string

Order owner public key (deprecated alias; use ownerPubkey)

Minimum string length: 32
statuses
enum<string>[]
Available options:
pending,
filled,
failed

Response

Unsigned transactions to close all pending orders

data
object[]
required