Skip to main content
POST
/
api
/
v4
/
orders
Query unexecuted(active) orders
curl --request POST \
  --url https://whitebit.com/api/v4/orders \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --data '
{
  "market": "BTC_USDT",
  "orderId": 3134995325,
  "clientOrderId": "customId11",
  "offset": 0,
  "limit": 50,
  "request": "{{request}}",
  "nonce": "{{nonce}}"
}
'
[
  {
    "orderId": 4180284841,
    "clientOrderId": "order1987111",
    "market": "BTC_USDT",
    "side": "buy",
    "type": "limit",
    "timestamp": 1595792396.165973,
    "dealMoney": "0",
    "dealStock": "0",
    "amount": "0.01",
    "left": "0.001",
    "dealFee": "0",
    "price": "40000",
    "postOnly": false,
    "ioc": false,
    "status": "FILLED",
    "stp": "no",
    "positionSide": "LONG",
    "rpi": true
  }
]

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"

orderId
integer

Available orderId. Example: 3134995325

Example:

3134995325

clientOrderId
string

Available clientOrderId. Example: customId11

Example:

"customId11"

offset
integer
default:0

Starting line index (OFFSET). Default: 0, Min: 0

Example:

0

limit
integer
default:50

LIMIT is a special clause used to limit records a particular query can return. Default: 50, Min: 1, Max: 100

Required range: x <= 100
Example:

50

request
string
Example:

"{{request}}"

nonce
string
Example:

"{{nonce}}"

Response

List of active orders

orderId
integer

Order ID

Example:

4180284841

clientOrderId
string

Custom client order ID; empty string if not specified

Example:

"order1987111"

market
string

Deal market

Example:

"BTC_USDT"

side
string

Order side

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 is finished

Example:

"0"

dealStock
string

If order finished - amount in stock currency that is finished

Example:

"0"

amount
string

Amount

Example:

"0.01"

left
string

If order not finished - rest of the amount that must be finished

Example:

"0.001"

dealFee
string

Fee in money currency when order is filled

Example:

"0"

price
string

Price

Example:

"40000"

postOnly
boolean

PostOnly flag

Example:

false

ioc
boolean

IOC flag

Example:

false

status
string

Order status

Example:

"FILLED"

stp
string

Self trade prevention mode

Example:

"no"

positionSide
string

Position side (for collateral orders)

Example:

"LONG"

rpi
boolean

Indicates Retail Price Improvement (RPI) mode for the order.

Example:

true