Aperiodic
MarketsLive
Pricing
Get Started

The Anatomy of a Trade · 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.
Share

Shown: an illustrative order book over time, bids below the mid and asks above it.

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 test
BidsAsks
11.0 bps
25%

Spread Decomposition (Huang & Stoll)

  • Adverse selection38%
  • Inventory24%
  • Processing39%

Active Market Makers

7 of 8 still quoting

Spread
11.0 bps
Regime
Normal
Makers quoting
7 of 8
Adverse selection
38%
Shown: a simple model, illustrative, not market data. The three parts follow Huang and Stoll (1997).

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 48 seconds and 8 bps for 12 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.

The model above is illustrative. Our has the spread on real markets, from one-minute bars up, with a free sample to try.

Have your agent redraw this chapter's charts from the data. Start in Claude · Claude Code · Codex · See the prompt

Previous · Chapter 01

The Order Book Comes Alive

The guide

All chapters

Next chapter soon

Chapter 03: Below the Surface

Register to be notified when the next chapter is available.

Sign up
Aperiodic

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.

Use Cases
  • Improve your backtest
  • Find new alpha
  • Execute smarter
Indices
  • All indices
  • Aperiodic Cost Index
  • Aperiodic Depth Index
  • Aperiodic Impact Index
Metrics
  • Full Catalog
  • Live markets dashboard
  • Global Liquidity
  • Unusual activity
  • Order Flow
  • L1 — Top of Book
  • L2 — Order Book
  • Market Data
  • Derivatives
  • RWA
  • Raw Data
Developers
  • API Docs
  • Live WebSocket Feed
  • MCP Server
  • Notebooks
  • For AI Agents
  • Atlas Security Master
  • Pre-flight
  • Changelog
  • Roadmap
  • llms.txt
Learn
  • Replays
  • Microstructure Guide
  • Architecture
  • 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