Place a collateral stop-limit order with a specified trigger 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 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.001"
"{{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"
Successful response - stop-limit 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
"stop 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.001"
Remaining amount that must be finished
"0.001"
Fee in money that is paid when order is finished
"0"
Order price
"40000"
Price at which the stop-limit order activates
"40000"
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"