Sub topic 1
Where the Money Goes: Exchange, Market, and Network Costs
Prerequisites
This chapter assumes you know what a blockchain transaction is, have seen an exchange's buy and sell screen, and can work with percentages. A basis point (bp) is 0.01%, so 10 bps is 0.10%.
Where the Money Goes
A crypto trade has three cost layers. Exchange fees are what the trading platform charges. Market costs come from the bid-ask spread and slippage. Network fees are paid to the blockchain to process your transfer.
Reading an Order Book
An order book lists open buy orders (bids) and sell orders (asks) at each price. The best bid is the highest price a buyer offers. The best ask is the lowest price a seller accepts.
Maker and Taker Orders
A maker order rests on the book and adds liquidity. A taker order fills against a resting order and removes liquidity. Exchanges usually charge takers a higher fee than makers.
def fee(notional, rate_bps):
return notional * rate_bps / 10_000
notional = 5_000.0
print(fee(notional, 10)) # maker at 10 bps: 5.0
print(fee(notional, 20)) # taker at 20 bps: 10.0Fee Schedules and Volume Tiers
A fee schedule lists the maker and taker rates for each tier. Tiers depend on your 30-day trading volume, and higher volume usually earns lower rates. The rates below are illustrative only.
| Tier | 30-day volume (USD) | Maker (bps) | Taker (bps) |
|---|---|---|---|
| 1 | under 50,000 | 10 | 20 |
| 2 | 50,000 to 500,000 | 8 | 16 |
The Bid-Ask Spread
The spread is the gap between the best ask and the best bid. A market order pays the spread because it buys at the ask and sells at the bid.
best_bid, best_ask = 99.8, 100.0
mid = (best_bid + best_ask) / 2
spread_bps = (best_ask - best_bid) / mid * 10_000
print(round(spread_bps, 1)) # 20.0Exercise
The best bid is 99.8 and the best ask is 100.0. What is the spread in basis points?
Show answer
About 20.0 bps. The spread is (100.0 - 99.8) / 99.9 * 10,000, which is about 20.0.