Place a collateral trigger market order for execution at market price upon reaching the trigger price.
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"
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, 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"