5D Library › Books › 5DL-B-045

高频限价订单簿微观结构、霍克斯自激点过程与逆向选择毒流

从阿韦拉内达—斯托伊科夫做市方程到知情交易概率的数理金融及古典市平阛阓考辨

High-Frequency Limit Order Book Microstructure, Hawkes Self-Exciting Point Processes and Adverse-Selection Flow Toxicity: From the Avellaneda–Stoikov Market-Making Equations to VPIN, Read Beside Classical Chinese Thought on Market Equilibrium

  • 范雅福 Fan Yafu
  • Version 1.0.0 · 2026-10-30
  • CC-BY-NC-ND-4.0
  • 5DL-B-045
DOI10.5281/zenodo.23828065

摘要

做市商为什么要留出买卖价差?订单为什么成簇到来?能否从成交数据中度量「有毒」的订单流?本书是教学与研究用的数学模型,不是投资或交易建议。它依次讨论:格罗斯滕—米尔格罗姆序贯交易模型(作者框架中的「格罗斯曼」已改正;在先验 1/2 时价差等于知情比例乘以价值之差,做市商低估知情比例会系统性亏损)与凯尔的序贯及连续拍卖(用定理 2 的差分方程逐次计算:连续拍卖的价格冲击系数为单期的两倍,1,024 次拍卖时为 0.9963,信息线性进入价格);阿韦拉内达—斯托伊科夫的保留价格 s − qγσ²(T−t) 与近似最优价差,并与格扬、勒阿勒与费尔南德斯—塔皮亚的精确常微分方程解对照(在原文参数下,剩余时间为 1 时近似公式把库存为 1 的保留价格偏移估为 −0.400,精确解为 −0.052;重做原文模拟,γ = 1 时按精确解报价的平均利润为 63.9,近似公式为 31.2);霍克斯自激过程的分支表示、平稳性判据 α/β < 1、法诺因子与时间重标度检验,互激过程的签名图闭式解与埃普斯效应,以及林—吉田估计量对非同步交易偏差的修正;知情交易概率 PIN 的估计误差与浮点溢出问题、VPIN 与 2010 年闪崩之争(批量分类可能把不含知情交易的波动率冲击读成订单流毒性),以及价差分解与市场关闭的门槛;订单流不平衡(CKS 实证中同期平均 R² 为 65%)与挂单量不平衡(与下一次变动方向的非线性关系,依赖队列绝对大小)的区别与排队位置的逆向选择;阿尔姆格伦—克里斯有效前沿,以及 VWAP 只在临时冲击与成交量成反比时才最优。

第七章与《周礼·地官》的司市与贾师、《孟子·公孙丑下》的「龙断」(原文为「古之为市也」)以及《宋史·食货志下八》的市易法并读;作者框架所称《梦溪笔谈》中牙人或市易司「报价撮合」的记载未能找到,未予引用。第八章给出逆向选择、订单流、库存与执行四步核查表,以及一项预注册的模拟撮合实验方案:在独立第三方冻结的模拟器中,比较库存偏置的阿韦拉内达—斯托伊科夫报价与固定对称报价在毒性脉冲下的跨会话夏普比率(唯一主要结局为二者之差,最小关注效应 0.31,8,600 个配对会话,双盲运行,判定规则写成代码)。书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的模型和假说;书中所有数据都是虚构或模拟的。

关键词:市场微观结构;限价订单簿;买卖价差;逆向选择;格罗斯滕—米尔格罗姆模型;凯尔模型;做市;阿韦拉内达—斯托伊科夫模型;库存风险;霍克斯过程;分支比;签名图;埃普斯效应;知情交易概率;VPIN;闪崩;订单流不平衡;挂单量不平衡;最优执行;阿尔姆格伦—克里斯模型

Abstract

