Which Order Types Should Your Crypto Exchange Support?
An exchange needs market, limit and stop orders at launch, then advanced types as traders arrive. Here is what each type does and how the matching engine handles it.
On this page
Short answer
A crypto exchange should support market, limit, stop and stop-limit orders at launch, because those four cover most trading needs. Add post-only, immediate-or-cancel, fill-or-kill and good-til-cancelled options as your traders ask for them. Each type changes what the matching engine must check, so add them in order of demand, not all at once.
What is an order type on an exchange?
An order type is the set of rules that tells an exchange how to handle a trade request. It says whether the order fills at once or waits, what price it accepts, how long it stays open, and what happens if it only partly fills.
Every order carries the same basic fields: which pair to trade, buy or sell, how much, and the order type. The type decides the rest. A market order fills at once at the best price. A limit order waits in the book for its price. A stop order waits for a trigger, then acts.
For the team building the exchange, order types are not just a menu on the trading screen. Each type adds rules to the matching engine, checks to the risk system and states to the order lifecycle. Supporting four types well beats supporting ten types badly, so the launch set should be small and solid. The wider build is covered under crypto exchange development.
Which order types should you support first?
Four order types cover most trading at launch: market, limit, stop and stop-limit. Everything else can wait until traders ask for it and your engine is stable.
| Order type | What it does | Engine check | Who uses it |
|---|---|---|---|
| Market | Fills at once at the best price | Balance and price walk | Traders who need speed |
| Limit | Fills only at the set price or better | Book placement and expiry | Traders who set a price |
| Stop | Triggers at a price, then fills at market | Trigger watch and fill | Traders capping losses |
| Stop-limit | Triggers at a price, then becomes a limit | Trigger watch and limit fill | Traders who want price control |
Market and limit orders are the core of any exchange, because every trade is one of the two. Stop and stop-limit orders add the risk controls that keep traders on your platform instead of moving to a rival. Launch with these four, and measure which advanced types traders request before adding more.
How does the matching engine handle each type?
The matching engine is the part of the exchange that pairs buyers with sellers. It keeps an order book for each pair, sorted by price and then by time, and it fills orders in that order. Price comes first, time second. The book model itself is a design choice, so see order book vs AMM exchanges for the trade-offs.
A market order walks the book: it takes the best price first, then the next, until the amount is filled. A limit order joins the book at its price and waits. If a new order crosses its price, the two match and both fill, partly or fully.
Stop orders do not sit in the book. They sit in a trigger list that the engine checks on every price change. When the last traded price reaches the trigger, the engine converts the stop into a market or limit order and processes it like any other. The trigger check must run on every tick, or a fast move can pass a trigger without firing it.
What are advanced order types?
Advanced order types give traders finer control, and each one adds a rule your engine must enforce. Post-only orders join the book and never take liquidity, so they always pay the lower maker fee. Immediate-or-cancel orders fill what they can at once and cancel the rest. Fill-or-kill orders fill in full at once or cancel entirely.
Good-til-cancelled is the default life of a limit order: it stays open until it fills or the trader cancels it. Day orders expire at the end of the trading day, which matters more on traditional markets than on crypto, where trading never closes. The parts of a derivatives exchange use the same order lifecycle.
Trailing stops move their trigger up as the price rises, locking in gains without manual work. One-cancels-the-other pairs two orders, so filling one cancels the other, which is how traders combine a stop-loss with a take-profit. Add these only after the four core types are stable, because each one doubles the test cases for the matching engine.
How do order states and the order lifecycle work?
Every order moves through a small set of states, and the exchange must track each one. A new order is checked for balance and price, then it becomes open. An open order can fill fully, fill partly, or be cancelled by the trader. A partly filled order stays open with the remaining amount.
Rejected orders fail a check before they reach the book: not enough balance, a price outside the allowed range, or an amount below the minimum. Expired orders are day orders that reach the end of their life unfilled. Cancelled orders are removed by the trader or by the system when a rule is breached.
The lifecycle must be visible to the trader at all times. Show the state, the filled amount and the average fill price for every order, and send an update on every change. If a trader cannot see what happened to an order, they will not trust the platform with the next one.
How to add order types in six steps
You add order types to an exchange in six steps, starting with the launch set and ending with live monitoring of fills and rejects.
- Pick the launch set. Market, limit, stop and stop-limit cover most trading, so start there.
- Define the matching rules. Write down how each type fills, what it does when partly filled, and when it expires.
- Add risk checks. Check balance, price bands and position limits before an order reaches the book.
- Test fills. Run the engine against a scripted book: full fills, partial fills, crossed prices and trigger cases.
- Load test. Push order volume past your expected peak and watch for slow trigger checks and missed fills.
- Monitor live. Track fill rates, reject rates and slippage daily, and fix the worst order type first.
Document the matching rules in plain language and share them with your traders. A trader who understands how your engine fills orders will trust it, and a trader who is surprised by a fill will leave. The build itself follows the same staged pattern as any exchange project, as described in how to build a DEX.
Example (hypothetical): a new exchange plans its order book
Example (hypothetical): a new exchange lists one pair and tests its matching engine. A trader places a buy limit for 5 coins at $60,000. The book holds 2 coins offered at $59,800 and 3 coins offered at $60,000.
The engine fills the order in two parts. It takes the 2 coins at $59,800, costing $119,600, and the 3 coins at $60,000, costing $180,000. The total is $299,600 for 5 coins, so the average fill price is $59,920.
The same test with a market order for 5 coins would walk the same book and pay the same $299,600, but the trader would not have controlled the price. If the book had held only 1 coin at $59,800 and the next offer at $62,000, the market order would have paid far more. That is why the exchange shows the expected fill price before the trader confirms a market order.
What are the common mistakes?
The most common order type mistakes are launching with too many types, skipping stop monitoring, ignoring partial fills, and hiding the fill price from traders.
- Too many types at launch. Each type doubles the test cases, so start with four and add more later.
- Slow trigger checks. A stop that fires late fills far from its trigger, so check triggers on every tick.
- Ignoring partial fills. Traders need to see the filled amount and the average price, not just the order state.
- Weak risk checks. Balance and price-band checks must run before the order reaches the book.
- No cancel path. A trader who cannot cancel an open order quickly will not place the next one.
Key takeaways
- Market, limit, stop and stop-limit orders cover most trading, so launch with those four
- A stop order waits in a trigger list, not in the book, and the engine must check it on every tick
- Advanced types like post-only, immediate-or-cancel and fill-or-kill add rules, so add them later
- Track every order state and show filled amount and average price to the trader
- Test full fills, partial fills and trigger cases before launch, then monitor fill rates daily
Frequently asked questions
Do I need stop orders at launch?
Yes, for most exchanges. Traders use stops to cap losses, and without them many will trade elsewhere. Stop and stop-limit orders are part of the four-type launch set, along with market and limit orders, because they cover the risk controls traders expect.
What is the difference between a market order and a limit order?
A market order fills at once at the best available price, so it is fast but the price is not controlled. A limit order fills only at the set price or better, so the price is controlled but the trade may never fill. The engine treats them very differently.
How does the engine decide which order fills first?
By price first, then time. The best price fills first, and among orders at the same price the oldest fills first. This price-time priority is the basic rule of most order books, and every order type must respect it.
What is a post-only order?
A post-only order joins the order book and never takes liquidity, so it always pays the lower maker fee. If it would cross the book and fill at once, the exchange rejects it instead. Post-only suits traders who want to add liquidity at a chosen price.
What happens when an order only partly fills?
The filled part trades at the matched prices, and the rest stays open in the book with the remaining amount. The trader should see the filled amount, the average fill price and the remaining amount, and should be able to cancel the rest at any time.
How many order types is too many at launch?
More than four is usually too many. Each type adds matching rules, risk checks and test cases, and a bug in any of them can mis-fill real trades. Launch with market, limit, stop and stop-limit, then add advanced types once traders ask for them.