Sub topic 8
Maker and Taker Fees
Assume you understand trading pairs such as BTC/USDT and can read simple Python. This chapter focuses on how a centralized exchange charges for adding or removing liquidity.
What maker and taker mean
An exchange maintains an order book. The book contains resting orders that are waiting to trade. A new order that matches one of those resting orders removes liquidity from the book. The trader placing that order is the taker.
An order that does not match immediately can wait in the book. It adds liquidity for another trader to take later. The trader placing it is the maker.
The order type alone does not always determine the fee:
- A market order normally takes liquidity, so it normally pays the taker fee.
- A limit order priced inside the available market may rest and pay the maker fee.
- A limit order that crosses the spread can execute immediately and pay the taker fee.
- One limit order can have both behaviors if part executes immediately and the remainder rests, depending on the exchange.
Maker fees are often lower than taker fees, and some exchanges offer a small maker rebate. These policies vary by exchange, account tier, trading pair, and volume. Always check the exchange's current fee schedule.
| Order behavior | Liquidity effect | Usual fee role |
|---|---|---|
| Market buy matches asks | Removes liquidity | Taker |
| Limit buy below the best ask | Adds a bid if it waits | Maker |
| Limit buy at or above the best ask | Matches asks immediately | Taker |
| Post-only limit order | Must add liquidity or be rejected | Maker |
Calculating the fee
The basic calculation is:
fee = traded price × filled quantity × fee rateThe price multiplied by quantity is the notional value, meaning the value of the executed trade.
# Illustrative rates only. Actual rates depend on the exchange and fee tier.
MAKER_RATE = 0.0010 # 0.10%
TAKER_RATE = 0.0020 # 0.20%
def trading_fee(price, quantity, rate):
notional = price * quantity
return notional * rate
price = 100.0
quantity = 2.0
maker_fee = trading_fee(price, quantity, MAKER_RATE)
taker_fee = trading_fee(price, quantity, TAKER_RATE)
print(f"Notional value: {price * quantity:.2f} USDT")
print(f"Maker fee: {maker_fee:.2f} USDT")
print(f"Taker fee: {taker_fee:.2f} USDT")The trade value is 200 USDT. At the illustrative rates, the maker fee is 0.20 USDT and the taker fee is 0.40 USDT.
Fees may be deducted from the quote currency, such as USDT, or from the received asset, such as BTC. Some exchanges also apply discounts when you pay fees with their token. Treat the exchange's displayed fee and final fill report as authoritative.
Post-only orders
A post-only instruction tells the exchange that the order must rest on the book. If it would immediately match an existing order, the exchange rejects or cancels it instead of charging a taker fee.
Post-only is useful when maker status is essential. It also means execution is uncertain. A fast-moving market can leave the order unfilled.
Choosing between maker and taker execution
Choose taker execution when completing the trade quickly matters more than the fee. Choose a regular limit order when you can wait and want price control. Choose post-only when you require the order to add liquidity, accepting that it may be rejected or remain unfilled.
Remember that the maker or taker role applies to each fill. A partially filled order can have different fill prices, quantities, and fee records. Review the execution history rather than estimating the whole order from its original quantity.
Exercise
A 3 ETH order fills at 2,000 USDT per ETH. The maker rate is 0.10% and the taker rate is 0.20%. What are the two possible fees?
Show answer
The notional value is 6,000 USDT. The maker fee is 6.00 USDT, and the taker fee is 12.00 USDT.