Sub topic 8
Maker and Taker Fees
This chapter assumes you know how an order book is laid out, how limit and market orders differ, and how the matching engine fills orders by price-time priority. You should also be comfortable reading short Python functions.
Why exchanges split fees by role
A trade needs two sides. One side was already waiting on the book. The other side arrived and traded against it. Most centralized exchanges charge these two sides different rates:
- Maker: the participant whose resting order was on the book and got filled. The maker added liquidity, which means supplied size that others can trade against.
- Taker: the participant whose incoming order matched against resting orders. The taker removed liquidity.
The exchange wants a deep book with tight spreads. A discount for makers pays people to post orders. A higher fee for takers is the price of immediacy, which is the same cost you saw in the spread.
Role belongs to the fill, not the order
The maker and taker labels do not describe an order type. They describe what happened in each individual fill. The rule is simple: whoever was resting on the book is the maker, and whoever arrived and matched is the taker.
This has several consequences:
- A market order is always a taker, because it never rests.
- A limit order can be either. A limit buy priced at or above the best ask crosses the spread and trades immediately as a taker.
- A single limit order can be both. Part of it can cross and fill as a taker. The rest can rest on the book and fill later as a maker.
- Your role is decided by timing and price, not by your intent. A limit order placed at the best bid is a maker if it rests and a later seller hits it. If the price moves and you cancel and replace it with a crossing price, you become a taker.
The fee calculation
Fees are a rate applied to the traded value of each fill:
fee = price x quantity x rateRates are usually quoted as percentages or basis points. One basis point (bp) is 0.01%, so 10 bps is 0.10%.
The next example reuses the rates from the earlier code examples. They are made up for illustration. It prices a limit buy of 4 units at 100.2 against the book asks = [(100.0, 2.0), (100.5, 3.0), (101.0, 5.0)]. Only the 100.0 level is at or below the limit, so 2 units fill immediately as a taker. The other 2 units rest as a bid at 100.2. Assume they fill later as a maker.
MAKER_RATE = 0.0010 # 0.10%, illustrative
TAKER_RATE = 0.0020 # 0.20%, illustrative
RATES = {"maker": MAKER_RATE, "taker": TAKER_RATE}
def fee(price, qty, rate):
return price * qty * rate
def total_fees(fills):
"""fills: list of (price, qty, role). Returns fee per fill and the total."""
per_fill = [round(fee(p, q, RATES[role]), 4) for p, q, role in fills]
return per_fill, round(sum(per_fill), 4)
fills = [
(100.0, 2.0, "taker"), # crossed the spread immediately
(100.2, 2.0, "maker"), # rested, then was hit by a seller
]
per_fill, total = total_fees(fills)
print(per_fill) # [0.4, 0.2004]
print(total) # 0.6004The taker fill pays 0.4 and the maker fill pays 0.2004. Notice that the maker fill executes at 100.2, the limit price you chose. A resting order always fills at its own price, never at the incoming order's price. That is why the fee is computed on 100.2 for that fill.
Which asset pays the fee
Exchanges differ on where the fee comes out, so check yours:
- Received asset: many spot markets deduct the fee from what you receive. Buying BTC/USDT, you receive slightly less BTC. Selling, you receive slightly less USDT.
- Quote asset: some venues always charge in the quote currency.
- Exchange token: some let you pay in their own token, often at a discount. You must hold a balance of that token, or the fee falls back to the normal asset.
This matters for bookkeeping. If you buy exactly 1.0 BTC and the fee comes out of the BTC, you hold 0.998 BTC after a 0.20% fee. If you then try to sell 1.0 BTC, the order is rejected for insufficient balance. Always size your follow-up orders from your actual balance, not from the quantity you ordered.
Round-trip cost and breakeven
A round trip is a buy followed by a sell. You pay a fee on each leg, and each leg can have a different role. The price must rise by enough to cover both fees before you break even.
If you buy at price P and pay fee rate r1 on top of the cost, and sell at P(1 + m) and lose rate r2 from the proceeds, breakeven satisfies:
P x (1 + r1) = P x (1 + m) x (1 - r2)
m = (1 + r1) / (1 - r2) - 1def breakeven_move_pct(buy_rate, sell_rate):
"""Price rise (in percent) needed to cover fees on a buy then a sell."""
return ((1 + buy_rate) / (1 - sell_rate) - 1) * 100
print(round(breakeven_move_pct(TAKER_RATE, TAKER_RATE), 4)) # 0.4008
print(round(breakeven_move_pct(MAKER_RATE, TAKER_RATE), 4)) # 0.3006
print(round(breakeven_move_pct(MAKER_RATE, MAKER_RATE), 4)) # 0.2002The numbers show why role matters. With these rates, two taker legs need a 0.4008% move. Two maker legs need 0.2002%. For a strategy that trades often and targets small moves, that difference can decide whether it makes money at all.
The fee is not the only cost. A taker also pays the spread and any slippage from walking the book. A maker pays no spread, but risks not filling. Comparing the two means weighing both costs, not only the fee line.
Fee tiers and rebates
Published rates are usually a starting point. Common adjustments include:
- Volume tiers: your rate falls as your rolling 30-day trading volume rises. Some exchanges count only your own account. Others aggregate linked sub-accounts.
- Holding discounts: holding or paying with the exchange's token can cut the rate.
- Maker rebates: at high tiers, some venues set the maker rate to zero or negative. A negative rate means the exchange pays you for each maker fill.
- Product differences: spot, margin, and derivatives markets on the same exchange often have separate schedules.
A negative maker rate fits the same formula. With a rate of -0.0001, fee(100.0, 2.0, -0.0001) returns about -0.02, which is a credit of 0.02.
Common errors
- Assuming "limit order" means "maker fee." A limit order priced across the spread executes at once and pays the taker rate. Check the order's price against the best bid and ask before you submit it.
- Ignoring that one order can pay two rates. A partly crossing order is billed per fill. Fee reports will show separate lines with separate rates.
- Comparing rates without the spread. A taker fill at the best ask has already paid half the spread, in effect, before the fee. Include both when you compare strategies.
- Forgetting the fee asset. Fees taken from the received asset leave you with less than you ordered, which breaks exact-size follow-up orders.
- Using the published rate for planning when your tier differs. Read the rate for your account, not the headline table.
- Treating a rebate as free money. A maker rebate does not remove price risk. A resting order can also be filled just before the price moves against you.
Connection to post-only orders
If you want the maker rate and never want to pay the taker rate, you need a way to refuse a crossing fill. A post-only order does this. If it would match immediately, the exchange rejects or reprices it instead of filling it as a taker. A later chapter covers it in detail. For now, remember that it exists because role is decided at match time.
Exercise
The ask side is [(100.0, 2.0), (100.5, 3.0)]. You place a limit buy of 3 units at 100.5. Using a 0.10% maker rate and a 0.20% taker rate, which fills pay which rate, and what is the total fee? Assume the book does not change.
Show answer
The limit price of 100.5 is at or above the best ask, so the whole order crosses the spread and every fill is a taker fill. It takes 2 units at 100.0 and 1 unit at 100.5. The fees are 100.0 x 2 x 0.002 = 0.4 and 100.5 x 1 x 0.002 = 0.201, so the total is 0.601. No quantity rests, so no maker rate applies.
Exercise
A trader buys with a maker order and sells with a taker order, using a 0.10% maker rate and a 0.20% taker rate. How far must the price rise to break even, and why is this higher than a maker-maker round trip?
Show answer
The breakeven move is (1 + 0.001) / (1 - 0.002) - 1, which is about 0.3006%. A maker-maker round trip needs about 0.2002%. The mixed trip needs more because the sell leg pays the taker rate of 0.20% instead of the maker rate of 0.10%. That extra 0.10% of fee must come from price movement.