set_take_profit_stop_loss
Set take-profit and stop-loss for existing positions, using OCO to automatically cancel the other when one triggers.
Instructions
Set take profit and/or stop loss orders for an EXISTING position (OCO orders)
Args: coin: Trading pair (e.g., "BTC", "ETH") - must have an existing position take_profit_price: Take profit price (optional, can set just TP) stop_loss_price: Stop loss price (optional, can set just SL) position_size: Position size (will auto-detect from existing position if not provided)
Note: This is for EXISTING positions only. Use place_bracket_order for new positions with TP/SL. The orders will use OCO (One-Cancels-Other) behavior where executing one cancels the other.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | ||
| position_size | No | ||
| stop_loss_price | No | ||
| take_profit_price | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||