---
title: "Cancel multiple orders in batch"
method: POST
path: "/orders/cancel-batch"
tags: ["Trading"]
---

# Cancel multiple orders in batch

`POST /orders/cancel-batch`

## Request body

- DeleteOrderBatchDto
  - `orderIds` array[], required — Array of order IDs to be cancelled in a single batch operation
    - unknown[]
      - unknown

## Response `200`

All orders successfully cancelled

- CancelOrderBatchResponseDto
  - `message` string, required — Confirmation message for the cancelled orders
  - `canceled` string[] — Array of successfully cancelled order IDs
  - `failed` CancelOrderFailure[] — Array of orders that failed to cancel with reasons
    - `orderId` string, required — Order ID that failed to cancel
    - `reason` 'ORDER_NOT_FOUND' | 'UNKNOWN_ERROR', required — Error code indicating the reason for failure
    - `message` string, required — User-friendly error message

## Other responses

- `207` — Partial success - some orders cancelled, some failed
- `400` — Orders from different markets, invalid order data, or no orders could be cancelled
- `401` — User not authenticated or not the owner of all orders
- `425` — Cancellation is temporarily blocked because trading is disabled by maintenance mode
- `500` — Server error during batch cancellation

---

[API](https://skmtc.net/limitless-labs-group/apis/limitless-exchange-api.md) · [All operations](https://skmtc.net/limitless-labs-group/apis/limitless-exchange-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/limitless-labs-group/limitless-exchange-api/revisions/f60847044e0d/schema)
