Place a spot limit order to buy or sell at a specified price via the WhiteBIT V4 API.
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 type. Variables: 'buy' / 'sell' Example: 'buy'
buy, sell "buy"
Price in money currency. Example: '9800' or 9800
"9800"
"{{request}}"
"{{nonce}}"
Identifier should be unique and contain letters, dashes, numbers, dots or underscores. The identifier must be unique.
"order1987111"
Immediate-or-cancel (IOC) executes all or part of an order immediately and cancels any unfilled portion.
IOC does not support rpi=true because RPI uses post-only behavior by design.
The API returns error code 37 when a request sets both ioc=true and rpi=true.
Refer to Order Parameter Rules for unsupported parameter combinations.
false
Self trade prevention mode. Variables: 'no' / 'cancel_both' / 'cancel_new' / 'cancel_old'. Example: 'no'.
no, cancel_both, cancel_new, cancel_old "no"
Enables Retail Price Improvement (RPI) mode.
RPI orders use post-only behavior by design. An RPI order does not support ioc=true.
The API returns error code 37 when a request sets both rpi=true and ioc=true.
RPI orders do not appear in public order book feeds (depth, bookTicker). RPI orders are visible only in private active orders and in the exchange UI order book (web/mobile).
RPI executions may apply custom fees or rebates, especially when trading via sub-accounts. Use Query Market Fee / Query All Market Fees to verify effective fees.
Refer to Order Parameter Rules for unsupported parameter combinations.
true
Order created successfully
Order ID
4180284841
Custom client order ID; empty string if not specified
"order1987111"
Deal market
"BTC_USDT"
Order side
"buy"
Order type
"limit"
Timestamp of order creation
1595792396.165973
If order finished - amount in money currency that is finished
"0"
If order finished - amount in stock currency that is finished
"0"
Amount
"0.01"
If order not finished - rest of the amount that must be finished
"0.001"
Fee in money currency when order is filled
"0"
Price
"40000"
PostOnly flag
false
IOC flag
false
Order status
"FILLED"
Self trade prevention mode
"no"
Position side (for collateral orders)
"LONG"
Indicates Retail Price Improvement (RPI) mode for the order.
true
Activation status of the stop order. 0 = not yet triggered (waiting for the activation_price condition to be met). 1 = triggered (the stop condition has been met and the order is now active).
0
Condition that triggers the stop order. "lte" = activate when the market price falls to or below activation_price. "gte" = activate when the market price rises to or above activation_price.
lte, gte "lte"
The trigger price for the stop order. Always equals the activation_price value submitted in the request.
"40000"