Skip to main content
DELETE
/
orders
cURL
curl --request DELETE \
  --url https://api.jup.ag/prediction/v1/orders \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "orderPubkey": "<string>",
  "ownerPubkey": "<string>",
  "userPubkey": "<string>"
}
'
{
  "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
orderPubkey
string
required
Minimum string length: 32
ownerPubkey
string

Order owner public key

Minimum string length: 32
userPubkey
string

Order owner public key (deprecated alias; use ownerPubkey)

Minimum string length: 32

Response

Unsigned transaction for closing an order

blockhash
string
required
transaction
string
required

Base64 encoded transaction

latestBlockhash
string
required
lastValidBlockHeight
integer
required
Required range: x >= 0
requiredSigners
string[]
required
computeUnits
integer
required
Required range: x >= 0
orderPubkey
string
required
accounts
object
required