Cancel Order

POST {{URL_ORIGIN}}/api/operations/cancel-order

Cancel Order API allows you to cancel order

Cancel order - Fields

FieldTypeDescription
instrumentIdIntInstrument id for the trade
orderIdIntthe Id of the order we want to cancel
(NEW 1.32.0)
cancelReason
EnumOptional
Cancellation reason. (populated in the cancellation events)

Allowed values:
CancelOrderOnBehalf(default if nothing is sent)
CancelRequest
CorporateAction

Cancel Order - Error Codes

CodeMessage
1System is unavailable
100Missing or invalid parameter: [FieldName]
101[FieldName] not found
102Trading is not allowed during crossing
102Instrument trading is not allowed
102Market is closed
102Instrument trading is halt
101Not allowed
10001Permission denied

Request Body

{"instrumentId"=>"123", "orderId"=>"1"}

RESPONSES

status: OK