Cancel All Orders
TRADING
channel in order to send trading messages.Cancel All Orders Request
{
"type": "CANCEL_ALL_ORDERS",
"instrument_code": "BTC_EUR" // Optional
}
CancelAllOrdersRequest
type
enum<string>
required
Allowed value:
CANCEL_ALL_ORDERS
instrument_code
string
optional
Cancel All Orders Response
Error
No orders to cancel
{
"error": "no orders to cancel"
}
Invalid request
{
"error": "PAIR_ERROR",
"payload": {
"type": "CANCEL_ALL_ORDERS",
"instrument_code": "BTC_PEPE"
}
}
Success
{
"channel_name": "TRADING",
"type": "BOOKED",
"details": "cancelling 2 orders"
}