Cancel Order
POST {{URL_ORIGIN}}/api/operations/cancel-order
Cancel Order API allows you to cancel order
Cancel order - Fields
| Field | Type | Description |
|---|---|---|
| instrumentId | Int | Instrument id for the trade |
| orderId | Int | the Id of the order we want to cancel |
(NEW 1.32.0) cancelReason | Enum | Optional Cancellation reason. (populated in the cancellation events) Allowed values: CancelOrderOnBehalf(default if nothing is sent) CancelRequest CorporateAction |
Cancel Order - Error Codes
| Code | Message |
|---|---|
| 1 | System is unavailable |
| 100 | Missing or invalid parameter: [FieldName] |
| 101 | [FieldName] not found |
| 102 | Trading is not allowed during crossing |
| 102 | Instrument trading is not allowed |
| 102 | Market is closed |
| 102 | Instrument trading is halt |
| 101 | Not allowed |
| 10001 | Permission denied |
Request Body
{"instrumentId"=>"123", "orderId"=>"1"}
RESPONSES
status: OK