update_strategy
Changes the settings of an existing strategy (leverage, risk, SL/TP percentages, trailing, allowed symbols, target account, and whether it accepts signals at all).
WHAT THIS TOOL CANNOT DO, on purpose:
- `auto_trade` (the real-money switch) is REFUSED. A single order is one action; a
strategy runs forever, so turning real money on stays a human decision made in the
panel.
- `ip_allowlist` is REFUSED: it is the second factor that verifies where signals come
from, so it must not be weakened from here.
- Deleting a strategy is not possible here; that is done in the panel.
Fields that were refused come back in `refused_fields`; the other fields are still
applied.
Setting `reverse_enabled` to true returns a `warning`: from then on a BUY signal
opens a SHORT and a SELL signal opens a LONG on that strategy.
Only the fields present in `changes` are modified. idempotency_key is REQUIRED.Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | No | Fields to change, e.g. {"leverage": 5, "risk_pct": 1.5, "enabled": false}. Allowed: name, exchange, leverage (1-20), risk_pct (0.1-50), sl_percent, tp_percent, margin_type, trailing_enabled, trailing_trigger_pct, trailing_distance_pct, breakeven_enabled, breakeven_trigger_pct, multi_tp, ai_filter, ai_min_score, enabled, allowed_symbols, reverse_enabled, win_rate_filter_enabled, min_win_rate, builder_config, market_target, api_key_id, mt_account_id. auto_trade, status and ip_allowlist are REFUSED here by design. | |
| strategy_id | No | id of the strategy to change, as listed by list_strategies. | |
| idempotency_key | No | Client-generated unique idempotency key (min 8 characters). Reuse the SAME key when retrying the same action — the stored response is replayed and the action is NOT performed a second time. |