In most traders’ understanding, market prices come from “executions.”
But for quantitative traders and market makers, what truly determines price is not the execution itself, but:
The liquidity structure in the order book
If you only look at candlestick charts, you see the “result.”
If you look at the order book, you see the “process.”
Within order book data, L2 and L3 are two key layers that determine whether you can truly understand the market.
This article explains from a practical trading and quantitative perspective:
- What an order book is
- The fundamental differences between L2 and L3
- How order books influence price formation
- Why order book data is critical for quantitative trading
What is an Order Book?
An order book is the collection of all unfilled orders on an exchange.
It consists of two sides:
- Bids (buy orders)
- Asks (sell orders)
At each price level, there is a corresponding quantity of orders (liquidity).
For example:
Price Bid Size Ask Size
100 50 BTC
101 40 BTC
This structure reflects:
- Current supply and demand
- Potential support and resistance
- Liquidity distribution
How Is Price Formed?
Price does not move randomly—it is driven by liquidity in the order book.
For example:
- If buy orders continuously consume sell orders → price rises
- If sell orders continuously suppress buy orders → price falls
More importantly:
Price movement is essentially the process of liquidity being “consumed”
Therefore:
- Looking at price = seeing the result
- Looking at the order book = seeing the cause
What is an L2 Order Book?
An L2 (Level 2) order book shows:
Aggregated order quantities at each price level
For example:
Price Bid Size
100 50 BTC
99 80 BTC
What you see here:
- The “total size” at each price
- But not who placed the orders
Characteristics of L2
- Smaller data size
- Easier to process
- Suitable for observing market depth
What Can L2 Be Used For?
1️⃣ Liquidity Analysis
Identify:
- Support levels (large bids)
- Resistance levels (large asks)
2️⃣ Order Book Imbalance
For example:
- Bid side significantly larger than ask side → potential upward move
3️⃣ Basic Quant Strategies
For example:
- Order Book Imbalance Strategy
- Liquidity-based Signals
Limitations of L2
L2 has a key limitation:
It hides the “structure” of orders
You cannot tell:
- Whether it’s a single large order
- Or many small orders
What is an L3 Order Book?
An L3 (Level 3) order book is the most granular level of data.
It records:
Every individual order
For example:
Order ID Price Size
A 100 10 BTC
B 100 20 BTC
C 100 20 BTC
While L2 would only show:
100 → 50 BTC
Characteristics of L3
- Massive data volume
- Highest precision
- Enables full reconstruction of order flow
What Can L3 Be Used For?
1️⃣ Order Flow Analysis
Identify:
- Large order splitting
- Iceberg orders
- Market maker behavior
2️⃣ Market Behavior Analysis
For example:
- A specific account continuously placing orders → market making
- Large orders repeatedly canceled → market manipulation signals
3️⃣ High-Precision Backtesting
L3 enables:
Realistic order matching simulation
Including:
- Queue priority
- Execution order
- Slippage
Core Differences Between L2 and L3
| Dimension | L2 | L3 |
|---|---|---|
| Data Granularity | Aggregated | Individual orders |
| Data Volume | Moderate | Massive |
| Visibility | Price level | Order level |
| Analytical Power | Liquidity structure | Behavioral analysis |
| Use Cases | General quant | HFT / Market making |
Why Is the Order Book More Important Than Candlesticks?
Candlestick charts only provide:
Price + Time
Order books provide:
Liquidity + Behavior + Intent
Example
Candlesticks tell you:
- Price went up
Order books tell you:
-
Why it went up:
- Buy orders absorbed sell orders
- Liquidity was consumed
- Shorts were squeezed
This is:
Market Microstructure
How Do Order Books Influence Trading Strategies?
1️⃣ High-Frequency Trading (HFT)
Relies on:
- Millisecond-level order book changes
- Liquidity imbalance
2️⃣ Market Making
Relies on:
- Bid / Ask spread
- Depth changes
3️⃣ Order Flow Strategies
Relies on:
- Footprint
- CVD
- Liquidity heatmaps
4️⃣ Risk Management
Order books help identify:
- Liquidity voids
- Liquidation zones
Why Is It Difficult to Obtain High-Quality Order Book Data?
In reality, obtaining L2 / L3 data is highly complex:
1️⃣ Exchange Differences
Each exchange has:
- Different data structures
- Different update frequencies
2️⃣ Data Gaps
- WebSocket interruptions
- Network latency
3️⃣ Difficulty in Historical Reconstruction
L3 order books require:
Replaying all events
4️⃣ Massive Data Scale
Hundreds of millions of updates per day
CoinGlass API: A Unified Gateway to Order Book Data and Market Structure
To make high-quality order book data more accessible for developers and quantitative teams, CoinGlass has built a unified data infrastructure.
With the CoinGlass API, you can access:
- Tick-level L2 / L3 order books
- Tick-level trade data
- Liquidation data
- Liquidity distribution
- Footprint charts and order flow metrics
And:
- Coverage of 30+ major exchanges
- Real-time + historical data
- Unified data schema
This means:
Developers no longer need to handle complex data collection and cleaning themselves
Conclusion
Understanding the order book is the first step to understanding the market.
- Candlesticks tell you the price
- Order books tell you the reason
L2 data shows you liquidity structure
L3 data shows you market behavior
For quantitative traders:
Order book data is the bridge between the market and trading strategies
As the crypto market continues to evolve, more strategies will rely on:
- Order book depth
- Order flow analysis
- Market microstructure
CoinGlass API is providing developers and institutions with a unified gateway to global crypto market data—enabling deeper market understanding and the development of next-generation trading systems.
For more information:
CoinGlass API Documentation
CoinGlass API
Top comments (0)