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

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

Available margin market. Example: BTC_USDT

side
enum<string>
required

Order type. Variables: 'buy' / 'sell'. For open long position use buy, for short sell.

Available options:
buy,
sell
amount
string
required

Amount of stock currency to buy or sell.

price
string
required

Price in money currency. Example: '9800'

request
string
required
nonce
string
required
clientOrderId
string

Identifier should be unique and contain letters, dashes, numbers, dots or underscores.

stopLoss
string

Stop loss price, if exist create OTO with stop loss

takeProfit
string

Take profit price, if exist create OTO with take profit

postOnly
boolean

Orders are guaranteed to be the maker order when executed.

ioc
boolean

An immediate or cancel order (IOC) is an order that attempts to execute all or part immediately and then cancels any unfilled portion.

positionSide
enum<string>

Defines the position direction when hedge mode is enabled. See positionSide

Available options:
long,
short,
both

Response

Order created