Perps
Quote a Perps cancel
Prepare cancellation of one open Perps order or every open order in a market.
POST
https://api.gum.ag/app/v1/perps/orders/cancel/quoteBody
| Field | Required | Description |
|---|---|---|
address | Yes | Your Solana address or EVM 0x address. |
symbol | Yes | Perps market symbol. |
orderId | Conditional | Open order id to cancel (required unless clientOrderId or cancelAll: true is set). |
clientOrderId | Conditional | Client order id to cancel. |
cancelAll | Conditional | Set true to cancel every open order in symbol. |
marginMode | No | cross (default) or isolated. |
subaccountId | No | Perps sub-account index (0–4, default 0). |
Response
Returns symbol, cancelAll, orderId, clientOrderId, expiresAt, signer, message (base64 Borsh action bytes to sign) and transaction. Sign the decoded message bytes with your wallet (in Solana browser wallets, use wallet.signMessage instead of signTransaction) and submit to POST /v1/perps/orders/cancel.