set_cancel_on_disconnect
Enable or disable automatic cancellation of all orders when a WebSocket disconnects to prevent stale orders; optionally specify a wallet.
Instructions
Enable/disable auto-cancel all orders on WebSocket disconnect.
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": {
"enabled": "<enabled>"
},
"name": "set_cancel_on_disconnect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | No | Wallet address (defaults to configured) | |
| enabled | Yes | Enable/disable cancel-on-disconnect |