Market Depth — known as Level 2 data — shows the full order book: every visible buy and sell order queued at every price level beyond the best bid and ask. Where Level 1 shows you the current price, Level 2 shows the entire supply-and-demand structure waiting to execute. It is the closest a trader gets to seeing what is coming before it happens.
Section 1: Core Mechanics
Every limit order ever placed creates an entry in the order book. The order book is the complete ledger of all pending buy and sell orders waiting for execution. Market Depth makes this ledger visible — organized by price level, showing the total quantity of orders at each price.
The Three Data Levels
Level 1: Best bid and ask only — the inside market. Free on most retail platforms. Shows only where the next trade will execute.
Level 2: Full order book across all market makers and market participants. Shows depth at every queued price. Requires paid subscription ($10–$30/month on most platforms including IBKR, TD Ameritrade, Interactive Brokers).
Level 3: Ability to enter, modify, and cancel quotes directly on the exchange. Available only to registered market makers and NASDAQ members — not accessible to retail traders.
Formula
Market Depth has no formula in the traditional sense. It is a data structure: a sorted list of price-quantity pairs on each side of the market.
Where is the price level and is total quantity queued at that level. The bid stack is sorted descending (highest bid first). The ask stack is sorted ascending (lowest ask first).
Inputs
- Exchange feed: Direct market data from NASDAQ, NYSE, or CME (for futures)
- Market maker quotes: Visible orders placed by registered participants
- ECN orders: Electronic communications network limit orders from retail and institutional traders
- Dark pool orders: NOT included — dark pools execute off-exchange and are invisible to Level 2
Parameters
| Parameter | Default | Range | Impact |
|---|---|---|---|
| Depth levels displayed | 10 | 5–20+ | More levels reveal larger picture; fewer focus on near-term support/resistance |
| Aggregation | Per price level | Per penny / $0.05 / $0.25 | Aggregating by wider intervals smooths noise; useful for slower stocks |
| Update speed | Real-time | Delayed 100ms to real-time | Delayed data misses HFT-driven changes; institutional use requires real-time |
Output and Visual Behavior
Level 2 is displayed as two columns: bids (green, left side) and asks (red, right side), sorted by price proximity to market. The "depth chart" variant visualizes cumulative orders as a staircase — the x-axis is price, the y-axis is cumulative volume. A steep step in the bid stack = large buy order at that level. A flat section = few orders = easy price movement through that zone.
Section 2: Interpretation & Signals
Reading the Book — Key Patterns
| Pattern | Interpretation | Action |
|---|---|---|
| Large bid wall (thousands of shares at single price) | Potential support level | Watch for price testing that level — hold or absorb? |
| Thin ask stack 2–5 cents above price | Easy breakout zone | Price can move quickly through empty space |
| Stacked bids disappearing on approach | Possible spoofing — fake support | Do not rely on this level as support |
| Large ask wall held for multiple ticks | Real supply — sellers defending a level | Expect price to struggle at that level |
| Bids and asks pulling simultaneously | Market makers reducing exposure | Expect spread widening and volatility spike |
Bid Walls and Ask Walls
A bid wall is a large cluster of buy orders at a specific price. In theory, this represents a price level where large buyers are willing to commit capital. In practice, bid walls have two contradictory interpretations:
Genuine support: An institution with a mandate to accumulate shares places a visible large bid at a specific level. Price bounces as the order absorbs selling. The wall gradually fills as sellers hit the bid.
Spoofing: A large order is placed to create the impression of demand, discouraging sellers and attracting buyers — then cancelled before execution. HFT firms and sophisticated traders spoof the order book routinely and legally in many jurisdictions (though illegal in regulated markets, enforcement is difficult).
Time and Sales — The Tape
The Time and Sales window shows every completed trade in real time: price, size, and which side was aggressive (buy or sell). Reading the tape alongside Level 2 creates a complete picture:
- Large prints at the ask with the bid wall holding = buyers overwhelming offers — bullish
- Large prints at the bid with the ask holding steady = sellers hitting bids despite visible demand — bearish
- Small prints bouncing between bid and ask = balanced market, no directional pressure
- Sequence of increasingly large prints at the ask = institutional buying program in progress
Order Book Support — Large Bid Wall Holds, Breakout Follows
Iceberg Orders
An iceberg order places only a small visible portion in the book — typically 100–500 shares — while a much larger hidden portion executes automatically as the visible quantity fills. Signs of an iceberg:
- A bid or ask refills immediately after filling to the same size
- The same price level appears repeatedly in the tape at uniform print sizes
- Total prints at a level far exceed what was ever visible in the book simultaneously
Icebergs are ubiquitous in institutional execution. When you see a level that keeps getting hit but never depletes, suspect an iceberg.
Section 3: Pass vs. Live — Real-Time Reliability
Level 2 data is among the most ephemeral information in markets. An order visible in the book at 10:00:00.000 may be gone by 10:00:00.001. HFT algorithms update orders thousands of times per second. Retail traders see a slightly delayed version of this activity — typically 50–200ms behind. Use Level 2 for context and directional bias, not for execution-level precision on HFT timescales.
Section 4: Practical Use Cases
Setup: Level 2 + Time and Sales on a dual monitor; 1m or 2m chart as reference Signal: Large bid appears at current support level; tape shows buyers absorbing offers (prints at ask) near the bid wall Entry: After 2–3 minutes of sustained bid wall holding with buy-side tape prints, enter long with limit order at ask Exit: Bid wall begins to pull (disappear) or tape shows large prints at bid — exit immediately Key rule: Never enter based on book alone without tape confirmation — the tape shows what is actually executing, not just what is queued
Setup: Check daily Level 2 depth at open for your watch list stocks; identify significant bid and ask clusters Signal: Multiple large market makers aligned on same side of book at a key technical level Entry: Price approaches the bid cluster during a pullback — limit entry at or above the cluster price Exit: At measured target above the next visible ask cluster Key rule: Swing trades should not rely primarily on Level 2 — use Level 2 only to time entry within a chart-based setup, not as the primary signal
Setup: Not directly applicable — order book resets continuously; no persistent signal Signal: Use Level 2 only for entry and exit execution optimization on position-size orders Entry: Split large position entries across multiple sessions; watch book depth to identify when to add Exit: For large positions, check whether your intended exit size would exhaust the visible bid depth — if so, split over multiple days Key rule: Position traders should focus on daily average volume as the liquidity metric, not Level 2 depth — the book resets; ADV does not
Real example: On 2024-01-12, NVDA showed a 500,000-share bid wall at $595.00 from 10:05–10:22 AM EST. The tape showed repeated 5,000–10,000 share prints at $595.02 (ask level) as sellers failed to break the bid. Price held $595 for 17 minutes, then broke to $601 when the absorbing buying completed. Traders watching the tape saw the exhaustion of the sellers before the move — the chart showed only a flat 17-minute consolidation.
Section 5: Pseudo Code
INPUT: order_book_feed # streaming Level 2 data: list of (side, price, quantity, market_maker_id)
time_sales_feed # streaming Time & Sales: list of (timestamp, price, size, aggressor_side)
PROCESS:
Step 1: Maintain sorted bid and ask dictionaries
bids = {} # price -> total_quantity (sorted descending)
asks = {} # price -> total_quantity (sorted ascending)
Step 2: On each order book update (add/modify/cancel):
if event_type == "ADD":
book[side][price] += quantity
elif event_type == "MODIFY":
book[side][price] = new_quantity
elif event_type == "CANCEL":
book[side][price] -= quantity
if book[side][price] <= 0:
del book[side][price]
Step 3: Compute depth metrics
bid_depth_5 = sum(bids[p] for p in top_5_bids)
ask_depth_5 = sum(asks[p] for p in top_5_asks)
imbalance = (bid_depth_5 - ask_depth_5) / (bid_depth_5 + ask_depth_5)
Step 4: Detect potential spoof
for each large_order in book:
if large_order.age_ms < 500 and price_approaching(large_order.price):
flag = "POTENTIAL_SPOOF_MONITOR"
Step 5: Detect iceberg from tape
if consecutive_prints_at_same_price >= 5 and uniform_size:
flag = "ICEBERG_DETECTED"
OUTPUT:
bid_stack[] — sorted bid levels with quantities
ask_stack[] — sorted ask levels with quantities
imbalance_ratio — book imbalance metric (-1 to +1)
flags[] — spoof and iceberg alerts
EDGE CASES:
- Price level with zero quantity: remove from book immediately
- Feed gap (connection loss): mark book as stale; do not trade on stale book data
- Locked/crossed market: flag as anomaly; investigate before trading
Section 6: Parameters & Optimization
Data Access Options by Platform
| Platform | Level 2 Access | Cost | Quality |
|---|---|---|---|
| Interactive Brokers | Full NASDAQ/NYSE Level 2 | ~$10/month | Excellent |
| TD Ameritrade / Schwab | Level 2 via thinkorswim | Free with account | Good |
| TradeStation | Full Level 2 | Included in platform | Good |
| Webull | Limited Level 2 | Free with account | Basic |
| TradingView | No Level 2 | N/A | Not available |
Parameter Impact
| Setting | Effect | When to Apply |
|---|---|---|
| More depth levels (20+) | See larger supply/demand picture | Position entry, identifying major walls |
| Fewer depth levels (5) | Focus on near-term execution | Active scalping, rapid decision-making |
| Aggregated by $0.05 intervals | Reduces noise on faster-moving stocks | Mid-cap stocks with spreads above $0.05 |
What is the difference between NASDAQ Level 2 and NYSE OpenBook?
NASDAQ Level 2 shows quotes from all registered NASDAQ market makers and ECN participants. NYSE OpenBook shows the NYSE specialist book and SuperDOT system orders. For most modern US equity trading, NASDAQ Level 2 is the more relevant feed — the vast majority of price discovery in US equities now happens on NASDAQ or via ECNs like ARCA and BATS, regardless of where a stock is primarily listed.
Do dark pools show up in Level 2?
No. Dark pool orders are completely invisible to Level 2. Dark pools — including Liquidnet, IEX, and broker-run ATSs — execute off-exchange, away from the public order book. This means that Level 2 systematically understates true liquidity when large institutions are using dark pools. If you see a stock moving strongly but Level 2 shows thin volume, the real order flow is likely executing in a dark pool.
Section 7: Synergies & Conflicts
| Works Well With | Avoid Combining With | |
|---|---|---|
| Time and Sales | Tape confirms which book orders are actually executing — essential pairing for scalpers | — |
| Order Flow Imbalance | OFI tells you who is aggressive; Level 2 shows where orders are queued — combined view is complete | — |
| Bid-Ask Spread | Spread tells you cost of entering; book depth tells you whether price can move quickly — both pre-trade checks | — |
| Volume Profile | POC from volume profile shows historical execution zones; book depth shows current queued supply/demand at those levels | — |
| Lagging indicators on same timeframe | — | RSI and MACD lag by definition; Level 2 is real-time — they operate on completely different timescales |
| Fundamental analysis as primary signal | — | Book depth changes every millisecond; fundamental catalysts play out over days to weeks — mixing them creates timeframe confusion |
Section 8: Common Mistakes
| Mistake | Root Cause | Solution |
|---|---|---|
| Treating bid walls as guaranteed support | Unaware of spoofing | Watch whether wall holds when price approaches — a wall that disappears is spoofed |
| Reading Level 2 without the tape | Book shows queued orders; tape shows actual aggression | Always use Time and Sales simultaneously — never rely on book alone |
| Ignoring dark pool activity | Assuming all institutional flow is visible | Unexplained price movement on thin visible book = dark pool — widen stop |
| Over-relying on Level 2 for swing trades | Book resets every minute — irrelevant for multi-day trades | Use Level 2 only for entry timing on swing trades, not for directional bias |
| Not distinguishing Level 2 by venue | NASDAQ, NYSE, ARCA, BATS show different data | Use a consolidated feed (aggregated across venues) for the most complete picture |
Section 9: Cheat Sheet
USE WHEN: Scalping entry timing, identifying near-term support/resistance from order clusters, detecting spoofing, optimizing large order execution
AVOID WHEN: Position sizing for multi-day trades, making directional bias decisions (use price/volume charts instead), trading on books that appear and disappear rapidly
ENTRY SIGNAL: Bid wall holds on approach + tape shows buy prints at ask (genuine absorption) = enter long above the wall
EXIT SIGNAL: Bid wall disappears as price approaches (spoof) or tape shifts to large prints at bid = reduce long exposure immediately
PARAMETERS: 10 levels of depth for most scalping use; 20+ levels for institutional order routing; real-time feed required (no delayed data)
CONFLUENCE: Time and Sales (tape) + Order Flow Imbalance + VWAP (contextual level)
RISK: Spoofing is common — book data can be deliberately misleading; never trade book alone without tape confirmation
BEST TIMEFRAME: 1m–15m for scalping; entry/exit timing only for swing trades