Attach Stop-Loss / Take-Profit
protect_positionAttach exchange-native stop-loss and take-profit to an already open position. Set percentage distances from the mark price, and Pacifica enforces the triggers even offline.
Instructions
Attach EXCHANGE-NATIVE stop-loss / take-profit to a position that is ALREADY OPEN (opened anywhere, this bot, the website, or another tool). Percentages are distances from the current mark price (e.g. 3 = 3%); 0 disables that leg. Once set, Pacifica enforces the triggers even if this bot or the user's PC is offline. IMPORTANT: modifies live protection, call with confirm=false first to preview, confirm=true after the user approves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| confirm | No | ||
| stop_loss_pct | No | ||
| take_profit_pct | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |