Place a collateral trigger market order for execution at market price upon reaching the trigger price.
reduceOnly parameter documented on this page is coming soon. The documentation is published in advance for integration planning. The parameter is not yet accepted by the API. See Reduce-only orders for details.The public WhiteBIT API key.
Base64-encoded JSON request body.
HMAC-SHA512 signature of the payload, hex-encoded. Computed as hex(HMAC-SHA512(payload, api_secret)).
Order direction. Use buy to open or increase a long position and sell to open or increase a short position.
buy, sell "buy"
Amount of stock currency to buy or sell. Minimum and step values are market-dependent — query the market info endpoint for constraints.
"0.01"
"{{request}}"
"{{nonce}}"
Custom order identifier. Must be unique and contain only letters, numbers, dashes, dots, or underscores.
"order1987111"
Defines the position direction when hedge mode is enabled. See positionSide
LONG, SHORT, BOTH "LONG"
When true, the order can only reduce or close an existing position — the order cannot increase the position or open a new one. If the order amount exceeds the current position size, the system reduces the order to match. The API returns error code 116 if no open position exists or the order side matches the position direction. See reduce-only.
false
Successful response - trigger market order created
Unique order identifier
4180284841
Custom client order identifier. Empty string if not specified
"order1987111"
Market name
"BTC_USDT"
Order side
buy, sell "sell"
Order type
"stop market"
Unix timestamp in seconds (UTC) of order creation, with microsecond precision.
1595792396.165973
Amount in money currency that is finished
"0"
Amount in stock currency that is finished
"0"
Order amount
"0.001"
Remaining amount that must be finished
"0.001"
Fee in money that is paid when order is finished
"0"
Price at which the stop market order activates
"40000"
Order status. NEW — accepted, not yet matched. FILLED — fully executed. PARTIALLY_FILLED — partially executed, remainder still active. CANCELLED — canceled before full execution.
NEW, FILLED, PARTIALLY_FILLED, CANCELLED "FILLED"
Self trade prevention mode
"no"
OTO order data when stopLoss or takeProfit is specified
Position side
LONG, SHORT, BOTH "LONG"
Reduce-only flag
false