# How to Use Limit Orders

**Liberty DEX Limit Orders** are designed to be simple, gasless, and fully self-custodial. Below is a clear step-by-step guide to help you get started.

### 1. One-Time Setup

Before placing your first order, you need to approve Permit2.

* This allows the protocol to **execute trades on your behalf only when conditions are met**
* Requires a **small gas fee**
* Done **once per token** (not per order)

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

After this step, you won’t need to approve again for future orders.

### 2. Place Your Order (Gasless)

* Enter:
  * Token pair (e.g. ETH → USDC)
  * Desired price
  * Amount
  * Expiry time
* Sign the order with your wallet

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

Important:

* This is **just a signed message (intent)**
* **No on-chain transaction happens**
* **No gas fee required**
* Your tokens **stay in your wallet**

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

### Setting Limit Prices with ±% (Buy Low / Sell High)

Liberty DEX makes it easy to define your desired execution price using **quick percentage options** like **±1%, ±5%, ±10%**, or a custom value. These options adjust your order relative to the current market price.

#### **Positive Values (+1%, +5%, +10%) - Better Price**

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

Selecting a **positive percentage** means you want a **better price than the current market**.

* Your order will **only execute when the market moves in your favor**

**How it works:**

* **Buy orders** → execute when price goes **lower**
* **Sell orders** → execute when price goes **higher**

> Example:\
> Choosing **+10%** means your order will only execute when you receive a price **10% better** than the current market rate.

#### **Negative Values (-1%, -5%, -10%)  Faster Execution**

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

Selecting a **negative percentage** means you accept a **worse price than the current market**.

* Your order will execute **more easily and faster**, since conditions are less strict

**How it works:**

* **Buy orders** → execute even if price goes **higher**
* **Sell orders** → execute even if price goes **lower**

> Example:\
> Choosing **-10%** means your order can execute at a price **10% worse** than the current market rate.

**Best Practices**

* Use **+% values** when you want to:
  * Buy low
  * Sell high
  * Optimize entry/exit price
* Use **-% values** when you want to:
  * Increase execution probability
  * Exit or enter positions quickly

#### Summary

* **+% = Better price, slower execution**
* **-% = Worse price, faster execution**

This flexible pricing system allows you to **control both your execution price and timing**, depending on your trading strategy.

### 3. While Waiting

While your order is open:

* You remain in **full control of your funds**
* You can:
  * Transfer tokens
  * Trade elsewhere
  * Use them in DeFi

Note:

* If your balance becomes insufficient, the order simply won’t be filled

### 4. When Price is Met

* A **filler** detects that your conditions are satisfied
* The filler executes the trade **on-chain**
* At that moment:
  * Tokens are pulled from your wallet
  * Trade is completed instantly

Only the **exact required amount** is used\
Execution happens **only when your price is met**

### Key Benefits Recap

* **Self-custody:** funds always stay in your wallet
* **Gasless UX:** no fees for placing or execution
* **Precision:** exact amount, exact conditions
* **Private:** orders are not visible on-chain before execution
* **Flexible:** cancel implicitly by moving funds


---

# 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.libertyswap.finance/liberty-dex/limit-orders/how-to-use-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.
