Aperiodic
CryptoRWANew
Catalog
Markets
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 98.70SPR 0.60
99.401.02
99.203.89
99.102.09
99.003.69
spread 0.60
98.401.30
98.302.03
98.204.49
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
98.999.6100.398.70

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

Microstructure, liquidity & order flow metrics for crypto perpetuals.

Built from hundreds of terabytes of raw data and distilled into point-in-time metrics you can pull as parquet files. Plus the raw trades, quotes and derivatives data behind them.

Get startedBook a call
Use Cases
  • Improve your backtest
  • Find new alpha
  • Execute smarter
Catalog
  • Full Catalog
  • Markets
  • Order Flow
  • L1 — Top of Book
  • L2 — Order Book
  • Market Data
  • Derivatives
  • Raw Data
  • RWA
  • Atlas Security Master
Developers
  • API Docs
  • Notebooks
  • For AI Agents
  • Changelog
  • Roadmap
  • llms.txt
Learn
  • Replays
  • Microstructure Guide
  • Research Blog
  • FAQ
Compare
  • All vendors
  • vs. Tardis
  • vs. CoinGlass
  • vs. Kaiko
  • vs. Amberdata
Company
  • Pricing
  • Contact
  • Book a call
  • Terms of Service
  • Privacy Policy
  • Licensing
  • SLA

© Copyright 2026 Aperiodic. All Rights Reserved.

Aperiodic Limited · Registered in Ireland · Company No. 815273 ·
136 Capel Street, Dublin D01 T2C9, Ireland

Shown: minute closes of 847 perpetuals, 20:30–22:30 UTC on 10 Oct 2025, IOTX in orange · built with ohlcv 1m