---
title: "Cancel all orders"
url: https://docs.truemarkets.co/api/institutional/cancel-all-orders-cefi
description: "Requests cancellation of every active order belonging to the authenticated client. Processed asynchronously: the gateway dispatches a cancel per order and returns 202 Accepted immediately, listing the orders a cancel was dispatched for in accepted. Per-order completion is reported on the order event stream (cancel reports), not in this response. N.B. it is still possible to receive trades on an order while it is being canceled."
---

Docs index: https://docs.truemarkets.co/llms.txt

# Cancel all orders

Requests cancellation of every active order belonging to the authenticated client. Processed asynchronously: the gateway dispatches a cancel per order and returns **202 Accepted** immediately, listing the orders a cancel was dispatched for in `accepted`. Per-order completion is reported on the order event stream (cancel reports), not in this response. N.B. it is still possible to receive trades on an order while it is being canceled.

## Request

```
DELETE https://api.truex.co/v1/cefi/orders/all
```

### Authentication

Bearer token in `Authorization`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `x-truex-auth-timestamp` | header | string | yes | Timestamp when request was made in seconds since epoch. Must be no older than 15 seconds and no more than 1 second in the future. It guards against replayed requests. |

## Responses

Every error status returns the same body, described in [Errors](https://docs.truemarkets.co/developer-resources/errors.md).

### 202

Request accepted; cancellations are processed asynchronously.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `accepted` | array of string | yes | Ref ids of orders a cancel was dispatched for. |

### 401

Unauthorized.

### 403

Forbidden.

### 500

Internal server error.

### 503

Service unavailable.
