Trade Cancellation

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

Trade Cancellation API allows you to cancel a trade

Trade Cancellation- Fields

FieldTypeDescription
instrumentIdintInstrument ID to cancel the orders
matchIdintTrade Id to cancel

Trade Cancellation- Error Codes

CodeMessage
1System is unavailable
100Missing or invalid parameter: [FieldName]
101[FieldName] not found
102Market is closed
102Currently not allowed
102Instrument trading is not allowed
105Cancelation failed, trade is already canceled or from previous days or is leg trade
10001Permission denied

Request Body

{"instrumentId"=>"123", "matchId"=>"11", "comment"=>"trade cancel"}

RESPONSES

status: OK

{"id":"286","data":{"instrumentId":"123","matchId":"11"},"requestType":"TradeCancellation","name":"INS1","status":"Pending","makerComment":"trade cancel","makerUserId":"auth0|6310aa4ba8cae50015ee3678","timestamp":"2024-02-29T09:37:20.237"}