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>" } } ] }
Request unsigned transactions to close multiple orders
Get API key via https://portal.jup.ag
Order owner public key
32
Order owner public key (deprecated alias; use ownerPubkey)
pending
filled
failed
Unsigned transactions to close all pending orders
Show child attributes
Was this page helpful?