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
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%)
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!