Skip to main content
POST
/
api
/
v4
/
order
/
new
Create Limit Order
curl --request POST \
  --url https://whitebit.com/api/v4/order/new \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --data '
{
  "market": "BTC_USDT",
  "side": "buy",
  "amount": "0.001",
  "price": "9800",
  "request": "<string>",
  "nonce": "<string>",
  "clientOrderId": "<string>",
  "postOnly": false,
  "ioc": false,
  "bboRole": 1,
  "stp": "no"
}
'
{
  "orderId": 123,
  "clientOrderId": "<string>",
  "market": "<string>",
  "side": "<string>",
  "type": "<string>",
  "timestamp": 123,
  "dealMoney": "<string>",
  "dealStock": "<string>",
  "amount": "<string>",
  "left": "<string>",
  "dealFee": "<string>",
  "price": "<string>",
  "postOnly": true,
  "ioc": true,
  "status": "<string>",
  "stp": "<string>",
  "positionSide": "<string>"
}

Authorizations

X-TXC-APIKEY
string
header
required

API Key authentication for private endpoints.

Required headers:

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

Body

application/json
market
string
required
Example:

"BTC_USDT"

side
enum<string>
required
Available options:
buy,
sell
amount
string
required
Example:

"0.001"

price
string
required
Example:

"9800"

request
string
required
nonce
string
required
clientOrderId
string
postOnly
boolean
default:false
ioc
boolean
default:false
bboRole
enum<integer>
Available options:
1,
2
stp
enum<string>
default:no
Available options:
no,
cancel_both,
cancel_new,
cancel_old

Response

200 - application/json

Order created successfully

orderId
integer
clientOrderId
string
market
string
side
string
type
string
timestamp
number
dealMoney
string
dealStock
string
amount
string
left
string
dealFee
string
price
string
postOnly
boolean
ioc
boolean
status
string
stp
string
positionSide
string