Trade

Cancel Limit Close

This endpoint supports the canceling the limit close positions.

HTTP Request

POST /v1/trade/cancel-limit-close

NOTE

Don't include trailing slash / at the end of the endpoint. Doing so can result in a “not found” error.

Request Parameters

ParameterRequiredTypeComments
idtruenumberid of the position

Response Parameters

ParameterTypeComments
statusCodenumber200
resultstringSuccess
messagestringLimit close canceled successfully!
ParameterTypeComments
statusCodenumber10004
resultstringNot Found
messagestringPosition not found or no limit close set!

INFO

The ack of tpsl indicates that the request is successfully accepted. Please use websocket order stream to confirm the status.

Request Example

POST /v1/trade/cancel-limit-close HTTP/1.1
Host: api.okxai.net
X-OKXAI-SIGN: XXXXX
X-OKXAI-API-KEY: XXXXX
Content-Type: application/json
 
{
  "id": 456,  
}

Response Example

{
  "statusCode": 200,
  "result": "Success",
  "message": "Limit close canceled successfully!",
}

On this page