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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "set_trading_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| category | No | linear | |
| take_profit | No | ||
| stop_loss | No | ||
| position_idx | No |