> For the complete documentation index, see [llms.txt](https://support.backpack.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.backpack.exchange/exchange/trading/order-types/limit-orders.md).

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