Cancel Order

DELETE /api/v3/trading/order

Body Parameters

ParameterTypeDescription
order_idsarrayAn array of order IDs, e.g., [1, 5, 8]
allbooleanSet true to cancel all orders
pairstringCancel all orders for a specific pair, e.g. BTC_USDT

Note: Exactly one of order_ids, all, or pair must 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')