Set Phoenix TP/SL
Requires key scope phoenix/tpsl.
Returns an unsigned v0 transaction for the manager to sign. Do not send payer: the API sets it to the key’s manager and rejects a body that contains it. Unknown fields are ignored. The key’s manager must be the vault’s current on-chain authority or a live delegate of it, and the vault must be in the key’s allowlist when the key has one. A delegate needs the Phoenix permission.
Makes the market’s take-profit and stop-loss bracket on the vault’s whole open position exactly what the body says. The build cancels every armed TP/SL of the market, then places the new one, so a retry converges. The first TP/SL also creates the trader’s conditional-orders account in the same transaction. Both null removes the bracket. The trigger fills as a market order with 2% slippage. Returns 400 for an unknown market, when placing without an open position, when removing with nothing armed, or when a price is below one tick or on the wrong side of the mark.
Authorizations
Body
Response
Build result. One step.
