Cancel all orders request
POST/v1/orders/cancel/all
This request cancels all open orders on single specified exchange.
Request
- application/json
Body
required
OrderCancelAllRequest object.
Identifier of the exchange from which active orders should be canceled.
Responses
- 200
- 400
- 490
Result
- application/json
- Schema
- Example (from schema)
Schema
Message type, constant.
Possible values: [OTHER
, EXCHANGE_UNREACHABLE
, EXCHANGE_RESPONSE_TIMEOUT
, ORDER_ID_NOT_FOUND
, INVALID_TYPE
, METHOD_NOT_SUPPORTED
, JSON_ERROR
]
Cause of rejection.
If the message related to exchange, then the identifier of the exchange will be provided.
Message text.
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": "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
Message type, constant.
Possible values: [OTHER
, EXCHANGE_UNREACHABLE
, EXCHANGE_RESPONSE_TIMEOUT
, ORDER_ID_NOT_FOUND
, INVALID_TYPE
, METHOD_NOT_SUPPORTED
, JSON_ERROR
]
Cause of rejection.
If the message related to exchange, then the identifier of the exchange will be provided.
Message text.
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\"}"
}