Skip to main content
POST
/
api
/
v4
/
order
/
cancel
/
all
Cancel all orders
curl --request POST \
  --url https://whitebit.com/api/v4/order/cancel/all \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --data '
{
  "market": "BTC_USDT",
  "type": [
    "spot",
    "margin",
    "futures"
  ]
}
'
{
  "code": 30,
  "message": "Validation failed",
  "errors": {}
}

Authorizations

X-TXC-APIKEY
string
header
required

API Key authentication for private endpoints.

Required headers:

  • X-TXC-APIKEY: API key
  • X-TXC-PAYLOAD: Base64 encoded JSON payload
  • X-TXC-SIGNATURE: HMAC SHA512 signature

Body

application/json
market
string

Available market. Example: BTC_USDT

Example:

"BTC_USDT"

type
enum<string>[]

Order types value. Example: 'spot', 'margin', 'futures'

Available options:
spot,
margin,
futures
Example:
["spot", "margin", "futures"]
request
string
Example:

"{{request}}"

nonce
string
Example:

"{{nonce}}"

Response

Orders cancelled successfully