set_trading_stop
Set take profit and stop loss prices for an existing position to manage risk and lock in profits.
Instructions
Set take profit and/or stop loss for a position.
Args: symbol: The trading pair, e.g., BTCUSDT. category: Product type: linear, inverse (default: linear). take_profit: Take profit price. Leave empty to not set. stop_loss: Stop loss price. Leave empty to not set. position_idx: Position index: 0 (one-way), 1 (buy side), 2 (sell side). Default: 0.
Returns: Trading stop setting result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| category | No | linear | |
| take_profit | No | ||
| stop_loss | No | ||
| position_idx | No |