Cancel all orders request
POST /v1/orders/cancel/all
This request cancels all open orders on single specified exchange.
- application/json
Request Body required
OrderCancelAllRequest object.
- exchange_id string required
Identifier of the exchange from which active orders should be canceled.
- 200
- 400
- 490
Result
- application/json
- Schema
- Example (from schema)
Schema
- type string
Message type, constant.
- reject_reason RejectReason
Possible values: [
OTHER
,EXCHANGE_UNREACHABLE
,EXCHANGE_RESPONSE_TIMEOUT
,ORDER_ID_NOT_FOUND
,INVALID_TYPE
,METHOD_NOT_SUPPORTED
,JSON_ERROR
]Cause of rejection.
- exchange_id string
If the message related to exchange, then the identifier of the exchange will be provided.
- message string
Message text.
- rejected_message string
Value of rejected request, if available.
{
"type": "MESSAGE_REJECT",
"reject_reason": "ORDER_ID_NOT_FOUND",
"exchange_id": "BINANCE",
"message": "Order with ID: BINANCE-7d8a-4888 not found",
"rejected_message": "{\"client_order_id\":\"BINANCE-7d8a-4888\",\"exchange_id\":\"BINANCE\",\"type\":\"ORDER_CANCEL_SINGLE_REQUEST\"}"
}
Input model validation errors.
- application/json
- Schema
- Example (from schema)
Schema
- type string
- title string
- status number
- traceId string
- errors string
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "d200e8b5-4271a5461ce5342f",
"errors": "string"
}
Exchange is unreachable.
- appliction/json
- Schema
- Example (from schema)
Schema
- type string
Message type, constant.
- reject_reason RejectReason
Possible values: [
OTHER
,EXCHANGE_UNREACHABLE
,EXCHANGE_RESPONSE_TIMEOUT
,ORDER_ID_NOT_FOUND
,INVALID_TYPE
,METHOD_NOT_SUPPORTED
,JSON_ERROR
]Cause of rejection.
- exchange_id string
If the message related to exchange, then the identifier of the exchange will be provided.
- message string
Message text.
- rejected_message string
Value of rejected request, if available.
{
"type": "MESSAGE_REJECT",
"reject_reason": "ORDER_ID_NOT_FOUND",
"exchange_id": "BINANCE",
"message": "Order with ID: BINANCE-7d8a-4888 not found",
"rejected_message": "{\"client_order_id\":\"BINANCE-7d8a-4888\",\"exchange_id\":\"BINANCE\",\"type\":\"ORDER_CANCEL_SINGLE_REQUEST\"}"
}