> For the complete documentation index, see [llms.txt](https://ajaib.gitbook.io/ajaib-exchange-open-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajaib.gitbook.io/ajaib-exchange-open-api/api-references/markdown/cancel-all-open-orders.md).

# Cancel All Open Orders

## Cancel all open orders orders under exchange client

<mark style="color:red;">`DELETE`</mark> `/v1/order/open`

**Functionality:** Cancels or withdraws a list of all open orders belonging to the exchange client's trading account.&#x20;

This endpoint's purpose is to allow the client to quickly inform the exchange a batch of instructions under a single request i.e. cancel all open orders.&#x20;

**Authentication**: Required

#### URL Parameters

<table><thead><tr><th width="164">Name</th><th width="107">Type</th><th width="123" data-type="checkbox">Mandatory</th><th>Description</th></tr></thead><tbody><tr><td>symbol</td><td>string</td><td>true</td><td>Symbol of trading pair. Refer to <a href="https://ajaib.gitbook.io/coin-exchange-open-api/getting-started/quickstart#:~:text=Asset%20Symbols%20/%20Trading%20Pairs">this</a>.</td></tr><tr><td>recvWindow</td><td>long</td><td>false</td><td>Number of milliseconds after timestamp the request is valid for. Refer to <a href="https://ajaib.gitbook.io/ajaib-exchange-open-api/getting-started/timing-security">this</a>.</td></tr><tr><td>timestamp</td><td>long</td><td>true</td><td>Timestamp when client sending request.</td></tr></tbody></table>

**Response Body**

<table><thead><tr><th width="186">Name</th><th width="97">Type</th><th>Description</th></tr></thead><tbody><tr><td>symbol</td><td>string</td><td>Symbol of trading pair. Refer to <a href="https://ajaib.gitbook.io/coin-exchange-open-api/getting-started/quickstart#:~:text=Asset%20Symbols%20/%20Trading%20Pairs">this</a>.</td></tr><tr><td>orderId</td><td>string</td><td>Unique identifier generated by Ajaib exchange for orders submitted successfully</td></tr><tr><td>origClientOrderId</td><td>string</td><td>Original client order ID; This is the ID of the order being canceled</td></tr><tr><td>clientOrderId</td><td>string</td><td>cancel request identifier. Automatically generated.</td></tr><tr><td>type</td><td>string</td><td>Type of order. Refer to <a href="https://ajaib.gitbook.io/coin-exchange-open-api/getting-started/quickstart#:~:text=Bitcoin%3B%20USD%20Tether-,Order%20Types,-Enum">this</a>.</td></tr><tr><td>side</td><td>string</td><td>Side of order book. Refer to <a href="https://ajaib.gitbook.io/coin-exchange-open-api/getting-started/quickstart#:~:text=will%20be%20expired).-,Order%20Sides,-Enum">this</a>.</td></tr><tr><td>price</td><td>string</td><td>Requested price of order.</td></tr><tr><td>origQty</td><td>string</td><td>Requested quantity of order.</td></tr><tr><td>executedQty</td><td>string</td><td>Total order quantity already matched or executed.</td></tr><tr><td>origQuoteOrderQty</td><td>string</td><td>Requested amount of order.</td></tr><tr><td>cummulativeQuoteQty</td><td>string</td><td>Total order amount already matched or executed.</td></tr><tr><td>status</td><td>string</td><td>Status of order. Refer to <a href="https://app.gitbook.com/o/LdxNUhLARU4i5PWgRIYE/s/QFDWMfeUb31y6zAF2lKc/getting-started/quickstart#asset-symbols-trading-pairs:~:text=Order%20Status%20%26%20Lifecycle,Comment">this</a>.</td></tr><tr><td>timeInForce</td><td>string</td><td>Time in force mode. Refer to <a href="https://app.gitbook.com/o/LdxNUhLARU4i5PWgRIYE/s/QFDWMfeUb31y6zAF2lKc/~/changes/4/getting-started/quickstart#:~:text=Time%20in%20Force,Comment">this</a>.</td></tr><tr><td>selfTradePreventionMode</td><td>string</td><td>Self trade prevention mode. Refer to <a href="https://ajaib.gitbook.io/coin-exchange-open-api/getting-started/quickstart#:~:text=End%20of%20state.-,Self%20Trade%20Prevention,-There%20are%20four">this</a>.</td></tr><tr><td>transactTime</td><td>long</td><td>Timestamp when order cancelled</td></tr></tbody></table>

{% tabs %}
{% tab title="200 OK" %}

```
[
  {
    "symbol": "BTC_USDT",
    "orderId": "de7fad3e-d13e-41fb-973e-967065b42a54",
    "origClientOrderId": "ce7fad3e-d13e-41fb-973e-967065b42a57",
    "clientOrderId": "de7fad3e-d13e-41fb-973e-967065b42a56",
    "price": "0.00000000",
    "origQty": "10.00000000",
    "executedQty": "10.00000000",
    "origQuoteOrderQty": "0.000000",
    "cummulativeQuoteQty": "10.00000000",
    "status": "FILLED",
    "timeInForce": "GTC",
    "type": "MARKET",
    "side": "SELL",
    "selfTradePreventionMode": "NONE",
    "transactTime": 1499827319559,
  },
  {
    "symbol": "BTC_USDT",
    "orderId": "de7fad3e-d13e-41fb-973e-967065b42a54",
    "origClientOrderId": "de7fad3e-d13e-41fb-973e-967065b42a57",
    "clientOrderId": "de7fad3e-d13e-41fb-973e-967065b42a56",
    "price": "0.00000000",
    "origQty": "10.00000000",
    "executedQty": "10.00000000",
    "origQuoteOrderQty": "0.000000",
    "cummulativeQuoteQty": "10.00000000",
    "status": "FILLED",
    "timeInForce": "GTC",
    "type": "MARKET",
    "side": "SELL",
    "selfTradePreventionMode": "NONE",
    "transactTime": 1499827319559
  }
]
```

{% endtab %}

{% tab title="401 Permission denied" %}

```
{
  "code": -1002,
  "msg": "Unauthorized"
}
```

{% endtab %}
{% endtabs %}
