Perps
Quote a Perps withdrawal
Prepare a free USD transfer from a GUM Perps sub-account back to your GUM spot cash balance.
POST
https://api.gum.ag/app/v1/perps/withdraw/quoteBody
| Field | Required | Description |
|---|---|---|
address | Yes | Your Solana address or EVM 0x address. |
amount | Yes | Free USD margin to withdraw back to spot, as a decimal string. |
subaccountId | No | Source Perps sub-account index (0–4, default 0). |
Response
Returns amount, usdValue, tradingAccount, expiresAt, signer, message and transaction. Sign message and submit to POST /v1/perps/withdraw.