Logo
Admin API API Documentation

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

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK





Curl
curl -X POST 'URL_ORIGIN/api/operations/cancel-order' -d '{"instrumentId":"123","orderId":"1"}'

ENDPOINTS