Skip to main content
{
    "method": "cancel_all_orders_after",
    "params": {
        "timeout": 100,
        "token": "zwpdzWUe18Bn6h4TAMorh26+QbcMeST2B5tamfe+pgQ"
    },
    "req_id": 1234567890
}

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.

WSSws-auth.kraken.com/v2cancel_all_orders_after
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_after request.
  • 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).
method
string
required
Value: cancel_all_orders_after
params
object
req_id
integer
Optional client originated request identifier sent as acknowledgment in the response.