Cancel all after (dead man's switch)
POSTπ Trading
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β
| Name | Type | Required | Description |
|---|---|---|---|
| timeoutMs | Long | Yes | Timer 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β
| Name | Type | Description |
|---|---|---|
| success | Boolean | True if the cancel-all-after timer was successfully armed or updated. |
example
POST
https://api.btse.com/futures/api/v3/trade/orders/cancel_all_afterRequest (default)
{
"timeoutMs": 86400000
}
Response (default)
{
"success": true
}