Skip to main content
POST
Close Position

Authorizations

X-TXC-APIKEY
string
header
required

API Key authentication for private endpoints.

Required headers:

  • X-TXC-APIKEY: API key
  • X-TXC-PAYLOAD: Base64 encoded JSON payload
  • X-TXC-SIGNATURE: HMAC SHA512 signature

Body

application/json
positionId
integer
required
Example:

123

market
string
required
Example:

"BTC_USDT"

request
string
required
Example:

"{{request}}"

nonce
string
required
Example:

"{{nonce}}"

positionSide
enum<string>
Available options:
LONG,
SHORT,
BOTH
Example:

"LONG"

Response

Position closed