Skip to main content
POST
Quote a perp open

Authorizations

X-API-Key
string
header
required

Body

application/json
market_id
string
required
Example:

"jup:SOL-PERP"

side
enum<string>
required
Available options:
long,
short
collateral_usdc_e6
integer<int64>
required

Collateral the user is putting up, denominated in USDC micros (1e6 = $1).

Example:

100000000

leverage_bps
integer
required

Leverage in basis-points (10000 = 1x).

Example:

50000

slippage_bps
integer
default:50

Optional slippage tolerance in bps. Defaults to 50 (0.5%).

Example:

50

Response

200 - application/json

Quote computed (check success for failure modes)

success
boolean
data
object
error
string

Set when success=false.