Sub topic 2
Order Types, Makers and Takers, and Fees
Assume you know what a crypto exchange is, can read an order book, and are comfortable with percentages. This chapter focuses on how your order becomes a trade and how the exchange charges for it.
Market and limit orders
A market order tells the exchange to trade immediately at the best available prices. It takes existing orders from the order book, so it normally acts as a taker.
A limit order specifies the worst price you will accept. A limit buy at $60,000 will not fill above $60,000. A limit sell at $60,000 will not fill below $60,000. If your order matches immediately with an existing order, it can still be a taker. If it waits in the book and another trader later matches it, it is a maker order.
| Order type | Price control | Usual role | Main trade-off |
|---|---|---|---|
| Market | No exact execution price | Taker | Fast execution, possible slippage |
| Limit | Sets an acceptable price | Maker or taker | Price control, but execution is uncertain |
| Stop-market | Activates a market order after a trigger | Taker after activation | Useful for exits, but price can move |
| Stop-limit | Activates a limit order after a trigger | Maker or taker after activation | More price control, but may not fill |
A maker adds liquidity by placing an order that rests in the book. A taker removes liquidity by matching against resting orders. Exchanges often charge takers more because immediate execution consumes liquidity. Maker rebates or lower fees may reward orders that improve market depth.
Fees and execution cost
A trading fee is usually calculated from notional value, which is the position size multiplied by its execution price:
\[ \text{fee}=\text{quantity}\times\text{price}\times\text{fee rate} \]
For example, buying 0.5 BTC at $60,000 creates $30,000 of notional value. At a taker fee of 0.06%, the fee is:
\[ 30{,}000 \times 0.0006=\$18 \]
The fee may be deducted from the quote currency, the base asset, or collateral, depending on the venue and account settings. A complete cost estimate may also include the bid-ask spread, slippage, funding payments, withdrawal fees, and the fee charged when you close the position.
def trading_fee(quantity, price, fee_rate):
notional = quantity * price
return notional * fee_rate
buy_fee = trading_fee(0.5, 60_000, 0.0006)
sell_fee = trading_fee(0.5, 66_000, 0.0006)
print(f"Entry fee: ${buy_fee:.2f}")
print(f"Exit fee: ${sell_fee:.2f}")
print(f"Total fees: ${buy_fee + sell_fee:.2f}")A limit order does not guarantee a maker fee. Check the fill report, not only the order type. An order can be partially maker and partially taker if some of it matches immediately while the remainder rests in the book.
Exercise
You buy 0.2 BTC at $50,000 with a 0.04% fee, then sell it at $52,000 with a 0.04% fee. What are the total fees before considering funding or withdrawals?
Show answer
The entry notional is $10,000, so its fee is $4. The exit notional is $10,400, so its fee is $4.16. Total fees are $8.16.