Limit Orders
Execute at your specified price or better
Market Orders
Execute immediately at best available price
Limit Orders
Limit orders allow you to specify the exact price at which you want to buy or sell tokens. These orders are added to the order book and wait for a matching order at your specified price.How Limit Orders Work

- Buy Limit Order
- Sell Limit Order
A buy limit order will only execute at or below your specified price.Example:
- Current market price: 5.00 USDC
- Your limit price: 4.95 USDC
- Result: Order waits in order book until price drops to 4.95 or below
Limit Order Structure
Benefits of Limit Orders
- Price Control: Trade only at your desired price
- No Slippage: Price is guaranteed if order executes
- Partial Fills: Orders can be partially filled over time
- Order Book Visibility: Your order becomes part of market liquidity
Market Orders
Market orders execute immediately at the best available price in the order book. They provide certainty of execution but not certainty of price.How Market Orders Work
Price Matching
System automatically matches with best available orders:
- Buy orders match with lowest asks
- Sell orders match with highest bids
Market Order Structure
Benefits of Market Orders
- Immediate Execution: No waiting for price to reach your level
- Simplicity: Only need to specify quantity
- Complete Fills: Usually fills entire order amount
- Time Priority: Executes before any new limit orders
Order Matching Rules
Price-Time Priority
Orders are matched according to strict price-time priority:-
Price Priority: Best prices are matched first
- Highest bid matches with lowest ask
- Orders at better prices always execute before worse prices
-
Time Priority: For orders at the same price
- Earlier orders (by timestamp) execute first
- First-in, first-out (FIFO) within each price level

Matching Constraints
Each order can match with a maximum of 50 counter-orders per execution to prevent excessive gas consumption
Self-Trade Prevention
The system prevents users from trading with their own orders:- Buy and sell orders from the same account cannot match
- Prevents wash trading and maintains market integrity
Order Lifecycle
Choosing Order Type
Use Limit Orders When:
- You have a specific price target
- You’re not in a rush to execute
- You want to avoid slippage
- You’re providing liquidity to the market
Use Market Orders When:
- You need immediate execution
- You’re trading liquid pairs
- Small price differences don’t matter
- You want to ensure your order fills
Order Type Comparison
| Feature | Limit Order | Market Order |
|---|---|---|
| Price Control | ✓ Exact price | ✗ Market price |
| Execution Speed | May take time | Immediate |
| Slippage | None | Possible |
| Partial Fills | Common | Less common |
| Order Book Impact | Adds liquidity | Takes liquidity |
| Best For | Patient traders | Urgent trades |
Next Steps
Place Orders
Learn how to place your first order
Manage Orders
Track and manage your open orders