# Ordering with Stops

{% hint style="success" %}
Please read the page on [Simple Ordering](/documentation/terminal-cli/simple-ordering.md) first
{% endhint %}

### Market Orders with Stop

| Command Text                   | Description                                                       | Example                    |
| ------------------------------ | ----------------------------------------------------------------- | -------------------------- |
| **`buy <size> stop <price>`**  | Market buy 10 of the underlying with a stop of 1% distance        | *`buy 10 stop 1%`*         |
| **`sell <size> stop <price>`** | Market sell a position worth 5000 USD with a stop at price 100.11 | *`sell 5000$ stop 100.11`* |

###

### Limit Orders with Stop

| Command Text                              | Description                                                                                                                             | Example                                                                                                                                                           |
| ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`buy <size> at <price> stop <price>`**  | Place a limit buy order for the given size at a specified price or distance with a stop at a specified price or distance from the entry | <p><em><code>buy 1 at 25000 stop 19999</code></em><br><em><code>buy 20% at -250 stop -500</code></em><br><em><code>buy 1000$ at -1% stop 10%</code></em></p>      |
| **`sell <size> at <price> stop <price>`** | Place a limit sell order for the given size at a specified price or distance with a stop at a specified price or distance entry         | <p><em><code>sell 0.5 at 64000 stop  65000</code></em><br><em><code>sell 25% at +100 stop 5%</code></em><br><em><code>sell 1000$ at 0.1% stop +50</code></em></p> |
| **`buy <size> best stop <price>`**        | Enter the size at the best price in the orderbook (quote) with a stop at a specified price or distance                                  | *`buy 0.1 best stop 0.5%`*                                                                                                                                        |
| **`sell <size> best stop <price>`**       | Enter the size at the best price in the orderbook (quote) with a stop at a specified price or distance                                  | *`sell 100 best stop 21.5`*                                                                                                                                       |


---

# 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/ordering-with-stops.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.
