Skip to main content
POST
Cancel 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.

client_order_id
string
required
request_mint
string | null

Mint the request was funded with. Required because closePositionRequest closes the request ATA back to the user; the wrong mint triggers Anchor ConstraintTokenMint. Defaults to USDC when omitted — safe for TP/SL (always USDC), but limit-order cancels must explicitly pass the input mint.

Response

Transactions built

success
boolean
data
object[]
error
string