Why does a market maker quote a spread? Why do orders arrive in clusters? Can "toxic" order flow be measured from trade data? This book presents mathematical models for teaching and research and is not investment or trading advice. It covers the Glosten–Milgrom sequential-trade model (the "Grossman" of the author's framework is corrected; with a prior of one-half the spread equals the informed share times the value difference, and a dealer who underestimates the informed share loses systematically) and Kyle's sequential and continuous auctions (computed from the difference equations of his Theorem 2: the continuous-auction price impact is twice the one-period value, 0.9963 with 1,024 auctions, and information enters the price linearly); the Avellaneda–Stoikov reservation price s − qγσ²(T−t) and approximately optimal spread, compared with the exact ODE solution of Guéant, Lehalle and Fernandez-Tapia (with the paper's parameters and one unit of time remaining, the approximation puts the reservation-price shift at inventory 1 at −0.400 against −0.052 exactly; re-running the paper's simulation with γ = 1, quoting by the exact solution earns 63.9 on average against 31.2); the cluster representation of Hawkes processes, the stationarity condition α/β < 1, Fano factors and time-rescaling tests, the closed-form signature plot of mutually exciting processes and the Epps effect, and the Hayashi–Yoshida correction for asynchronous trading; the sampling error and floating-point overflow of PIN estimation, VPIN and the 2010 flash-crash dispute (bulk classification can read a volatility shock with no informed trading as toxic flow), and spread decomposition with a threshold at which the market shuts down; the difference between order flow imbalance (an average contemporaneous R² of 65 % in the CKS evidence) and queue imbalance (non-linearly related to the direction of the next move, depending on absolute queue sizes), and the adverse selection of queue position; and the Almgren–Chriss efficient frontier, with VWAP optimal only when temporary impact is inversely proportional to volume.

Chapter 7 reads these beside the market director and price officers of the Rites of Zhou, the "conspicuous mound" of the Mencius (which reads 古之为市也) and the market-exchange law in the History of Song; the records of brokers or the market-exchange office "quoting and matching" in the Dream Pool Essays mentioned in the author's framework could not be found and are not cited. Chapter 8 gives a four-step checklist (adverse selection, order flow, inventory, execution) and a pre-registered simulated-matching experiment comparing the cross-session Sharpe ratios of inventory-skewed Avellaneda–Stoikov quotes and fixed symmetric quotes under toxic pulses on a simulator frozen by an independent third party (single primary outcome their difference, smallest effect of interest 0.31, 8,600 paired sessions, double-blind running, decision rule written as code). Marked boxes separate published evidence, runnable Python calculations (16 programs), classical sources and the author's models and hypotheses; all data in the book are fictional or simulated.

Keywords: market microstructure; limit order book; bid-ask spread; adverse selection; Glosten-Milgrom model; Kyle model; market making; Avellaneda-Stoikov model; inventory risk; Hawkes process; branching ratio; signature plot; Epps effect; probability of informed trading; VPIN; flash crash; order flow imbalance; queue imbalance; optimal execution; Almgren-Chriss model

目录 · Contents

  • 序:价差、成簇与毒流English 中文Preface: Spreads, Clusters and Toxic Flow
  • 第一章 信息不对称与买卖价差:格罗斯滕—米尔格罗姆与凯尔English 中文Chapter 1 Information Asymmetry and the Bid–Ask Spread: Glosten–Milgrom and Kyle
  • 第二章 库存风险与最优做市:阿韦拉内达—斯托伊科夫方程English 中文Chapter 2 Inventory Risk and Optimal Market Making: the Avellaneda–Stoikov Equations
  • 第三章 订单为什么成簇到来:霍克斯过程、签名图与埃普斯效应English 中文Chapter 3 Why Orders Arrive in Clusters: Hawkes Processes, the Signature Plot and the Epps Effect
  • 第四章 度量毒性:知情交易概率、VPIN 与闪崩之争English 中文Chapter 4 Measuring Toxicity: the Probability of Informed Trading, VPIN and the Flash-Crash Dispute
  • 第五章 盘口不平衡与排队:订单流不平衡、挂单量不平衡与排队位置English 中文Chapter 5 Book Imbalance and Queues: Order Flow Imbalance, Queue Imbalance and Queue Position
  • 第六章 大单怎样拆:阿尔姆格伦—克里斯最优执行English 中文Chapter 6 How to Split a Large Order: Almgren–Chriss Optimal Execution
  • 第七章 原典并读:司市、龙断与市易English 中文Chapter 7 Reading the Classics: the Market Director, the Conspicuous Mound and the Market Exchange
  • 第八章 实践与预注册检验English 中文Chapter 8 Practice and a Pre-Registered Test

How to cite · 引用

Fan, Y. (2026). High-Frequency Limit Order Book Microstructure, Hawkes Self-Exciting Point Processes and Adverse-Selection Flow Toxicity: From the Avellaneda–Stoikov Market-Making Equations to VPIN, Read Beside Classical Chinese Thought on Market Equilibrium [高频限价订单簿微观结构、霍克斯自激点过程与逆向选择毒流] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23828065

BibTeX
@book{fan2026order,
  title = {{High-Frequency Limit Order Book Microstructure, Hawkes Self-Exciting Point Processes and Adverse-Selection Flow Toxicity}: From the Avellaneda–Stoikov Market-Making Equations to VPIN, Read Beside Classical Chinese Thought on Market Equilibrium},
  author = {Fan, Yafu},
  year = {2026},
  publisher = {5D Library},
  edition = {Version 1.0.0},
  doi = {10.5281/zenodo.23828065},
  url = {https://doi.org/10.5281/zenodo.23828065},
  note = {Chinese title: 高频限价订单簿微观结构、霍克斯自激点过程与逆向选择毒流}
}
DOIhttps://doi.org/10.5281/zenodo.23828065
DOI(全部版本 all versions)https://doi.org/10.5281/zenodo.23828064
ORCIDhttps://orcid.org/0009-0004-3519-1203
5D Library ID5DL-B-045
版本 Version1.0.0 · 中英双语版 Bilingual edition
出版日期 Date2026-10-30
网址 Onlinehttps://5dlibrary.com/books/order-book-microstructure-hawkes-toxicity/
SHA-256 · order-book-microstructure-hawkes-toxicity_bilingual_v1.0.0.pdf649465bd4a7c951323ac6967c5a966e6b4f6c3364d6d935046e0df4a07a3d8fc
SHA-256 · order-book-microstructure-hawkes-toxicity_en_v1.0.0.pdfc2bba68a31ab9986f2fa0e34c160f8c218491a94870e9063226546d0d9b89211
SHA-256 · order-book-microstructure-hawkes-toxicity_zh_v1.0.0.pdfc2508df85b14a51975fd315a036a6970d2f304850bb37b6c64f6d886311b5b0f
Licence · 许可Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0). https://creativecommons.org/licenses/by-nc-nd/4.0/

Disclosure. The author uses the works of 5D Library, including this book, as the methodological basis of his community courses, the 5D Ascension Cards (Dimensional Shift Card Decks) and the Yafu AI knowledge base, and therefore has a commercial interest in the subject of this book. The book promotes no course, card deck or service; the Chapter 8 trial is designed to be run and analysed by researchers independent of the author's business and does not recruit from the author's community, students or customers; all the code and the study protocol are published openly for anyone to check. The author develops and maintains quantitative research scripts and provides related open-source research and independent consulting services; while writing this book he may have held routine observation positions in US equity index funds (such as SPY) or related derivatives. All models in this book are offered solely for mathematical and historical-statistical discussion; they constitute no investment advice or trading signal, and the book recommends no specific trade or asset.