# Cancel Orders

{% hint style="success" %}
All commands also operate on explicit symbols, simply add the symbol at the end of each command
{% endhint %}

| Command Text                                                                                                    | Description                                         | Example                                                                                       |
| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| <p><strong><code>cancel</code></strong><br><br></p><p><strong><code>cancel \<instrument></code></strong>   </p> | Cancel all orders                                   |                                                                                               |
| **`cancel <side>`**                                                                                             | Cancel all buys or sells                            | <p><em><code>cancel buys</code></em>, </p><p><em><code>cancel sells xrpusdt</code></em>  </p> |
| **`cancel top <number>`**                                                                                       | Cancel top orders by price, side is not important   | *`cancel top 5`*                                                                              |
| **`cancel bottom <number>`**                                                                                    | Cancel bottom orders by price                       | *`cancel bottom 10 btcusdt`*                                                                  |
| **`cancel first <number>`**                                                                                     | Cancels orders by time of placement, first = oldest | *`cancel first 3`*                                                                            |
| **`cancel last <number>`**                                                                                      | Cancels orders by time of placement, last = newest  | *`cancel last 5`*                                                                             |
| **`cancel stops`**                                                                                              | Cancel all stops                                    |                                                                                               |
| **`cancel buy stops`**                                                                                          | Cancel buy stops                                    |                                                                                               |
| **`cancel sell stops`**                                                                                         | Cancel sell stops                                   |                                                                                               |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.insilicoterminal.com/documentation/terminal-cli/cancel-orders.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
