cancelAllOrdersAfter provides a “Dead Man’s Switch” mechanism to protect the client from network malfunction, extreme latency or unexpected matching engine downtime. The client can send a request with a timeout (in seconds), that will start a countdown timer which will cancel all client orders when the timer expires.
The recommended use is to make a call every 15 to 30 seconds, providing a timeout of 60 seconds.
- Request
- Response
string
required
Value:
cancelAllOrdersAfterinteger
required
Timeout specified in seconds. 0 to disable the timer.
integer
Optional client originated request identifier sent as acknowledgment in the response.
string
required
Session token from the GetWebSocketsToken REST endpoint.