GUM Docs
Open GUM

Perps

Quote a Perps cancel

Prepare cancellation of one open Perps order or every open order in a market.

POSThttps://api.gum.ag/app/v1/perps/orders/cancel/quote

Try it

Body

FieldRequiredDescription
addressYesYour Solana address or EVM 0x address.
symbolYesPerps market symbol.
orderIdConditionalOpen order id to cancel (required unless clientOrderId or cancelAll: true is set).
clientOrderIdConditionalClient order id to cancel.
cancelAllConditionalSet true to cancel every open order in symbol.
marginModeNocross (default) or isolated.
subaccountIdNoPerps 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.