Close an open collateral trading position at market price via the WhiteBIT V4 API.
Documentation Index
Fetch the complete documentation index at: https://whitebit-mintlify-fix-broken-links-1776643999.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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