Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Body

application/json
wallet_addresses
string[]
required
Minimum array length: 1
market_id
string
required
Example:

"jup:SOL-PERP"

side
enum<string>
required

Side of the open position — picks the collateral custody account.

Available options:
long,
short
action
enum<string>
required

add deposits margin in the side's native collateral mint at the live oracle price; withdraw pays out in USDC like a close.

Available options:
add,
withdraw
amount_usd_e6
integer<int64>
required

USD value to move, in USDC micros. Must be > 0.

slippage_bps
integer
required

Must be < 10000.

client_order_id
string
required

Caller-supplied idempotency key (60s window), same contract as /perp/sol/order.

Response

Transactions built

success
boolean
data
object[]
error
string