Liquidity and Market Depth¶
Difficulty beginner
Overview¶
Liquidity is the ability to buy or sell an asset quickly without significantly affecting its price. Depth refers to the volume available at each price level in the order book. Understanding both is critical for execution quality and strategy design.
Dimensions of Liquidity¶
1. Tightness¶
Measure: Bid-ask spread Meaning: How much does it cost to execute a round trip?
2. Depth¶
Measure: Volume available at bid and ask Meaning: How much can you trade without moving the price?
3. Immediacy¶
Measure: Time to execute a given size Meaning: How quickly can you trade?
4. Resiliency¶
Measure: Time for liquidity to return after a large trade Meaning: How durable is the liquidity?
Reading the Order Book¶
Level 2 Order Book Example¶
┌──────────────────────────────────────────────────┐
│ ASK SIDE │
├──────────┬───────────┬───────────────────────────┤
│ Price │ Size │ Cumulative │
├──────────┼───────────┼───────────────────────────┤
│ $150.15 │ 200 │ 3,200 │
│ $150.12 │ 500 │ 3,000 │
│ $150.10 │ 800 │ 2,500 │
│ $150.08 │ 300 │ 1,700 │
│ $150.05 │ 1,000 │ 1,400 │
│ $150.03 │ 400 │ 400 │ ← Best Ask
├──────────┴───────────┴───────────────────────────┤
│ SPREAD: $0.01 │
├──────────┬───────────┬───────────────────────────┤
│ Price │ Size │ Cumulative │
├──────────┼───────────┼───────────────────────────┤
│ $150.02 │ 800 │ 800 │ ← Best Bid
│ $150.00 │ 1,500 │ 2,300 │
│ $149.98 │ 600 │ 2,900 │
│ $149.95 │ 2,000 │ 4,900 │
│ $149.92 │ 1,200 │ 6,100 │
│ $149.90 │ 900 │ 7,000 │
├──────────┴───────────┴───────────────────────────┤
│ BID SIDE │
└──────────────────────────────────────────────────┘
Cost of Walking the Book¶
Example¶
Buying 2,000 shares:
$150.03 × 400 = $60,012
$150.05 × 1,000 = $150,050
$150.08 × 600 = $90,048
Total: 2,000 shares at avg $150.055
vs. Best Ask: $150.03
Impact: $0.025/share (0.017%)
Liquidity Metrics¶
Order Book Imbalance¶
OBI = (Bid Volume - Ask Volume) / (Bid Volume + Ask Volume)
Range: -1 (all ask) to +1 (all bid)
Positive OBI → Buying pressure
Negative OBI → Selling pressure
where:
Bid Volumecumulative size on the bid side (usually top N levels) ·Ask Volumecumulative size on the ask side · normalized to [-1, +1] by the total. does: the canonical microstructure signal for short-horizon directional pressure. Used as a feature in HFT, queue-position models, and short-term reversion/momentum classifiers.
Market Depth Ratio¶
Depth Ratio = Volume within X% of midpoint / Average Daily Volume
Higher ratio = More liquidity relative to normal activity
where:
Volume within X% of midpointresting size on the book within ±X% (typically 0.5–1%) of the mid ·Average Daily Volume(ADV) standard liquidity benchmark. does: normalizes book depth by the asset's typical turnover. Lets you compare depth across instruments and flag when an asset's book is thin relative to its flow.
Bid-Ask Spread vs. Depth¶
Quality Score = Depth / Spread
High depth + tight spread = High quality liquidity
Low depth + wide spread = Poor liquidity
where:
Depthsize resting at top of book (or aggregated near the touch) ·Spreadquoted bid-ask gap. does: a single rough number combining tightness and depth. Practical heuristic for ranking venues or names — never use spread or depth alone.
Liquidity Patterns¶
Intraday Liquidity Profile¶
Liquidity
│
│████████████ ████████████
│████████████ ████████████
│████████████ ██████████ ████████████
│████████████████████████████████████████████████████████████
│─────────────────────────────────────────────────────────────
│ Open Midday Close
└───────────────────────────── Time
High at open (but volatile)
Dip during midday (lower volume)
High at close (institutional activity)
Event-Driven Liquidity Changes¶
| Event | Liquidity Effect | Duration |
|---|---|---|
| Earnings | Dries up before, surges after | Minutes-hours |
| Fed announcement | Dries up before, chaotic after | Hours |
| Large block trade | Temporary depletion | Seconds-minutes |
| Market crash | Evaporates then returns | Hours-days |
| Index rebalance | Surges in specific names | End of day |
Dark Pool Liquidity¶
Hidden Volume¶
Dark pools may represent 30-40% of US equity volume but don't display orders.
Types of Hidden Liquidity¶
| Type | Description | Detection |
|---|---|---|
| Iceberg orders | Partially displayed | Pattern of refilling |
| Dark pool orders | Not on lit exchange | FINRA TRF reports |
| Internalized flow | Broker matches internally | SEC 605/606 reports |
| Reserve orders | Hidden behind displayed | Inferred from execution |
Liquidity and Strategy Design¶
Liquidity Requirements by Strategy¶
| Strategy | Required Liquidity | Tolerable Spread | Max % of ADV |
|---|---|---|---|
| Scalping | Very High | < $0.01 | < 0.1% |
| Day Trading | High | < $0.05 | < 1% |
| Swing Trading | Medium | < $0.10 | < 5% |
| Position Trading | Low-Medium | Any | < 10% |
| HFT | Very High | Tick-bound | < 0.01% |
Liquidity Risk¶
Liquidity Black Holes¶
When liquidity suddenly disappears: 1. Market makers widen spreads or pull quotes 2. Stops trigger, creating cascading sells 3. Price gaps occur 4. Panic selling intensifies
Examples: - Flash Crash (May 2010) - Treasury market (Oct 2014) - GBP flash crash (Oct 2016)
Practical Guidelines¶
When Liquidity Is Good¶
- Trade larger sizes
- Use market orders with confidence
- Tighter stop-losses feasible
- Scalping strategies viable
When Liquidity Is Poor¶
- Reduce position size
- Always use limit orders
- Wider stops needed
- Avoid scalping
- Consider alternative instruments (ETFs vs. individual stocks)
Key Takeaways¶
- Liquidity Is Not Constant — Varies by time, events, and market conditions
- Depth Matters — Tight spread means nothing without depth
- Hidden Liquidity — Significant volume exists off-exchange
- Impact Cost — Your order size determines your true cost
- Risk Management — Liquidity risk can be worse than price risk
- Monitor Continuously — Liquidity conditions change rapidly
Next Steps¶
- Glossary — Key terms reference
- Market Microstructure — Deep dive into order book dynamics
- Execution Algorithms — Managing market impact