> For the complete documentation index, see [llms.txt](https://docs.libertyswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.libertyswap.finance/liberty-dex/limit-orders/how-to-use-limit-orders.md).

# 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="https://1528550342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqaQp0E2p9WUSJko6TzUr%2Fuploads%2Fslnx6mVAp30CR19YTryH%2FScreenshot%202026-03-26%20094307.png?alt=media&amp;token=cd380c56-0be3-4dc3-96ec-665af80ab43d" 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="https://1528550342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqaQp0E2p9WUSJko6TzUr%2Fuploads%2FmQb07odRYESRk2UBddhV%2FScreenshot%202026-03-26%20094228.png?alt=media&amp;token=6dd31e42-a591-4682-9859-6803ce1cd94a" 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="https://1528550342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqaQp0E2p9WUSJko6TzUr%2Fuploads%2Fjaz49DI8A87L3hsCxYqP%2FScreenshot%202026-03-26%20094253.png?alt=media&amp;token=2336f654-f814-45d0-9b5d-5372237c70d9" 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="https://1528550342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqaQp0E2p9WUSJko6TzUr%2Fuploads%2FGsaLQJscfdHn4n7iBAY4%2FScreenshot%202026-03-26%20104309.png?alt=media&amp;token=0161184d-6be1-4f86-bd06-d1c1e282fd0d" 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="https://1528550342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqaQp0E2p9WUSJko6TzUr%2Fuploads%2FPFPu0sQbt5NOouZ0P9aE%2FScreenshot%202026-03-26%20104317.png?alt=media&amp;token=3371d3c6-9d94-41e6-88a3-7fac4ff12ec5" 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 cannot be filled while it stays insufficient. The order remains valid until it expires or is cancelled, so it can still be filled if the tokens return to your wallet. To stop an order, cancel it.

### 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
  * The trade settles in that transaction

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

### Key Benefits Recap

* **Self-custody:** funds stay in your wallet until the order is executed
* **Gasless UX:** no gas fees for placing or execution (the one-time approval and manual cancellation require gas)
* **Precision:** exact amount, exact conditions
* **Off-chain orders:** orders are not posted on-chain before execution
* **Flexible:** cancel an order at any time before execution (requires a small gas fee); moving tokens out of your wallet does not cancel a signed order
