post deprecatedhttps://trade-hk.oslsandbox.com/api/3/order/cancel
Cancel one or more order(s) by order ID(s).
To call this endpoint, the API Key need to have the
Place and Manage Orders
permission enabled (via OSL website).
errorCode
Code Table
errorCode
Code TableCode | Description |
---|---|
ORDER_NOT_FOUND | The system is not able to find the requested order |
CANCEL_REQUEST_SUBMITTED | Cancel request submitted |
ERROR_ORDER_STATUS_SET_NO_CANCEL_CANCELLED | The order cannot be cancelled as order is already cancelled |
ERROR_ORDER_STATUS_SET_NO_CANCEL_AMENDED | The order cannot be cancelled as order ID does not exist after it has been amended |
ERROR_ORDER_STATUS_SET_NO_CANCEL_MATCHED | The order cannot be cancelled as it is already fully filled |
SYSTEM_ERROR | The state of the order is uncertain |