Skip to content

Cancel Pending Trade

Cancels a pending order for the authenticated client account.

DELETE

https://{some_domain}/trade/cancel

Authorization

All requests must include a JWT token:

Authorization: <JWT_TOKEN>

Request

Content-Type: application/json

Body Parameters

Field Type Required Description
order int Yes Pending order ID

Response

Success (200)

{
  "accepted": true,
  "order": 123456,
  "state": 9
}

Error Responses

Code Error Description
400 INVALID_DATA Validation failed
401 PERMISSION_DENIED Missing or invalid authenticated session
403 PERMISSION_DENIED Order does not belong to the authenticated session
4xx/5xx RET_* Runtime validation or cancel error

Only pending orders are supported. Non-pending orders are rejected with RET_TRADE_INCORRECT_CMD.