Skip to main content
POST
/
api
/
v1
/
orders
Query unexecuted(active) orders
curl --request POST \
  --url https://whitebit.com/api/v1/orders \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --data '
{
  "market": "BTC_USDT",
  "offset": 0,
  "limit": 100
}
'
[
  {
    "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"

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: 1 <= x <= 100
Example:

100

offset
integer
default:0

If you want the request to return entries starting from a particular line, you can use OFFSET clause to tell it where it should start. Default: 0, Min: 0, Max: 10000

Required range: 0 <= x <= 10000
Example:

0

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"