What is Market Order?
How it works
On centralized exchanges like Binance or Coinbase, a market order sweeps the order book, matching against the lowest ask (for buys) or highest bid (for sells) until the full quantity is filled. The execution price is an average of the matched limit orders, and the trader pays the spread—difference between bid and ask. Partial fills occur if liquidity is insufficient, and fees often apply based on maker/taker tiers.
On decentralized exchanges using automated market makers (AMMs) such as Uniswap or Curve, a market order is a swap against a liquidity pool. The trade follows a constant product formula (e.g., x*y=k), adjusting the pool balances and creating price impact: larger trades move the price further. Slippage tolerance is set by the user; if the actual price moves beyond that limit, the transaction reverts. The trader pays a fee to liquidity providers, typically 0.01-1%.
Market orders may be subject to front-running on public blockchains: miners or validators can see pending transactions and insert their own orders to profit from price changes (sandwich attacks). To mitigate this, some DEXs use commit-reveal schemes or integrate with intent-based architectures like CowSwap, where orders are batch-settled to reduce MEV. Regardless of venue, market orders guarantee speed, not price, making them suitable for time-sensitive moves like liquidations or arbitrage.
Why it matters
Market orders are essential for traders who need instant execution, such as during volatile markets or for liquidations on platforms like Aave. They enable efficient entry and exit, but the lack of price control introduces slippage risk, especially in illiquid pools or order books. Understanding market orders helps users avoid unexpected costs and choose appropriate venues—CEX for tight spreads on major pairs, DEX for access to long-tail tokens—while setting slippage limits to protect against front-running.
Real-world examples
A trader uses a market order on Uniswap to swap ETH for a newly listed token, accepting the current pool price and any slippage. On Binance, a market sell of 1 BTC fills immediately against the order book, paying the spread. In DeFi liquidations, bots submit market orders to repay debt and seize collateral, relying on speed over price.
FAQ
What is slippage in a market order?
Slippage is the difference between the expected price of a market order and the actual execution price, caused by price movement or insufficient liquidity. Traders can set slippage tolerance on DEXs to limit this.
How do market orders differ on CEX vs DEX?
On centralized exchanges, market orders fill against limit orders in an order book, often with tight spreads for major pairs. On DEXs, they swap against liquidity pools using AMM formulas, which create price impact and typically higher slippage for large trades.
Can market orders be front-run in DeFi?
Yes. In public mempools, miners or validators can see pending market orders and place their own transactions ahead to profit from anticipated price movements, a form of MEV known as sandwich attacks. Some DEXs now offer MEV protection features.
Related terms
Go deeper
Browse the complete crypto glossary to explore related terms and concepts.
Browse Glossary