Limit Orders
Limit orders allow you to specify an exact buy amount you want to receive for selling your tokens. Unlike market orders, limit orders won’t execute until the price reaches your specified level.
What are Limit Orders?
A limit order lets you:
- Set a specific price (buy amount) for your trade
- Wait for favorable market conditions
- Avoid slippage from market movements
- Have orders valid for extended periods (up to 1 year)
Basic Limit Order
Complete Example with Ethers
Advanced Settings
Custom Validity Period
Set how long the order should remain valid:
Partially Fillable Orders
Allow your order to be filled in multiple transactions:
Add custom metadata to your order:
Key Differences from Swaps
Checking Order Status
After creating a limit order, monitor its status:
Cancelling a Limit Order
Off-chain Cancellation (Free)
On-chain Cancellation
For presigned orders, you need an on-chain transaction:
Best Practices
- Set Realistic Prices: Ensure your limit price is achievable based on market conditions
- Check Allowances: Verify token approval before posting the order
- Monitor Orders: Track order status to know when they execute
- Use Appropriate Validity: Don’t set overly long validity periods for volatile markets
- Consider Fees: Factor in network costs when setting buy amounts
Example: Buy Order
Create a limit order to buy tokens:
Error Handling
Next Steps
- Learn about order management
- Explore React integration
- Read about creating limit orders
Last modified on March 4, 2026