How Limit Orders Work
1
Define Price Condition
Set the price target your order should wait for
2
Build Swap Instruction
Create the swap that executes when condition is met
3
Submit Order
Sign once—MEE monitors and executes when ready
4
Automatic Execution
When price hits target, swap executes automatically
Quick Example
Wait for WETH to drop below $3,000 USDC, then buy:Condition Types for Trading
Buy Limit Order (Price Drops)
Wait for a token to become cheaper before buying:Sell Limit Order (Price Rises)
Wait for a token to appreciate before selling:Using DEX Pool Prices
For tokens without Chainlink feeds, read price directly from a DEX pool:Multiple Conditions (Safety Checks)
Combine price target with safety conditions:When multiple conditions are specified, ALL must be satisfied before execution (AND logic).
Setting Order Expiration
Always set a timeout so orders don’t stay pending forever:Tracking Order Status
Monitor your limit order until execution:Best Practices
Use Reliable Oracles
Chainlink feeds are most reliable. DEX pools can be manipulated.
Set Reasonable Timeouts
Don’t leave orders pending indefinitely—always set expiration.
Account for Decimals
Chainlink ETH/USD uses 8 decimals. Match your condition values.
Add Slippage Buffer
Price can move between condition check and execution.
Common Price Feeds (Base)
Next Steps
Gasless Swaps
Execute limit orders without gas fees
Cross-Chain Swaps
Create cross-chain limit orders