Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
cancel_all_orders_after provides a “Dead Man’s Switch” mechanism to protect from network malfunction, extreme latency or unexpected matching engine downtime.
- The client sends request with a timeout (in seconds), that will start a countdown timer in the trading engine which will cancel all client orders when the timer expires.
- The client must keep sending new requests to reset the trigger time, or deactivate the mechanism by specifying a timeout of 0.
- If the timer expires, all orders in the account are cancelled and the feature is disabled until the next
cancel_all_orders_afterrequest. - The recommended use is to make a call every 15 to 30 seconds, providing a timeout of 60 seconds. This allows the client to keep the orders in place in case of a brief disconnection or transient delay, while keeping them safe in case of a network breakdown.
It is recommended to disable the timer ahead of scheduled trading engine maintenance (if the timer is enabled, all orders will be cancelled when the trading engine comes back from downtime).