How to Use Limit Orders

LibertyX 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)

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

Important:

  • This is just a signed message (intent)

  • No on-chain transaction happens

  • No gas fee required

  • Your tokens stay in your wallet

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

LibertyX 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

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

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

Last updated