Sync kill-switch timer
Set or reset a kill-switch timer for automatic cancellation of open spot, margin, or futures orders after a timeout.
Authorizations
The public WhiteBIT API key.
Base64-encoded JSON request body.
HMAC-SHA512 signature of the payload, hex-encoded. Computed as hex(HMAC-SHA512(payload, api_secret)).
Body
Timer value in seconds ('5'-'600'), or null to delete the existing timer. The key must always be present — omitting it fails validation.
"60"
Order types to target. Valid values: "spot" — standard spot orders. "margin" — marginal orders placed on spot markets. Note: the "margin" value is not the same as the collateral account balance; "collateral" in other endpoints refers to the funding account, whereas "margin" here refers specifically to the order type. "futures" — marginal orders placed on futures markets (e.g., BTC_PERP). If omitted, the API targets all order types.
1 - 3 elementsspot, margin, futures "{{request}}"
1594297865000
Response
Successful response — creating or updating a timer returns the timer object; deleting a timer (timeout: null) returns a literal empty array ([]).
Trading pair the timer applies to.
"BTC_USDT"
Unix timestamp (seconds) when the timer was created or last reset.
1662478154
Unix timestamp (seconds) when the kill-switch will cancel orders. Equals startTime + timeout.
1662478154
Order types targeted by the kill-switch. Possible values: spot, margin, futures. Returns null when the timer was created without types (the kill-switch then targets all order types).
spot, margin, futures