set_cancel_on_disconnect
Manage cancel-on-disconnect (COD) for your exchange account. Enable to auto-cancel all resting orders if your WebSocket drops, or disable to keep them active.
Instructions
Enable or disable cancel-on-disconnect (COD) for the authenticated account. Pass enabled: true to arm the dead man's switch (the exchange cancels all resting orders when your authenticated WebSocket drops and does not reconnect within the grace window) or enabled: false to disable it. Off by default. enabled is required and explicit — there is no default — so every call states the intended state and an argless call is rejected rather than silently toggling. Returns the resulting COD status. Requires API credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | True to enable COD for the account, false to disable. |