# Limit Orders

A **Limit Order** allows you to set the maximum price you are willing to pay when buying, or the minimum price you are willing to accept when selling.

### **When to Use?**

* When you want to control the exact entry or exit price.
* Suitable for patient traders waiting for favorable market conditions.

***

### **Key Points**

Execution is not guaranteed — the order will only be filled if the market reaches  or exceeds your set price.

***

### Why Did My Limit Order End Up Being Executed as a Market Order?

* The logic of a limit order is:
  * A **buy order** will be executed at a price **≤ your set price**.
  * A **sell order** will be executed at a price **≥ your set price**.
* If you do **not** enable the **Post Only** option, the system will match your order against existing orders in the order book immediately, as long as the price condition is satisfied.
* To ensure your order is always placed into the order book as a **Maker** order, you need to check **Post Only**. Otherwise, your order may be executed immediately as a **Taker** order.

<figure><img src="/files/dB6hOvnufjNE6CAKX7Ck" alt=""><figcaption></figcaption></figure>

**Example:**

* You set a **buy limit order** for BTC/USD at 30,000.
* The current best ask price is 29,900.
* **Result:** The system will execute the order immediately at 29,900 instead of placing it at 30,000 to wait.


---

# 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://support.backpack.exchange/exchange/trading/order-types/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.
