GUM Docs
Open GUM

Perps

Quote a Perps order

Price a GUM Perps market, limit or post-only order and get the action message to sign.

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

Try it

Body

FieldRequiredDescription
addressYesYour Solana address or EVM 0x address.
symbolYesMarket symbol from GET /v1/perps/markets.
sideYesbuy (long) or sell (short).
sizeYesOrder size as a decimal string — base units by default, or USD when sizeCurrency is "USD".
sizeCurrencyNobase (default) or USD.
orderTypeNomarket (default), limit or postOnly.
priceConditionalRequired for limit and postOnly orders; ignored for market orders (which price from the live book with slippageBps).
timeInForceNoRequest accepts GTC, IOC or FOK (defaults to IOC for market orders, GTC for limit/postOnly). Responses return the canonical value (GoodTilCanceled, ImmediateOrCancel or FillOrKill).
reduceOnlyNotrue to only reduce an open position.
slippageBpsNoSlippage guard for market orders (0–400 bps, default 100).
marginModeNocross (default) or isolated.
subaccountIdNoPerps sub-account index (0–4, default 0).
clientOrderIdNoOptional 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 instead of signTransaction) and submit to POST /v1/perps/orders.