Skip to the replay
Aryan Ayyar GitHub

Lab / Market microstructure

Prayogaप्रयोग

Inside the Limit Order Book

Follow visible liquidity as orders arrive, trades execute, and the best prices change.

Historical replay · not a live feed

AAPL · 30 August 2019 · Nasdaq · 09:45–10:15 ET

Replay time · ET

Loading the order-book sample…

Use the arrow keys to move by one second. All times are US Eastern Time.

Liquidity map

Displayed shares by price and time
An interactive map of displayed liquidity. The current snapshot is available in the displayed book table below.

Move over the map or tap a price level to inspect it.

Following replay

Hover to inspect · click or tap to pin · use the window control to zoom. Arrow keys on the chart move through time and price.

Bid liquidityAsk liquidity
Buyer-initiatedSeller-initiatedDirection unknown

Explore a moment

Jump to a moment to examine its neighborhood in detail.

Displayed book

AAPL · selected snapshot
1s sample
Best bid—
Midpoint—
Best ask—
Best-bid size (shares)
—
Best-ask size (shares)
—
Current spread
—
Top-of-book imbalance
—
What does imbalance measure?

(Best-bid size − best-ask size) / (best-bid size + best-ask size). It ranges from −1 to +1 and describes displayed shares at the two best quotes only.

Displayed shares at each recorded price level in the selected snapshot
SidePrice ($)Shares
Loading displayed levels…

Prices at the touch

Best bid, best ask & midpoint · USD
Linked to replay
The current best bid, best ask and midpoint are shown in the displayed book panel.

Green: best bid · coral: best ask · dashed ivory: midpoint. Hover moves the crosshair; click a time to select its exact prices in Book.

Order activity

Messages per minute · separate labeled scales
Exact message counts for every minute are available in the activity table below.

Select a time to see exact minute counts.

Message counts, not share volume. Cancels include deletions and replacements. Each bar includes the whole minute, even when replay time is at its start.

View exact minute counts
Order activity: messages in each minute
Minute (ET)AddsCancelsExecutionsPrints

Whole-window summary

09:45–10:15 ET · these values do not change during playback

The research question

What does visible liquidity leave out?

The book shows displayed shares waiting at each price. It does not reveal every trader’s intention, how long those orders will remain, or all the liquidity available to trade.

Follow a thin best quote into the deeper book, or compare an execution burst with the prices around it. These are ways to explore the gap between the liquidity we can see and the trading conditions we experience, not evidence of what caused a price move.

Related research: queue priority and adverse selection
Sources & interpretationAbout this replay

A historical sample of AAPL on 30 August 2019, 09:45–10:15 US Eastern Time, reconstructed from Nasdaq TotalView-ITCH order messages. This is Nasdaq venue coverage, not the consolidated US market.

What is sampled
The displayed book is reconstructed from order additions, executions, cancellations, deletions and replacements, then sampled immediately before each one-second boundary. Up to 14 occupied price levels per side are retained. Activity counts use the underlying messages, not changes between snapshots. Charts show a historical overview; each activity bar includes its whole minute, not only information available at the current replay time.
What the ladder means
Each row aggregates displayed shares at a price. It does not show individual orders, FIFO queue positions, or your probability of being filled. A price outside the retained levels has unknown depth in this sample.
Trades and direction
Displayed execution direction is derived from the resting order’s side. Non-displayed trade messages are plotted neutrally: their aggressor direction is unknown. Nasdaq’s fixed Buy/Sell flag on these messages is not an aggressor label. Markers represent feed messages, not a printability- or broken-trade-adjusted time-and-sales tape: this reconstruction does not filter the C-message printable flag or adjust for broken trades. Their incidence cannot be recovered from this compact sample.
How to read the map
Brighter cells indicate more displayed shares. The scale uses a nonlinear transform and clips at its labeled reference depth; it is not a linear comparison of brightness. The marker key shows how trade size maps to bubble size. When the overview is compressed, it draws one representative snapshot per horizontal pixel column; inspect or zoom for exact one-second values. One-second sampling can miss changes within a second.

Loading processing details…