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

## Body

| Field | Required | Description |
| --- | --- | --- |
| `address` | Yes | Your Solana address or EVM `0x` address. |
| `symbol` | Yes | Market symbol from [`GET /v1/perps/markets`](/trading-api/reference/get-perps-markets). |
| `side` | Yes | `buy` (long) or `sell` (short). |
| `size` | Yes | Order size as a decimal string — base units by default, or USD when `sizeCurrency` is `"USD"`. |
| `sizeCurrency` | No | `base` (default) or `USD`. |
| `orderType` | No | `market` (default), `limit` or `postOnly`. |
| `price` | Conditional | Required for `limit` and `postOnly` orders; ignored for `market` orders (which price from the live book with `slippageBps`). |
| `timeInForce` | No | Request accepts `GTC`, `IOC` or `FOK` (defaults to `IOC` for market orders, `GTC` for limit/postOnly). Responses return the canonical value (`GoodTilCanceled`, `ImmediateOrCancel` or `FillOrKill`). |
| `reduceOnly` | No | `true` to only reduce an open position. |
| `slippageBps` | No | Slippage guard for market orders (0–400 bps, default 100). |
| `marginMode` | No | `cross` (default) or `isolated`. |
| `subaccountId` | No | Perps sub-account index (0–4, default 0). |
| `clientOrderId` | No | Optional client-assigned u64 string id for tracking and cancellation. |

## Response

Returns `symbol`, `side`, `orderType`, `quantity`, `price`, `usdValue`, `timeInForce` (`GoodTilCanceled`, `ImmediateOrCancel` or `FillOrKill`), `reduceOnly`, `expiresAt`, `signer`, `message` (base64 Borsh action bytes to sign) and `transaction` (base64 action envelope). 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`](/trading-api/reference/post-perps-orders).
