# Limit Orders

A limit order is an instruction to buy or sell an asset at a specific price or a better one.

Limit orders are often used by investors who want to control the price they pay for a security. They can also be used to set a maximum loss or to protect profits.

<figure><img src="https://content.gitbook.com/content/jcfC628fab27Mq32zRqN/blobs/W1pZcFqeeJskUN15y01e/Blog%20Poster-3.jpg" alt=""><figcaption></figcaption></figure>

### Create a Limit order

To place a Limit Order:

* Select the **asset** to trade;
* Select **`Long`** or **`Short`** to decide the side of the trade;
* Choose the **`Limit`** order type;
* Enter an **Collateral Amount**, if needed;
* Input the **Limit Price** - set the max or min price at which you are willing to long or short;
* Enter the position **Size** and **Leverage**;
* Click on **`Long`** or **`Short`** to confirm.

<figure><img src="https://content.gitbook.com/content/jcfC628fab27Mq32zRqN/blobs/tYfibGOgTsXQRV7Spm9f/limi.png" alt="" width="375"><figcaption></figcaption></figure>

Once the new limit order is created, it will appear under the `Orders` tab. Users can cancel the limit order at any point in time.

<figure><img src="https://content.gitbook.com/content/jcfC628fab27Mq32zRqN/blobs/KJsWmWSdpn9EYKJn8Yxy/s1.png" alt=""><figcaption><p>Orders tab</p></figcaption></figure>

When the **price execution** reaches the **limit price**, the order will be executed, and your position will be opened.

<figure><img src="https://content.gitbook.com/content/jcfC628fab27Mq32zRqN/blobs/DJDluPBznnFlAlBJ8pvY/limit2.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
In the case of a high price divergence (more than 2%) between Pyth and Chainlink, the execution price will be based on the Chainlink price.
{% endhint %}

{% hint style="info" %}
After a conditional order is triggered, there is no guarantee of its successful execution. Factors such as liquidity constraints or network congestion can significantly affect the order's completion. With the Pyth prices the rate of successful execution increased.
{% endhint %}


---

# 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.trade.polynomial.fi/trading-guide/limit-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.
