Trade Cancellation
POST {{URL_ORIGIN}}/api/operations/cancel-trade
Trade Cancellation API allows you to cancel a trade
Trade Cancellation- Fields
| Field | Type | Description |
|---|---|---|
| instrumentId | int | Instrument ID to cancel the orders |
| matchId | int | Trade Id to cancel |
Trade Cancellation- Error Codes
| Code | Message |
|---|---|
| 1 | System is unavailable |
| 100 | Missing or invalid parameter: [FieldName] |
| 101 | [FieldName] not found |
| 102 | Market is closed |
| 102 | Currently not allowed |
| 102 | Instrument trading is not allowed |
| 105 | Cancelation failed, trade is already canceled or from previous days or is leg trade |
| 10001 | Permission 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"}