Skip to main content
POST
Guide: Perps. estLiquidationE6 is an estimate with a 0.6% maintenance margin, not the venue’s rule.

Authorizations

x-api-key
string
header
required

Body

application/json
marketId
string
required

<venue>:<SYMBOL>-PERP, from /perp/markets

Example:

"jupiter:SOL-PERP"

side
enum<string>
required

buy and sell are accepted too

Available options:
long,
short
collateralUsd
integer<int64>
required

Collateral in micro-USD (10000000 = $10). The notional is collateral × leverage

Required range: x >= 1
Example:

25000000

leverageBps
integer<int32>
required

Leverage in bps (30000 = 3x). The router enforces only the 1x minimum; the venue's limits apply at execution

Required range: x >= 10000
Example:

30000

slippageBps
integer<int32>
default:50

Accepted price move from the mark at execution, and the funding route's slippage

Required range: 0 <= x <= 9999
fundingMint
string

What the wallet pays with. Omitted or the collateral mint: the collateral already in the wallet's token account (held). SOL or native: native SOL, wrapped in the transaction when the collateral is wSOL (native), otherwise routed from SOL. Any other mint: an exact-out route into the collateral (routed). The wSOL mint address means wSOL already held.

wallet
string

Optional, only validated as an address

triggerPriceE6
integer<int64>

Quote a limit open at this price (GMTrade only)

Required range: x >= 1

Response

The quote

quoteId
string
required
marketId
string
required

Canonical market id

venue
enum<string>
required
Available options:
jupiter,
gmtrade
side
enum<string>
required
Available options:
long,
short
quote
object
required
fundingMode
enum<string>
required

How the collateral reaches the venue: already in the wallet, native SOL wrapped in the transaction, or a swap route in the transaction

Available options:
held,
native,
routed
timeTaken
number
required

Seconds spent by the router

funding
object

The exact-out swap route into the collateral mint, present only when fundingMode is routed