Skip to main content
POST
Build a transaction that edits a pending limit / stop-limit order

Body

application/json
trader
string
required

The trader (position owner). USDC collateral is pulled from and paid out to this address.

orderIndex
integer
required

Open limit-order slot index for this trader + pair (0-based). Read it from GET /v2/positions → orders[].order.index.

Required range: x >= 0
price
required

New trigger price in USD for the queued order.

pairIndex
integer

Pair index (alternative to pair).

Required range: x >= 0
pair
string

Pair symbol, e.g. ETH/USD (separators /, -, _ accepted; case-insensitive).

Minimum string length: 1
delegate
string

Optional pre-authorized delegate. When set, the call is wrapped in delegatedAction(trader, …) and from becomes this address — the delegate signs the transaction and pays gas. Register one via /v2/delegate/set.

slippagePercent
default:1

Max slippage in percent (1 = 1%).

takeProfit

Take-profit price in USD. 0 or omitted = no take-profit (0 also removes an existing one on updates).

stopLoss

Stop-loss price in USD. 0 or omitted = no stop-loss (0 also removes an existing one on updates).

Response

Success envelope: ok is true and data carries the payload documented below.

ok
enum<boolean>
required

Always true on success.

Available options:
true
data
object
required

An unsigned EVM transaction. Sign it with the from key and broadcast it yourself, or submit the signed bytes via POST /v2/relay.