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 String | Instrument ID to cancel the orders |
| matchId | int String | 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"=>"1", "matchId"=>"5555"}
RESPONSES
status: OK
{}