Sub topic 3
Maker and Taker Orders
This chapter assumes you have read the previous chapter on order books. You should know what the best bid, best ask, and resting orders are. You should also be comfortable with basis points (1 bp = 0.01%). The Python snippets are short, and you can skip them if you prefer.
The working model
Every trade on an exchange has two sides. One side was already waiting in the order book. The other side arrived later and matched against it.
- The maker is the side whose order was resting in the book. It "made" liquidity, meaning it added a price level that others can trade against.
- The taker is the side whose order matched immediately against resting orders. It "took" liquidity by removing size from the book.
Exchanges usually charge takers more than makers. Some pay makers a rebate. The reasoning is that resting orders make the market deeper and tighter, and matching immediately is a service that the taker pays for.
Your role is decided per fill, not per account or per order type. The same trader can be a maker on one trade and a taker on the next. One order can even be both at once.
Which orders are makers and which are takers
The order type tells you what role is likely, but the book at the moment of arrival decides it.
| Order type | Usual role | Notes |
|---|---|---|
| Market order | Taker | Matches immediately at whatever prices are available. |
| Limit order that does not cross the book | Maker | Rests until someone trades against it. |
| Limit order that crosses the book (marketable limit) | Taker for the crossing part | Any leftover quantity rests and becomes maker. |
| Post-only limit order | Maker only | Rejected or repriced if it would cross, depending on the exchange. |
| IOC or FOK (immediate-or-cancel, fill-or-kill) | Taker | Never rests, so it can never be a maker. |
| Stop-market | Taker | When triggered, it becomes a market order. |
| Stop-limit | Depends | When triggered, it becomes a limit order, which may cross or rest. |
A common mistake is to assume "limit order" means "maker fee." If you place a buy limit at or above the current best ask, it matches immediately and you pay the taker fee. You do get a price no worse than your limit.
The fee difference in numbers
Fees are quoted as a rate on the notional, which is price times quantity. This snippet uses illustrative rates: 10 bps for makers and 20 bps for takers.
def fee(notional, rate_bps):
return notional * rate_bps / 10_000
notional = 5_000.0
maker_fee = fee(notional, 10) # 0.10% -> 5.0
taker_fee = fee(notional, 20) # 0.20% -> 10.0
print(maker_fee, taker_fee)On a 5,000 order, the taker pays 10.0 and the maker pays 5.0. The taker pays twice as much for the same trade size. These rates are examples. Real schedules vary by exchange, by market, and by your volume tier, which a later chapter covers.
Some venues have a negative maker rate, called a rebate. At -2 bps, fee(5_000.0, -2) returns -1.0, so the exchange pays you 1.0.
One order, two roles: partial crossing
An order can split. Suppose the ask side of the book holds these levels as (price, size):
def split_limit_buy(limit_price, qty, asks):
"""Return (taker_qty, taker_notional, resting_qty) for a limit buy."""
taker_qty, taker_notional = 0.0, 0.0
for price, size in asks:
if price > limit_price or taker_qty >= qty:
break
take = min(size, qty - taker_qty)
taker_qty += take
taker_notional += take * price
return taker_qty, taker_notional, qty - taker_qty
asks = [(100.0, 2.0), (100.5, 3.0), (101.0, 5.0)]
taker_qty, taker_notional, resting = split_limit_buy(100.5, 6.0, asks)
print(taker_qty, taker_notional, resting) # 5.0 501.5 1.0
taker_fee = taker_notional * 20 / 10_000
maker_fee = resting * 100.5 * 10 / 10_000 # resting part fills later at the limit price
print(round(taker_fee, 4), round(maker_fee, 4)) # 1.003 0.1005A buy limit for 6 units at 100.5 matches 2 units at 100.0 and 3 units at 100.5. These 5 units are taker fills. The remaining 1 unit rests as a bid at 100.5. If someone later sells into it, that unit is a maker fill, and you pay the maker rate on it.
Two details follow from this:
- The taker portion pays the prices of the levels it walks through, not just your limit price. Your limit is a ceiling, not the price you get.
- The resting remainder fills at your limit price, never better. Makers get price certainty and no price improvement.
Why not always be a maker?
The lower fee has a cost, and you have to weigh it.
- Non-execution risk. A resting order only fills if the market comes to it. If you place a buy below the best bid and the price rises, you pay no fee because you got no trade.
- Adverse selection. Your resting order tends to fill when the price is moving against you. A resting buy fills when sellers push the price down, and it may keep falling afterward. Fills that arrive quickly often arrive for a bad reason.
- Queue position. At a given price, orders usually fill in time order (price-time priority). A late order at the same price waits behind earlier ones.
- Spread saved. A maker buying at the bid avoids paying the spread to the ask. That saving can be larger than the fee difference. For an asset with a 20 bps spread, the saved spread dwarfs a 10 bps fee gap. Later chapters add these up into a round-trip cost.
Edge cases to know
- Post-only rejection. If your post-only order would cross, the exchange either rejects it or slides it to the nearest non-crossing price. Check which behavior your venue uses before building automation that depends on it.
- Fee currency. Many exchanges deduct the fee from the asset you receive. A buy of BTC may leave you slightly less BTC, while a sale may reduce the quote currency you receive. Your reported cost is the same, but your balances look different.
- Stale views. The book can change between your screen refresh and your order arriving. An order you thought would rest may cross and be charged as a taker.
- Order modification. Amending the price of a resting order often sends it to the back of the queue at the new price. That is because it is effectively a new order.
- Self-trade prevention. If your own buy and sell would match each other, exchanges typically cancel one side or both instead of producing a fill. Check the venue's rules.
- Fee tier timing. The maker and taker rates applied to a fill may depend on your trailing 30-day volume at that moment. That is why quoted rates on a fee page can differ from your actual rate.
Common errors
- Treating order type as role. Role comes from whether the fill matched resting liquidity.
- Ignoring the partial-fill split. A large marketable limit can be mostly taker with a small maker tail.
- Comparing fee rates without notional. A 0.1% difference on 50 matters less than on 50,000.
- Forgetting the spread when judging a maker order. Compare total cost, not the fee line alone.
- Assuming a rebate is guaranteed. It may only apply above a volume tier, on certain pairs, or for post-only orders.
Exercise
The best ask is 200.0 with 1.0 unit available, and the next ask is 200.4 with 4.0 units. You place a buy limit for 3.0 units at 200.4. The taker rate is 20 bps and the maker rate is 10 bps. How many units are taker fills, what is the taker fee, and does any quantity rest as a maker order?
Show answer
The order crosses both levels because 200.0 and 200.4 are not above the limit of 200.4. It takes 1.0 unit at 200.0 and 2.0 units at 200.4, for 3.0 units total. The notional is 200.0 + 2 × 200.4 = 600.8, so the taker fee is 600.8 × 20 / 10,000 = 1.2016. Nothing remains, so no quantity rests as a maker order, and the whole order is filled as taker.