Modify a pending perp trigger order
Modify an existing pending trigger order (limit / TP / SL) by rewriting
the partial-close size and/or trigger price on its position_request
PDA via updateDecreasePositionRequest2.
Both size_usd_delta_e6 and trigger_price_e6 are required on the
wire — the on-chain ix overwrites unconditionally — so callers must
pass the previous value through for whichever field they aren’t
changing.
Idempotent on client_order_id (60s window).
Authorizations
Body
1position_request PDA — the order's stable identifier from
/api/sol/perp/wallets/{addr}/perp-orders on the History API.
long, short New sizeUsdDelta in USDC micros. The on-chain ix overwrites
unconditionally — pass the existing value through when only the
trigger price is changing.
New trigger price in USDC micros. Pass the existing value through
when only the size is changing. 0 is rejected.
