Place a collateral 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'. For open long position use buy, for short sell.
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"
Limit order price in money currency. Minimum price step is market-dependent — query the market info endpoint for constraints.
"40000"
"{{request}}"
"{{nonce}}"
Custom order identifier. Must be unique and contain only letters, numbers, dashes, dots, or underscores.
"order1987111"
When true, the order executes all or part immediately and cancels any unfilled portion. Cannot be combined with postOnly=true or rpi=true.
false
Enables Retail Price Improvement (RPI) mode.
RPI orders are post-only by design and cannot be used with ioc=true. The API returns error code 37 when both rpi=true and ioc=true are used.
true
Defines the position direction when hedge mode is enabled. See positionSide
LONG, SHORT, BOTH "LONG"
Successful response - order created
Unique order identifier
4180284841
Custom client order identifier. Empty string if not specified
"order1987111"
Market name
"BTC_USDT"
Order side
buy, sell "buy"
Order type
"limit"
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.01"
Remaining amount that must be finished
"0.001"
Fee in money that is paid when order is finished
"0"
Order price
"40000"
Post-only flag
false
Immediate or cancel flag
false
Order status
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"
Retail Price Improvement flag
true