Skip to main content
POST
Modify a pending perp trigger order

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
order_id
string
required

position_request PDA — the order's stable identifier from /api/sol/perp/wallets/{addr}/perp-orders on the History API.

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

New sizeUsdDelta in USDC micros. The on-chain ix overwrites unconditionally — pass the existing value through when only the trigger price is changing.

trigger_price_e6
integer<int64>
required

New trigger price in USDC micros. Pass the existing value through when only the size is changing. 0 is rejected.

client_order_id
string
required

Response

Transactions built

success
boolean
data
object[]
error
string