Delete Trading Instance
delete_instancePermanently delete a trading instance and free a slot (max 10 per user). Stop ≠ delete. For live instances pass force=true. If open positions exist, the tool returns error_type=open_positions_require_confirm with open_positions — show them to the user, warn that delete will close all open positions, then retry with confirm_close_positions=true after explicit user OK.
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": {
"instance_id": "<instance_id>"
},
"name": "delete_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Required true when the instance is live; stops then deletes | |
| instance_id | Yes | ID of the trading instance to delete (from list_instances) | |
| confirm_close_positions | No | Required true when open positions exist; closes them then deletes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| message | No | ||
| success | No |