Skip to main content
POST
/
api
/
v1
/
order
/
cancel
Cancel order
curl --request POST \
  --url https://whitebit.com/api/v1/order/cancel \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --data '
{
  "market": "BTC_USDT",
  "orderId": 4180284841
}
'
{
  "orderId": 4180284841,
  "clientOrderId": "order1987111",
  "market": "BTC_USDT",
  "side": "buy",
  "type": "limit",
  "timestamp": 1595792396.165973,
  "dealMoney": "0",
  "dealStock": "0",
  "amount": "0.001",
  "makerFee": "0.001",
  "takerFee": "0.001",
  "left": "0.001",
  "dealFee": "0",
  "price": "40000"
}

Authorizations

X-TXC-APIKEY
string
header
required

API key authentication requires three headers:

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

Body

application/json
market
string
required

Available market. Example: BTC_USDT

Example:

"BTC_USDT"

orderId
integer
required

Order Id. Example: 4180284841

Example:

4180284841

request
string

Request path

nonce
integer

Nonce for request

Response

Successful response

orderId
integer

order id

Example:

4180284841

clientOrderId
string

custom client order id; "clientOrderId": "" - if not specified.

Example:

"order1987111"

market
string

deal market

Example:

"BTC_USDT"

side
enum<string>

order side

Available options:
buy,
sell
Example:

"buy"

type
string

order type

Example:

"limit"

timestamp
number

timestamp of order creation

Example:

1595792396.165973

dealMoney
string

if order finished - amount in money currency that finished

Example:

"0"

dealStock
string

if order finished - amount in stock currency that finished

Example:

"0"

amount
string

amount

Example:

"0.001"

makerFee
string

maker fee ratio. If the number less than 0.0001 - its rounded to zero

Example:

"0.001"

takerFee
string

taker fee ratio. If the number less than 0.0001 - its rounded to zero

Example:

"0.001"

left
string

if order not finished - rest of amount that must be finished

Example:

"0.001"

dealFee
string

fee in money that you pay if order is finished

Example:

"0"

price
string

price

Example:

"40000"