Close an open collateral trading position at market 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)).
Unique identifier of the position to close. Obtain from the open positions endpoint.
123
Market of the position to close. Example: BTC_USDT
"BTC_USDT"
"{{request}}"
"{{nonce}}"
Defines the position direction when hedge mode is enabled. See positionSide
LONG, SHORT, BOTH "LONG"
Position closed