Skip to main content

Cancel all after (dead man's switch)

Arms a timer that cancels all of the caller's outstanding orders if no follow-up call is received within timeoutMs. Calling again resets the timer; sending 0 disarms it.

Request Parameters​

NameTypeRequiredDescription
timeoutMsLongYesTimer duration in milliseconds. If no cancel-all-after request is received again within this window, all of the caller's outstanding orders are cancelled. Send 0 to disarm the timer.

Response Content​

NameTypeDescription
successBooleanTrue if the cancel-all-after timer was successfully armed or updated.
example
POSThttps://api.btse.com/futures/api/v3/trade/orders/cancel_all_after

Request (default)

{
"timeoutMs": 86400000
}

Response (default)

{
"success": true
}