Aperiodic
DataFactors
Catalog
Pricing
Get Started

Interactive Guide

The Anatomy of a Trade

An interactive journey through market microstructure: watch orders become prices, feel the spread respond to stress, and discover why these mechanics shape every trade you will ever make.

Scroll to begin▼
Chapter 01

The Order Book Comes Alive

Every market starts with two opposing lines: buyers and sellers, stacked by price and size. The order book is not just a record — it is the market's living, breathing state.

Imagine a room where buyers line up on the left and sellers on the right. The person at the front of each line sets the best bid and best ask. The gap between them is the spread. When a buyer gets impatient and crosses over to the seller's side at their price, a trade happens.

Live Order Book
MID 100.65SPR 0.10
101.605.64
101.500.86
101.405.68
101.304.05
100.902.81
100.7012.05
spread 0.10
100.604.56
100.502.09
100.404.98
100.304.68
100.202.27
100.105.02
Price levels in the live order book
Total quantity available at this price
Size:10.0

Try a large size (10+) and watch the spread blow out

Mid Price
BuySell
99.5100.0100.5100.65

Try placing a market buy with a large size. Watch how the order eats through the ask side, consuming liquidity level by level. The spread widens. The midprice shifts. This is in its most elemental form.

Biais, Hillion & Spatt (1995) showed that the shape of the order book — not just the best price — contains predictive information about future price dynamics. The distribution of depth across levels reveals strategic positioning before it shows up as obvious price moves.

Chapter 02

The Price of Uncertainty

The spread is not just a cost — it is a risk price. Market makers set it wide when they're nervous, like a store charging more for something they're not sure they can restock.

Huang & Stoll (1997) decomposed the spread into three components: adverse selection (the risk of trading against someone who knows more), inventory holding (the risk of being stuck with a position), and order processing (the cost of doing business). Drag the slider below and watch all three shift in real time.

Spread Stress TestNormal
BID
11.0 bps
ASK
Market Uncertainty25%

Spread Decomposition (Huang & Stoll)

Adverse selection 38%Inventory 24%Processing 39%

Active Market Makers

7 of 8 still quoting

Notice how market makers withdraw as uncertainty rises. In crisis conditions, only one or two remain — and they demand a massive spread to compensate. A 2 bps average spread that was actually 0.5 bps for 55 seconds and 8 bps for 5 seconds tells a fundamentally different story than a steady 2 bps. The itself predicts future return volatility.

A widening spread is a leading indicator — it signals increased uncertainty about fair value before the price itself visibly reacts. Spread compression signals confident competition among liquidity providers and a regime where execution is cheaper and mean reversion is more reliable.

Next Chapter Soon

Register to be notified when the next chapter is available

Aperiodic

Crypto microstructure, liquidity & flow metrics — built from hundreds of terabytes of raw data, distilled into point-in-time metrics you can pull as parquet files.

Registered office
Aperiodic Limited
136 Capel StreetDublin, D01 T2C9Ireland
Registered in Ireland · Company No. 815273

© Copyright 2026 Aperiodic. All Rights Reserved.

Product
  • Data Catalog
  • Pricing
  • API Docs
  • Notebooks
  • Find new alpha
  • Roadmap
  • Changelog
  • FAQ
  • For AI Agents
Metrics
  • Order Flow
  • L1 — Top of Book
  • L2 — Order Book
  • Market Data
  • Derivatives
Channels
  • Blog: Research Insights
  • Microstructure Guide
  • Aperiodic vs. Tardis
  • Aperiodic vs. CoinGlass
  • LinkedIn
Company
  • Contact
  • Book a call
  • Terms of Service
  • Privacy Policy
  • LLM? Read this.

Provided for informational purposes only; not investment advice, a recommendation, or an offer to transact. Past performance is not indicative of future results.