private/close-position
POSTCancels position for a particular instrument/pair (asynchronous)./private/close-position
This call is asynchronous, so the response is simply a confirmation of the request.
The user.order subscription can be used to check when the order is successfully canceled.
Request
Body
required
Request id (echoed in response)
Must be "private/close-position"
Your API key (only required for private REST)
HMAC-SHA256 signature in hex (only required for private REST)
Current timestamp in milliseconds, e.g. "1771761038000".
params objectrequired
e.g. BTCUSD-PERP.
Possible values: [LIMIT, MARKET]
LIMIT or MARKET
For LIMIT orders only. Must use decimal precision matching the instrument's price_tick_size.
Positive number only. Only provide if intending to do partial closing.
Needed when closing an existing isolated position. If omitted, the non-isolated position will be closed.
Schema
Echoed request id
Method invoked
0 = success; non-zero indicates error (reason code).
result object
Order ID
Client Order ID
Present when code !== 0.
Present when code !== 0.