Cancel Order
DELETE /api/v3/trading/order
Body Parameters
| Parameter | Type | Description |
|---|---|---|
| order_ids | array | An array of order IDs, e.g., [1, 5, 8] |
| all | boolean | Set true to cancel all orders |
| pair | string | Cancel all orders for a specific pair, e.g. BTC_USDT |
Note: Exactly one of
order_ids,all, orpairmust be specified.
Cancel by Order IDs
{
"order_ids": [1, 5, 8]
}
Response (map of order ID to status)
{
"1": "CANCELLED",
"5": "CANCELLED",
"8": "order not found"
}
Cancel All / Cancel by Pair
{
"all": true
}
Response
HTTP 202 Accepted (no body)
private_api.trading().cancel_order(12312332)
private_api.trading().cancel_orders([12312332, 12312334, 12312338])
private_api.trading().cancel_orders_of_pair('ETH_USDT')