<ApiPlayground endpoint="trading-perps-cancel-quote" />

## Body

| 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`](/trading-api/signing#perps-order-and-cancel-quotes) instead of `signTransaction`) and submit to [`POST /v1/perps/orders/cancel`](/trading-api/reference/post-perps-cancel).
