cURL
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>" }
This endpoint creates limit trading order.
Rate limit: 10000 requests/10 sec.
API Key authentication for private endpoints.
Required headers:
"BTC_USDT"
buy
sell
"0.001"
"9800"
1
2
no
cancel_both
cancel_new
cancel_old
Order created successfully