Cancel an order (WebSocket)

Send CANCEL_ORDER after login. Supply orderNo or reference; when both are present, orderNo takes precedence.

Arguments

FieldTypeRequiredDescription
brokerClientIdstringYesAccount ID identifying the client account for the request.
orderNostringNo / conditionalProvide orderNo or reference. If both are supplied, orderNo takes precedence.
referencestringNo / conditionalCaller-supplied reference; alternative to orderNo

Request

{
  "action": "CANCEL_ORDER",
  "id": "req-003",
  "args": {
    "brokerClientId": "client001",
    "orderNo": "23818"
  }
}

Response

{
  "event": "CANCEL_ORDER_ACK",
  "id": "req-003",
  "code": 0,
  "message": "success",
  "data": {
    "orderNo": "23818",
    "status": "0"
  }
}