What is a Cryptocurrency Exchange?
A cryptocurrency exchange is a digital marketplace where you can buy, sell, and trade cryptocurrencies. Think of it like a stock exchange (NYSE, NASDAQ), but for crypto instead of stocks.
Core Functions
- Match buyers with sellers: Connect people who want to buy BTC with people who want to sell BTC
- Provide liquidity: Ensure there's always someone willing to trade
- Facilitate price discovery: Let market supply and demand determine prices
- Hold custody (for centralized exchanges): Safeguard your crypto until you withdraw
The Order Book: How Trading Works
What is an Order Book?
An order book is a real-time list of all buy and sell orders for a specific trading pair (e.g., BTC/USD). It shows:
- Bids: Buy orders (people wanting to buy)
- Asks: Sell orders (people wanting to sell)
- Price levels: At what prices people are willing to trade
- Quantities: How much they want to buy/sell at each price
Example Order Book (BTC/USD)
ASKS (Sell Orders) | BIDS (Buy Orders)
Price | Quantity | Price | Quantity
---------|------------------ | ---------|------------------
$50,120 | 0.5 BTC | $50,050 | 1.2 BTC
$50,110 | 0.8 BTC | $50,040 | 0.6 BTC
$50,100 | 1.5 BTC ← Best Ask| $50,030 | 2.0 BTC
----------------------------| ← Best Bid
|
Spread: $50 ←----
Key Terms:
- Best Bid: Highest price someone will pay ($50,030)
- Best Ask: Lowest price someone will sell ($50,100)
- Spread: Difference between best bid and best ask ($70)
- Mid-Price: Average of best bid and best ask ($50,065)
The Matching Engine: Executing Trades
A matching engine is the software that automatically matches buy orders with sell orders. It operates on a price-time priority system:
Priority Rules
-
Price Priority: Best prices get matched first
- For buyers: Higher bid = faster execution
- For sellers: Lower ask = faster execution
-
Time Priority: At the same price, older orders get matched first
- First in line = first to trade
Example Trade Execution
Scenario: Alice wants to buy 1 BTC at market price (immediately)
1. Alice submits: "Buy 1 BTC at market price"
2. Matching engine looks at the order book
3. Best ask is $50,100 for 1.5 BTC
4. Engine matches Alice's buy order with that seller
5. Alice gets 1 BTC at $50,100
6. Order book updates: Best ask now shows 0.5 BTC left at $50,100
7. Trade complete in milliseconds
Partial Fills
If Alice wanted to buy 2 BTC, but the best ask only has 1.5 BTC:
- She'd buy 1.5 BTC at $50,100 (best ask cleared)
- Engine moves to next best ask ($50,110) and buys 0.5 BTC
- Total: 2 BTC purchased, but at two different prices
Centralized vs. Decentralized Exchanges
Centralized Exchanges (CEX)
Examples: Coinbase, Binance, Kraken, Gemini
A centralized exchange is a company that operates the exchange and holds custody of your funds.
How It Works:
- You deposit crypto or fiat into the exchange
- Exchange holds your funds in their wallets
- You trade on their platform (very fast, user-friendly)
- You withdraw when you want to move funds out
Pros:
- ✅ Fast trading (milliseconds)
- ✅ High liquidity (lots of buyers/sellers)
- ✅ User-friendly interfaces
- ✅ Customer support
- ✅ Fiat on-ramps (buy crypto with USD)
Cons:
- ❌ You don't control your private keys ("not your keys, not your coins")
- ❌ Risk of hacks (Mt. Gox, FTX collapsed)
- ❌ KYC required (identity verification)
- ❌ Can freeze your account
Decentralized Exchanges (DEX)
Examples: Uniswap, PancakeSwap, dYdX, Curve
A decentralized exchange has no company in control. Trades happen directly between users via smart contracts on a blockchain.
How It Works:
- You connect your crypto wallet (like MetaMask)
- Smart contracts facilitate trades (no middleman)
- You always control your private keys
- Funds never leave your wallet until trade executes
Pros:
- ✅ You control your keys (true ownership)
- ✅ No KYC required (anonymous)
- ✅ No company can freeze your account
- ✅ Open-source and transparent
Cons:
- ❌ Slower trades (blockchain confirmation times)
- ❌ Lower liquidity (fewer traders)
- ❌ No customer support (if you make a mistake, it's permanent)
- ❌ No fiat on-ramps (crypto-only)
- ❌ Higher gas fees (especially on Ethereum)
Which Should You Use?
For Beginners: Start with centralized exchanges (Coinbase, Gemini)
- Easier to use, customer support, fiat-friendly
For Advanced Users: Explore DEXs once you understand wallet security and blockchain basics
Understanding Fees
Maker vs. Taker Fees
Exchanges charge different fees based on whether you add liquidity or take liquidity.
Maker (Limit Orders)
You're a maker when you place an order that doesn't immediately match. You add liquidity to the order book.
Example:
- Current price: $50,050
- You place limit order: "Buy at $50,000"
- Your order sits in the order book, waiting
- You're a maker → Lower fee (typically 0.10-0.25%)
Taker (Market Orders)
You're a taker when your order immediately matches an existing order. You remove liquidity.
Example:
- Current price: $50,050
- You place market order: "Buy now at best price"
- Your order instantly matches a seller at $50,050
- You're a taker → Higher fee (typically 0.20-0.50%)
Typical Fee Structure
| Exchange | Maker Fee | Taker Fee |
| -------- | --------- | --------- |
| Coinbase | 0.60% | 0.60% |
| Binance | 0.10% | 0.10% |
| Kraken | 0.16% | 0.26% |
| Gemini | 0.20% | 0.40% |
Fee Calculation Example:
Buy 1 BTC at $50,000 with 0.25% taker fee:
- Trade value: $50,000
- Fee: $50,000 × 0.0025 = $125
- Total cost: $50,125
Trading Volume Discounts
Most exchanges offer lower fees for high-volume traders:
- 0-$10K/month: 0.60% taker
- $10K-$50K/month: 0.40% taker
- $50K-$100K/month: 0.25% taker
- $100K+/month: 0.15% taker
How Exchanges Make Money
Cryptocurrency exchanges generate revenue through:
1. Trading Fees (Primary Revenue)
Every trade collects a small percentage fee. With millions of trades daily, this adds up significantly.
Example:
- $1 billion traded daily
- Average 0.20% fee
- Revenue: $2 million/day ($730M/year)
2. Listing Fees
New cryptocurrencies pay exchanges to be listed (sometimes $100K-$1M+).
3. Withdrawal Fees
Fixed fee to withdraw crypto to an external wallet.
Example:
- Bitcoin withdrawal: 0.0005 BTC (~$25)
- Ethereum withdrawal: 0.005 ETH (~$10)
4. Margin Trading Interest
If you borrow money to trade (leverage), exchanges charge interest.
5. Premium Services
- Staking rewards (exchanges take a cut)
- Interest on deposits (lending your crypto to others)
- API access for algorithmic traders
- Custody services for institutions
Order Types Supported
Most exchanges support these order types:
- Market Order: Buy/sell immediately at best available price
- Limit Order: Buy/sell at a specific price (or better)
- Stop-Loss: Automatically sell if price drops to a certain level
- Stop-Limit: Stop order that becomes a limit order (not market)
- OCO (One-Cancels-Other): Pair take-profit with stop-loss
- TWAP (Time-Weighted Average Price): Algorithmic, spreads order over time
We'll cover these in detail in Lesson 3: Market vs Limit Orders.
Security Considerations
Exchange Hacks (History)
- Mt. Gox (2014): 850,000 BTC stolen (~$450M then, $42B today)
- Coincheck (2018): $530M stolen
- Binance (2019): $40M stolen (but Binance reimbursed users)
- FTX (2022): $8B+ lost (fraud, not hack)
How to Stay Safe
- Use reputable exchanges (Coinbase, Kraken, Gemini - US-based, regulated)
- Enable 2FA (two-factor authentication)
- Withdraw to your own wallet for long-term holdings ("not your keys, not your coins")
- Don't keep large amounts on exchanges (only what you're actively trading)
- Use strong, unique passwords (password manager recommended)
Key Takeaways
✅ Exchanges are marketplaces that match buyers with sellers
✅ Order books show all buy/sell orders at different price levels
✅ Matching engines automatically execute trades based on price-time priority
✅ Centralized exchanges (CEX) are user-friendly but you don't control keys
✅ Decentralized exchanges (DEX) give you full control but are harder to use
✅ Maker fees are lower (you add liquidity with limit orders)
✅ Taker fees are higher (you remove liquidity with market orders)
✅ Exchanges make money from trading fees, listing fees, withdrawals, and services
⚠️ Security risks: Exchanges can be hacked or go bankrupt (Mt. Gox, FTX)
Next Steps
Continue to Lesson 3: Market vs Limit Orders to learn the most common order types and when to use each.
Practice Recommendation: Open the order book on Cryptonyk (or any exchange) and watch how prices move. Notice the spread, see how orders get filled, and observe the bid/ask dynamic for 10-15 minutes. This will make the concepts click!