Market Microstructure
Created with Inkfluence AI
Trading market microstructure: liquidity, spreads, and price formation
Table of Contents
- 1. Bid-Ask Spread Decomposition
- 2. Liquidity Measures and Microstructure Data
- 3. Order Book Depth and Shape Effects
- 4. Price Impact Models for Execution
- 5. Limit Orders vs Market Orders
- 6. Measuring and Attributing Slippage
- 7. Optimal Execution with Almgren-Chriss
- 8. Microstructure Regimes and Robust Backtesting
Preview: Bid-Ask Spread Decomposition
A short excerpt from “Bid-Ask Spread Decomposition”. The full book contains 8 chapters and 17,669 words.
A trader can watch a market quote a tight bid-ask spread for minutes and still end up paying a wide effective spread. The gap between the quoted spread (what the screen shows) and the effective spread (what you actually pay after fills) shows up precisely when liquidity is “real” but not equally available to every order. If you trade size, work orders, or rebalance inventory, you need to understand where that gap comes from - otherwise you end up tuning your execution strategy by feel.
This chapter teaches you how quoted and effective spreads arise from three concrete mechanisms: adverse selection, order processing, and inventory effects. You will learn how to break the spread into parts you can observe in your own prints, then map each part to an execution decision you can test. After reading, you will be able to look at a day of fills and say, with numbers, whether you paid mainly for toxic flow, for queueing and latency, or for your own inventory footprint.
Why the spread splits into quoted vs effective (and what each cause buys you)
Quoted spread comes from how the best bid and best ask get posted, while effective spread comes from how your orders interact with the incoming order flow and the book’s operational limits. When you buy at the ask (or cross it indirectly), you usually assume you “paid the spread.” In practice, the market often widens before your order completes, or the liquidity you hit moves away, or your fills cluster in price levels that reflect who you are and what you already hold.
Adverse selection means the market makers or liquidity providers adjust their quotes because they suspect your order contains information they do not have. If they think you are more likely to buy before price rises (or sell before it falls), they demand compensation through a wider spread. You will often see this as a pattern: your marketable buys occur during upticks, your marketable sells occur during downticks, and the effective spread you pay increases when your order direction aligns with short-term price moves.
Order processing covers the mechanical delay between “you sent a message” and “the exchange matched it,” plus any internal routing and matching logic. Even in a low-latency environment, you rarely match exactly at the moment you decide. Queue position, symbol-level throttles, and order-handling rules create a gap between the displayed quote and the quote you actually trade. This effect tends to show up as systematic underperformance when the book is fast, thin, or you run close to your message timing limits.
Inventory effects capture the fact that liquidity providers manage risk across their own inventory. If they already hold a lot of the asset, they may shade quotes to discourage more of the same side of flow, effectively widening the spread for your subsequent trades. This cause becomes visible when your own trading (or the broker’s aggregated flow) repeatedly leans on one side, and the effective spread responds more strongly than the quoted spread does.
The practical problem this chapter solves: you cannot improve what you cannot separate. If you lump every pain point into “the spread was wide,” you will over-tune your limit prices, chase liquidity that is not actually there, or misdiagnose latency as toxic flow. The Spread Mirror Framework gives you a way to mirror your trades against the book’s evolution and classify the dominant driver.
How the Spread Mirror Framework decomposes spread into actionable parts
The Spread Mirror Framework works by comparing three things at the same time: (1) the quoted spread around each decision time, (2) the mid-price movement before and after your fill, and (3) the direction and intensity of your own order pressure relative to the book depth. You then map each comparison to adverse selection, order processing, or inventory effects.
Use this method on a single symbol over a controlled window first. Start with a day where you have a clean mix of resting orders and marketable orders, then expand to longer periods once your labels stabilize.
1. Align each fill to the quote state you actually traded
For every execution, record the best bid and best ask (or at least the midpoint) at the earliest timestamp you can reliably associate with the order entry and the timestamp of the fill. Compute the quoted spread at both times. If you cannot get millisecond-level quote snapshots, use exchange-level “event time” from your feed and keep your analysis at that resolution.
Expected outcome: you will see whether your effective cost comes from the spread changing after you decide (often order processing) or from the market moving against you (often adverse selection).
2. Compute an effective-vs-quoted spread gap per trade
For each fill price \(P\), define the trade-side sign \(s\): \(+1\) for buys, \(-1\) for sells. Let \(M\) be the midpoint at decision time and \(SP\) be the quoted spread at decision time....
About this book
"Market Microstructure" is a finance book by Michael Burney with 8 chapters and approximately 17,669 words. Trading market microstructure: liquidity, spreads, and price formation.
This book was created using Inkfluence AI, an AI-powered book generation platform that helps authors write, design, and publish complete books. It was made with the AI Ebook Generator.
Frequently Asked Questions
What is "Market Microstructure" about?
Trading market microstructure: liquidity, spreads, and price formation
How many chapters are in "Market Microstructure"?
The book contains 8 chapters and approximately 17,669 words. Topics covered include Bid-Ask Spread Decomposition, Liquidity Measures and Microstructure Data, Order Book Depth and Shape Effects, Price Impact Models for Execution, and more.
Who wrote "Market Microstructure"?
This book was written by Michael Burney and created using Inkfluence AI, an AI book generation platform that helps authors write, design, and publish books.
How can I create a similar finance book?
You can create your own finance book using Inkfluence AI. Describe your idea, choose your style, and the AI writes the full book for you. It's free to start.
Write your own finance book with AI
Describe your idea and Inkfluence writes the whole thing. Free to start.
Start writingCreated with Inkfluence AI