Deactivate Algorithm
deactivate_algoDeactivate and unlink an algorithm from a trading instance, stopping that linked strategy without deleting the saved algorithm. Use this before delete_algo; it is reversible with activate_algo, but inspect open positions first because deactivation does not automatically flatten broker exposure.
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": {
"algo_id": "<algo_id>",
"instance_id": "<instance_id>"
},
"name": "deactivate_algo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| algo_id | Yes | ID of the algorithm | |
| instance_id | Yes | ID of the trading instance |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| message | No | ||
| success | No |