Cancel Order

Cancels the specified order

When you send a cancel order, you will see the status of the order change by way of receiving an "oc" message. You will also receive a notification that the order was requested to be canceled of the type "oc-req".

You can cancel the order by the Internal Order ID or using a Client Order ID (supplied by you). The Client Order ID is unique per day, so you also have to provide the date of the order as a date string in this format YYYY-MM-DD.

// Cancel order by internal order Id
[
  0,
  "oc",
  [
    [
      ID,
      GID,
      CID,
      ...
    ], 
    ...
  ]
]

Request Fields

NameTypeDescription
IDintOrder ID
GIDintGroup ID
CIDintClient Order ID