Skip to main content
POST
Place a take-profit / stop-loss trigger

Authorizations

X-API-Key
string
header
required

Body

application/json
wallet_addresses
string[]
required
Minimum array length: 1
market_id
string
required
position_pubkey
string
required
side
enum<string>
required
Available options:
long,
short
trigger_price_e6
integer<int64>
required

Trigger price in USDC micros.

trigger_above_threshold
boolean
required

Direction the price must cross to fire the trigger. true = oracle ≥ trigger; false = oracle ≤ trigger. The caller maps this to TP vs SL based on position side.

client_order_id
string
required
entire_position
boolean
default:false

True = close the entire position on trigger.

size_usd_delta_e6
integer<int64>

Required when entire_position=false.

Response

Transactions built

success
boolean
data
object[]
error
string