> For the complete documentation index, see [llms.txt](https://docs.flash.trade/flash-trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications/limit-orders.md).

# Limit Orders

Limit orders let you set a predetermined entry price for a trade — the order executes automatically when the market reaches your level.

***

<figure><img src="https://1107078469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwjn1OLuTIq3M0RkTUTyw%2Fuploads%2FXEQX1FQw8qj4zkXUtuXx%2FLimit-Order.gif?alt=media&#x26;token=00a276f1-3afd-40fa-9d20-bfd0bcc96bc4" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="How to Place Limit Orders" %}
**Step 1: Switch to Limit Mode**

1. Navigate to the trading page
2. Switch from **"Market"** to **"Limit"** order type

**Step 2: Configure Your Order**

1. **Set Price**: Enter your desired execution price (at least 0.1% away from the current price)
2. **Set Size**: Specify position size and leverage
3. **Review Details**: Confirm order parameters in the panel readout

**Step 3: Submit Order**

1. Click "Place Limit Order" and confirm
2. The order appears in the **Orders** tab under **Limit Orders**
   {% endtab %}

{% tab title="Order Management" %}
**Viewing Your Orders**

* All active limit orders appear in the **"Orders"** tab under "**Limit Orders**" with market, side, size, collateral, and trigger price

**Editing Orders**

1. Select the order you want to modify in the Orders tab
2. **Edit Trigger Price** and confirm the change

**Order Cancellation**

* **Manual Cancellation**: Cancel orders anytime from the Orders tab
* **Automatic Cancellation**: An order cancels if the pool cannot accommodate it at execution time
* **Independent of Positions**: Limit orders remain active even after other positions close — cancel them yourself if no longer wanted
  {% endtab %}
  {% endtabs %}

***

#### Execution Rules

{% columns %}
{% column %}

<p align="center"><strong>Order executes when</strong></p>

* Market price reaches your specified level
* Sufficient liquidity is available in the pool
* Pool utilization allows for the trade size
  {% endcolumn %}

{% column %}

<p align="center"><strong>Order cancels when</strong></p>

* Pool utilization prevents execution of the full size
* The pool cannot accommodate the order at trigger time
  {% endcolumn %}
  {% endcolumns %}

Standard trading fees and trade spread apply to limit orders exactly as they do to market orders.

{% hint style="warning" %}
**No execution guarantee.** Limit orders are trigger-based: if the market gaps past your price or liquidity is unavailable, the order may execute at a worse price or cancel. The minimum trigger distance from the current price is 0.1%.
{% endhint %}

***

#### Troubleshooting

**Common Issues**

<details>

<summary><strong>Q: Why is my limit order being rejected?</strong></summary>

* Check if price is at least 0.1% from current market price
* Verify you have sufficient collateral of the correct type
* Ensure order size meets the minimum shown in the panel

</details>

<details>

<summary><strong>Q: Why didn't my order execute at the target price?</strong></summary>

* Pool utilization may be too high
* Insufficient liquidity for your order size
* Market may have gapped past your price level

</details>

<details>

<summary><strong>Q: How do I cancel all my limit orders?</strong></summary>

* Go to the "Orders" tab
* Manually cancel each order individually
* Orders do not auto-cancel when positions close

</details>

<details>

<summary><strong>Q: Can I modify my order after placing it?</strong></summary>

* Yes, you can edit the execution price
* Order size modifications
* Changes require wallet confirmation

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.flash.trade/flash-trade/flash-trade-protocol/perpetuals-specifications/limit-orders.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
