# Swarm Order

{% hint style="info" %}
Note: all commands operate on the currently viewed instrument only
{% endhint %}

| Command Text                                                                                                                                                                 | Description                                                                                            | Example                                                                                                                                                                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong><code>swarm \<side> \<size> into \<count></code></strong><br><br><strong><code>swarm \<side> \<size> into \<count> reduce</code></strong></p>                     | Executes a swarm of \<count> number of orders of a given total \<size>. Can also specify to *`reduce`* | <p><em><code>swarm buy 1 into 10</code></em><br><br><em><code>swarm sell 100000$ into 100</code></em><br><br><em><code>swarm sell 10 into 20 reduce</code></em><br><br><em><code>swarm buy 50% into 10 reduce</code></em></p>                                           |
| <p><strong><code>swarm \<side> \<size> into \<count> irregular</code></strong><br><br><strong><code>swarm \<side> \<size> into \<count> irregular reduce</code></strong></p> | Same as above but with irregular lots. Can also specify to *`reduce`*                                  | <p><em><code>swarm buy 10 into 50 irregular</code></em><br><br><em><code>swarm sell 500000$ into 100 irregular</code></em><br><br><em><code>swarm buy 10 into 50 irregular reduce</code></em><br><br><em><code>swarm sell 50% into 100 irregular reduce</code></em></p> |


---

# 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/swarm-order.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.
