strategy_stoploss_create
Create a stop-loss / take-profit / trailing-stop monitor on a held position.
position_amount is base units of target_token to liquidate on
trigger. At least one of stop_loss_pct / take_profit_pct / a trailing
config should be set (fractions, e.g. 0.15 == 15%).
Direction (optional, deterministic signal): direction_mode /
allow_short / regime_override -- see strategy_dca_create.
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": {
"wallet_address": "<wallet_address>",
"target_token": "<target_token>",
"position_amount": "<position_amount>"
},
"name": "strategy_stoploss_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | No | ||
| trailing | No | ||
| allow_short | No | ||
| entry_price | No | ||
| slippage_bps | No | ||
| source_token | No | USDC | |
| target_token | Yes | ||
| stop_loss_pct | No | ||
| direction_mode | No | ||
| wallet_address | Yes | ||
| position_amount | Yes | ||
| regime_override | No | ||
| take_profit_pct | No | ||
| interval_seconds | No | ||
| trailing_distance_pct | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||