Skip to main content
POST
/
api
/
v4
/
order
/
collateral
/
bulk
Collateral bulk limit order
curl --request POST \
  --url https://whitebit.com/api/v4/order/collateral/bulk \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --data '
{
  "orders": [
    {
      "market": "<string>",
      "side": "buy",
      "amount": "<string>",
      "price": "<string>",
      "clientOrderId": "<string>",
      "stopLoss": "<string>",
      "takeProfit": "<string>",
      "postOnly": true,
      "ioc": true,
      "rpi": true,
      "positionSide": "long"
    }
  ],
  "stopOnFail": false,
  "request": "<string>",
  "nonce": "<string>"
}
'
{
  "code": 123,
  "message": "<string>",
  "errors": {}
}

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
orders
object[]
stopOnFail
boolean
default:false

Controls how the bulk order processor handles failures.

When true: Processing stops at the first order that fails validation or execution. Only orders up to (but not including) the failed order are processed.

When false (default): All orders in the bulk request are processed regardless of individual failures. Each order result is returned in the response array.

request
string
nonce
string

Response

Orders created