curl --request POST \
--url https://whitebit.com/api/v4/collateral-account/position/close \
--header 'Content-Type: application/json' \
--header 'X-TXC-APIKEY: <api-key>' \
--data '
{
"positionId": 123,
"market": "<string>",
"request": "<string>",
"nonce": "<string>",
"positionSide": "long"
}
'