Market Microstructure#
Market microstructure is the branch of financial economics that studies how asset prices are determined through the trading process — how buyers and sellers interact, how information is incorporated into prices, and how market structure affects the cost and quality of price discovery. Key concepts include the bid-ask spread and its components (order processing, inventory, and adverse selection costs), price impact of trades, the limit order book as the primary mechanism for price formation in modern electronic markets, and the role of market makers as liquidity providers.
The research here spans foundational theory — the Glosten-Milgrom and Kyle models of informed trading, inventory models for optimal market maker quoting, the structure of strategic trading — and empirical applications: how market makers navigate the fill probability versus post-fill returns tradeoff, optimal exchange fee design, Bitcoin price discovery across fragmented venues, and the mechanics of the two-tiered funding rate market. Practical implementations range from the Avellaneda-Stoikov framework for high-frequency market making to order type taxonomy and execution strategy design.
Related topics include Order Flow for OFI-based signals and flow toxicity, Statistical Arbitrage for cross-venue relative-value strategies, and Algorithmic Trading for execution and live deployment topics.
Optimal Make-Take Fees in a Multi Market Maker Environment#
This paper by Bastien Baldacci (Ecole Polytechnique), Dylan Possamai (ETH Zurich), and Mathieu Rosenbaum (Ecole Polytechnique) studies how an exchange should optimally design make-take fee contracts when multiple market makers compete on its platform. Using a principal-agent framework, the exchange (principal) offers fee contracts to N market makers (agents) who then set their bid-ask quotes in a Nash equilibrium. The exchange’s revenue depends on the arrival rate of market orders, which is driven by the aggregate liquidity — the weighted sum of all market makers’ spreads relative to an efficient price. The problem is solved as a two-step Stackelberg game: first, each market maker computes best-response spread strategies given others’ quotes, yielding a Nash equilibrium characterised via a multidimensional system of BSDEs; second, the exchange solves a Hamilton-Jacobi-Bellman equation to find the optimal contract given these equilibrium responses.
The optimal contract is expressed in quasi-explicit form as a sum of stochastic integrals with respect to market order and efficient price processes, making it readily implementable. The contract is indexed only on aggregated order processes and the efficient price — the platform does not need to monitor cross-incentives between individual market makers. Each market maker’s compensation consists of: a base payment calibrated to their reservation utility, per-trade rebates for executed orders (the “make” component), a risk-adjustment term for inventory and price exposure, and a deduction for the certain gains the agent would extract from their own optimisation. Crucially, the exchange can discriminate between market makers through the price-risk component based on their individual risk aversion parameters, while keeping the order-flow-based incentives uniform.
A key counterintuitive finding is that increasing the number of market makers does not necessarily improve the exchange’s outcome. The function S(N) measuring platform PnL as a function of the number of market makers has a unique global maximum — numerically found at approximately N=3 for the paper’s calibration. Beyond this optimum, adding market makers with comparable risk aversion actually decreases order arrival intensity, increases average spreads, and reduces platform profitability, because each maker receives a shrinking share of incentives (described as “a cake whose size increases slower than the number of people who eat it”). However, adding a market maker with higher risk aversion always reduces the average spread, while adding one with lower risk aversion increases the principal’s capacity to offer incentives. Decreasing the taker cost increases platform PnL up to a point, while increasing the weight parameter reduces the best bid-ask spread and increases total order flow and PnL. In the limit as N goes to infinity, the optimal spread converges to the no-contract spread form but with a different value function, and the incentive terms vanish.
Mentioned by Alcibiades in this discussion: Alcibiades frames exchange design as a principal-agent problem where successful venues must balance maker and taker incentives through carefully structured fee mechanisms. He argues that naive rebate rules create synchronised price patterns across makers, latency races concentrate rents among wealthy incumbents, and points programs are unsustainable bribery. The optimal design uses speedbump access to the book, charges takers a fee, pays a portion back to makers as a rebate per dollar of volume, and moves the two in lockstep — so that makers remain viable when their rebate-per-dollar exceeds adverse selection costs, and takers participate when execution costs fall below their alpha or hedging threshold. Hyperliquid (200ms blocks with tiered taker fees) and Lighter (variable latency speedbumps) are cited as real-world examples of this balanced approach.
Where Is the Price of Bitcoin Determined? Price Discovery in a Fragmented Market#
Riccardo Cosenza and Simon Stalder investigate price discovery for Bitcoin across regulated and unregulated spot and perpetual-futures venues using high-frequency data. They apply Hasbrouck information shares, Gonzalo–Granger component shares, and Putniņš information-leadership shares.
Our summary: this is the reference paper for the question “which venue sets the Bitcoin price?” The answer is blunt: unregulated crypto-native venues (primarily Binance spot and perpetual futures) dominate price discovery during the vast majority of trading hours. Regulated venues like Coinbase gain relative importance around specific fixing windows, notably the NY 4pm fixing used as an ETF NAV reference.
Key metrics: Binance’s information share dominates across most hours of the trading day; Coinbase’s share rises around the NY 4pm fixing.
The Two-Tiered Structure of Cryptocurrency Funding Rate Markets#
This study builds a high-frequency panel of perpetual funding rates spanning 26 exchanges (11 centralised, 15 decentralised) covering 749 symbols and roughly 35.7 million 1-minute observations over 8 days. It studies price discovery and arbitrage between CEX and DEX funding markets using Hasbrouck-style information share decompositions and transaction-cost-adjusted arbitrage backtests.
Our summary: this is the first paper to rigorously quantify the directional information flow between CEX and DEX funding rates. CEX funding leads DEX funding with no detectable reverse causality — about a 61% higher integration on the CEX side — meaning any cross-venue basis signal should be interpreted as CEX setting the mark and DEX adjusting to it. The paper also documents that roughly 17% of observations exhibit ≥20 basis point arbitrage spreads between venues, but only about 40% of the largest opportunities yield positive PnL after transaction costs. For anyone building a multi-venue funding-rate strategy, this provides both a benchmark (how much alpha is theoretically available) and a sobering check (how much survives execution).
Key metrics: CEX funding markets lead DEX markets with ~61% higher price discovery integration; ~17% of 1-minute observations show ≥20bp cross-venue arbitrage spreads; only ~40% of the top opportunities yield positive transaction-cost-adjusted PnL. High-frequency panel of 26 exchanges and 749 symbols.
Market Microstructure Foundations#
A comprehensive introduction to market microstructure, the branch of financial economics that studies how investors’ latent demands are translated into executed trades. The article covers the core building blocks including order-driven versus quote-driven markets, the role of market makers, price discovery mechanisms, and the concept of information asymmetry between market participants.
The post explores foundational theoretical models and their practical implications for trading decisions, risk management, and understanding the forces that shape asset prices. Topics include bid-ask spreads, transaction costs, market efficiency at the microstructure level, and the impact of market structure on price formation.
By Simone Menaldo.
Strategic Trading Models#
An exploration of strategic trading models that provide rigorous frameworks for executing large orders while minimizing market impact and preserving informational advantages. The article covers foundational concepts including Kyle’s Lambda estimation, the mechanics of price impact, and advanced execution tactics such as trade splitting, stealth trading, and the logic behind parent order strategies.
The post delves into how institutional traders balance the trade-off between execution speed and market impact, drawing on Kyle’s 1985 seminal model and its extensions. It examines how informed traders optimally reveal their information through trading, and how these theoretical insights translate into practical algorithmic execution strategies used by quantitative trading firms.
By Simone Menaldo.
Information-Based Models in Market Microstructure#
A comprehensive overview of information-based models in market microstructure, providing a framework for understanding how private information is incorporated into asset prices. The article traces the development of these models from Bagehot’s foundational insights through to modern metrics like the Probability of Informed Trading (PIN) and Volume-Synchronized PIN (VPIN).
The post explores the theoretical underpinnings of information asymmetry, adverse selection, and the strategic behavior of informed and uninformed traders. It covers the Glosten-Milgrom sequential trade model, the Kyle continuous auction model, and how these frameworks explain the mechanics of price discovery, liquidity provision, and trading costs in modern markets.
By Simone Menaldo.
Inventory Models in Market Microstructure#
A comprehensive overview of inventory models in market microstructure, which provide a systematic framework for understanding how market makers quote bid-ask spreads to control inventory risk and maximize profitability. The article covers foundational models by Garman (1976), Stoll (1978), and Ho and Stoll (1981), as well as advanced topics such as optimal inventory control and the Avellaneda-Stoikov framework.
The post explores how uncontrolled inventory exposes market makers to adverse price movements, and how optimal quoting strategies dynamically adjust spreads based on current inventory levels, risk aversion, and market volatility. The Avellaneda-Stoikov model is presented as the modern standard for high-frequency market making.
By Simone Menaldo.
Bid-Ask Spread Decomposition#
A detailed guide to decomposing the bid-ask spread into its fundamental components: order processing costs, inventory holding costs, and adverse selection costs. The article covers the theoretical models behind each component, methods for empirical estimation including the Roll (1984) and Madhavan-Richardson-Roomans (1997) approaches, and their behavior across different market conditions.
The post also examines time-varying spread dynamics, cross-sectional variation in spread components across different assets, intraday U-shaped spread patterns, and the impact of electronic versus floor trading on spread composition.
By Simone Menaldo.
Market Liquidity#
An overview of essential measures of market liquidity, from classic spread-based measures to more advanced model-based indicators. The article covers effective spread, realized spread, quoted depth, Amihud illiquidity ratio, Kyle’s Lambda, and other key metrics used to quantify the ease with which assets can be traded without significantly affecting their price.
The post explores the theoretical underpinnings and practical applications of each liquidity measure, explaining how they capture different dimensions of liquidity including tightness, depth, resiliency, and immediacy.
By Simone Menaldo.
Limit Order Book Structure#
A comprehensive overview of the limit order book (LOB), the fundamental data structure representing real-time supply and demand for financial instruments. The article covers key components including price-time priority, pro-rata allocation, order book depth, Level I/II/III market data, order book imbalance as a predictor of short-term price movements, queue position, and visible versus hidden depth.
The post explains how understanding LOB structure provides insights into market sentiment, liquidity, and short-term price dynamics. For traders and portfolio managers, this knowledge informs trading strategies, improves execution quality, and enhances risk management.
By Simone Menaldo.
Understanding Order Types#
A detailed guide to the order types that translate trading strategies into executed trades in modern financial markets. The article covers market orders, limit orders, stop orders, stop-limit orders, iceberg orders, and more complex conditional and algorithmic order variants, examining their mechanics and strategic applications within the limit order book framework.
The post emphasizes that understanding order types is fundamental to managing execution costs, controlling market impact, and optimizing portfolio performance.
By Simone Menaldo.
Why Cumulative Volume Delta Fails Traders#
An examination of why Cumulative Volume Delta (CVD), despite its apparent objectivity, consistently misleads traders. The post argues that CVD wins traders over in hindsight — after a session ends, the CVD chart appears to confirm moves cleanly — but in real time, the signal breaks down because CVD measures aggression totals, not who is actually in control of the auction.
The core issue is that CVD assumes aggressive buying should push price up and aggressive selling should push it down, but this ignores the role of passive absorption by limit orders. Instead of relying on CVD as a directional signal, the author advocates examining delta on lower timeframes to observe how aggression is being absorbed or accepted at specific price levels.
By Sierra Trading.
TradeFM: A Generative Foundation Model for Trade-flow and Market Microstructure#
TradeFM is a 524M-parameter generative Transformer that learns unified trade-flow dynamics directly from billions of trade events across more than 9,000 US equities. The model introduces scale-invariant features and a universal tokenization scheme that map the heterogeneous, multi-modal event stream of order flow into a unified discrete sequence, eliminating asset-specific calibration. Integrated with a deterministic market simulator, TradeFM-generated rollouts reproduce key stylized facts of financial returns including heavy tails, volatility clustering, and absence of return autocorrelation. The model generalizes zero-shot to geographically out-of-distribution APAC markets (Japan and China) with moderate perplexity degradation.
Our summary: the paper’s core contribution is demonstrating that the foundation model paradigm — pre-train a large model on massive heterogeneous data, then transfer — works for market microstructure. Rather than calibrating separate models per asset, TradeFM learns a single model across all liquidity regimes and asset types. Practical applications include synthetic data generation for illiquid assets, stress testing under counterfactual scenarios, and training reinforcement-learning-based trading agents.
Key metrics: TradeFM achieves 2-3x lower distributional error than Compound Hawkes baselines across all return intervals.
Mentioned by Iqbal Zainal in this discussion.
Trading Costs#
Frazzini, Israel, and Moskowitz (AQR / Yale, working paper, 2018) measure real-world trading costs and the price impact function of a large institutional money manager using a singular dataset: $1.7 trillion of live executed trades across 21 developed equity markets from August 1998 to June 2016. Where previous academic work largely relied on TAQ (trade-and-quote) data aggregated across all traders or on theoretical models calibrated to daily price-and-spread series, this paper uses actual orders and live executions from a single large manager — including the market price at trade initiation, the amount traded, and the per-share execution price. This lets the authors compute a precise implementation-shortfall measure of price impact and decompose it across trade type (initiate vs. cover, long vs. short), stock characteristics, trade size as a fraction of daily volume, time, and exchange.
The headline empirical finding is that actual trading costs for a patient institutional trader are roughly an order of magnitude smaller than the cost estimates produced by TAQ-calibrated models in the academic literature (e.g., Korajczyk and Sadka, Lesmond–Schill–Zhou, Novy-Marx and Velikov). The price-impact function is non-linear in trade size, well described by a square-root law with exponent ≈ 0.5 — consistent with Kyle (1985), Almgren et al. (2005), and the BARRA models. Price impact rises with market volatility, declines over time across markets, and is larger for smaller stocks and stocks with higher idiosyncratic risk. The authors validate the model out-of-sample by predicting the realised costs of large passive index funds (Vanguard’s S&P 500 fund and BlackRock’s iShares Russell 2000 ETF) accurately, while TAQ-calibrated models overshoot index-fund costs by several multiples.
Our summary: this is the most important practical reference for whether systematic strategies — momentum, trend following, value, low volatility — survive real-world implementation. The implication for the Hurst–Ooi–Pedersen “Demystifying Managed Futures” framework, and for cross-sectional momentum more broadly, is that the gap between gross and net Sharpe is materially smaller for a patient, sophisticated trader than naive TAQ-based academic backtests suggest. Conversely, the paper is a caution against drawing strong conclusions from any single cost number: the authors explicitly note their estimates apply to a patient trader who provides rather than demands liquidity, executes via proprietary algorithms that decide when to trade but not what to trade, and operates at institutional scale. Retail traders, intra-day strategies, and impatient liquidity demanders face costs much closer to the TAQ estimates. The paper is also notable for separating temporary from permanent price impact and for being one of the few papers to verify cost models against independent broker data (ITG, Deutsche Bank, JP Morgan) and the ANcerno database, which collectively cover 2,000+ institutions and 2,000+ brokers globally.
Data: $1.7 trillion of live executed trades from a single large money manager (AQR) across 21 developed equity markets, August 1998 to June 2016. Out-of-sample validation uses broker-reported costs (ITG, Deutsche Bank, JP Morgan), the ANcerno institutional database, and live cost data from Vanguard’s S&P 500 fund and BlackRock’s iShares Russell 2000 ETF. The live trade dataset is proprietary and not released. The fitted cost model — a square-root price impact function in trade size with calibrated coefficients for market conditions and stock characteristics — is fully specified in the paper and can be reimplemented by practitioners, but exact replication of the calibration requires the AQR execution database.
Key metrics: average market impact across all trades is 9.97 basis points, mean implementation shortfall is 11.02 basis points (a 1.05 bp gap reflecting timing slippage between order arrival and execution). Median costs are lower at 6.18 and 8.63 basis points respectively; value-weighted means are higher at 15.14 and 16.06 basis points, indicating that the largest trades carry the highest costs. Effective bid-ask spread averages less than 0.015% per year across all trades, because most orders are executed passively as limit orders providing liquidity. The average bid-ask spread at order arrival is 21.33 bps, so the live trader pays well under half the quoted spread by patient execution. Most of the price impact is permanent: only 1.26 bps of the 9 bps average is reversed within the next 24 hours, and only 2.08 bps of total price impact reverses the next day. Large-cap stock trades generate 8.90 bps of market impact versus 18.95 bps for small-cap stocks. Cost as percentage of VWAP is just 4.50 bps on average. The fitted price-impact function has a power-law coefficient close to 0.5 in trade size as a fraction of daily volume. 99.9% of intended trades complete, with average realised completion horizon under one day.
By Andrea Frazzini, Ronen Israel, and Tobias J. Moskowitz.
High-Frequency Market-Making with Inventory Constraints and Directional Bets#
This paper by Pietro Fodra and Mauricio Labadie extends the classical Avellaneda-Stoikov market-making framework (“High-frequency trading in a limit-order book”, Quantitative Finance 2008) and the Gueant-Lehalle-Fernandez-Tapia model (“Dealing with inventory risk”, 2011) to a general class of non-martingale mid-price processes. The authors solve for optimal bid and ask quotes under both linear and exponential PNL utility functions, using stochastic control and Hamilton-Jacobi-Bellman equations. A key innovation is an inventory-risk-aversion parameter that penalises the market-maker for ending the day with non-zero inventory, giving her direct control over inventory risk and indirect control over the moments of her PNL distribution (variance, skewness, kurtosis, VaR).
Our summary: the paper’s central contribution is enabling a market-maker to place directional bets on price trends while mathematically controlling inventory risk. When the mid-price follows a mean-reverting Ornstein-Uhlenbeck process rather than a martingale, the market-maker places non-symmetric limit orders – tightening her bid and widening her ask when she expects prices to fall, and vice versa. The framework derives closed-form solutions for optimal quotes under both utility functions and provides explicit formulas for the optimal spread and indifference price as functions of the drift, volatility, mean-reversion speed, inventory risk aversion, and current inventory level. The paper also generalises to arbitrary penalty functions on terminal inventory.
The authors use simulated data with an Ornstein-Uhlenbeck mid-price process (parameters: k=100, A=1500, n=1000 limit orders per day, daily volatility 5%, mean-reversion speed a=1). 100,000 Monte Carlo simulations were run across three directional-bet scenarios (price down 2%, flat, up 2%) and three inventory-penalty levels. No real market data or code is provided; the framework is fully analytical with closed-form solutions that can be implemented by practitioners.
Key metrics: under a mean-reverting mid-price with a correct 2% directional bet, the mean-reverting strategy without inventory penalty achieves a mean PNL of 14.29 versus the martingale benchmark’s 11.04 (a 29% increase), but at the cost of enormous inventory risk (inventory std dev 418 vs 33). Adding a small inventory penalty (eta=0.0001) brings inventory std dev down to 1.54 while maintaining a mean PNL of 11.58 and improving the Sharpe ratio to 7.51 (vs 1.04 without penalty). Under the exponential utility with the same penalty, the Sharpe ratio reaches 24.65 with tight inventory control. With higher inventory penalty (eta=0.001), the linear ABM benchmark achieves Sharpe 31.06 and the exponential ABM reaches 27.47, all with inventory 90% quantile of [-3,3]. The paper demonstrates that the market-maker can increase average PNL by more than 15% versus the martingale benchmark while carrying higher risk, or sacrifice 5% of benchmark PNL to more than double her Sharpe ratio.
Mentioned by Ruuj in this discussion.
Why Hyperliquid Lags Binance: Perp DEX Lead-Lag Analysis#
Arrakis Finance ran a modified Hayashi-Yoshida lead-lag estimator across three crypto perpetual swap venues — Hyperliquid, Binance Futures USDT-M, and Lighter — covering the top 29 crypto assets by market cap over a 16-day window ending 26 February 2026. The method takes two asynchronous trade tapes, shifts one in time across a grid from −2,000 ms to +2,000 ms in 100 ms steps, and reads off the shift where the cross-correlation peaks. Fills are split into bid-side and ask-side streams to suppress bid-ask bounce noise at sub-second resolution.
The results are unambiguous: Binance led Hyperliquid for all 29 assets (median lag ~700 ms), Lighter led Hyperliquid for 27 of 29 assets, and Binance led Lighter for 23 of 29 assets (median lag ~100 ms). The three pairwise lags satisfy transitivity with a median residual of only −33 ms, confirming that the lag is structural rather than an artefact of any single pair. The article traces Hyperliquid’s ~700 ms lag to its on-chain matching architecture: every fill waits for HyperBFT consensus finality (~200 ms per block), and a maker-taker round-trip spanning two consecutive blocks adds another ~500 ms. Lighter avoids this by matching off-chain in a Sequencer and enforcing decentralisation at the settlement layer via zk-proofs to Ethereum, buying speed at the cost of relocating the trust boundary from matching to settlement. The article discusses three potential architectural changes Hyperliquid could adopt — tighter BFT pipelining, a pre-confirmation layer, and decoupling matching from consensus — each with its own trust-assumption trade-offs.
Discussed by ltrd (@ltrd_) in this thread, who cautions that the 100 ms analysis window is too coarse for HFT-grade conclusions: crypto venue latency is already sophisticated enough that 10/50/100 ms bins measure exchange clock drift more than genuine price discovery. ltrd argues that Lighter does not truly “lead” Hyperliquid in any trading sense — the apparent lead is an artefact of faster matching engine execution rather than independent information arrival — and that Binance’s leadership over Lighter on assets like ETH is masked by the coarse binning.
By Arrakis Finance (@web3_pastel).
The Contemporaneous Power of Dealer Gamma: Why Gamma Positioning Momentum Explains Same-Day Equity Returns Better Than Its GEX Level#
ALPresi Research investigates how options-dealer gamma positioning shapes intraday S&P 500 price action, drawing a sharp distinction between the level of gamma exposure (GEX) and its daily rate of change. The thesis is that what moves prices on a given day is the flow — how much hedging pressure dealers are applying right now — rather than the static stock of positioning. The study uses 15 years of daily S&P 500 returns paired with aggregate dealer gamma metrics built on Squeezemetrics’ Gamma Exposure framework, constructing the positioning level, a normalized level, and a momentum (daily-change) series.
A stationarity diagnostic is central to the argument: gamma positioning momentum is strongly stationary, while the positioning level is non-stationary, especially after 2020 — which undermines naive regressions on the level. Empirically, momentum explains roughly 17.7% of same-day return variation with a significant positive correlation, versus only ~6.6% for the level. Sorting days into momentum quintiles shows a monotonic pattern, with the strongest-positive-momentum days (Q5) averaging +0.95% and the strongest-negative (Q1) averaging −0.82%. An error-correction/cointegration analysis points to a long-run equilibrium relationship, though regime shifts around 2020 limit firm conclusions. The practical implication is that the change in dealer hedging pressure, not the absolute GEX level, is the better contemporaneous descriptor of same-day equity moves.
By ALPresi Quants, ALPresi Research.
Stop Calculating Correlations, Start Calculating Market Curvature#
Nathaniel Brodetsky argues that most quant systems “trade noise and call it a strategy” because the model is flawed from the start: taking raw prices, building a correlation matrix, and feeding it to a machine-learning model throws away the structure that actually matters. In his framing the instruments in a book are not independent scalar variables — they are linked by cross-impact, margin, and order-routing constraints, and are better described as sections of a vector bundle over a curved manifold. A correlation matrix is then only the flat, linear shadow of that curved geometry; the curvature itself is what you are really trading.
The mechanism the post describes is a pipeline from microstructure to differential geometry: the order book is turned into a dynamic graph, which in the continuum limit becomes a Riemannian manifold; order flow on that graph is run through a Hodge decomposition into three orthogonal components, of which only the co-exact part (divergence-free, loop-like flow that is “topologically protected from diffusion”) is traded. The claim is that this co-exact circulation is an arbitrage signal — a book-topology invariant rather than an indicator or a pattern — and that when a non-zero holonomy appears the system opens a position before a conventional trader even registers the “correlation breakdown” as noise. The author reports that a full cycle (snapshot of the book to signal) runs in under 1 ms on a single GPU using “pure linear algebra on the device, no ML, no lookahead.”
Editorial note: this is a provocative LinkedIn manifesto, not a peer-reviewed result, and its latency and profitability claims are unverified. The underlying idea, however, is not new — that arbitrage is the curvature (or holonomy) of a connection on a fibre bundle over the market is a genuine, decades-old research program (Ilinski’s gauge theory of arbitrage; Farinelli’s geometric arbitrage theory), and the Hodge/Helmholtz decomposition of flows on a graph is a well-established technique (HodgeRank). The glossary below links the post’s vocabulary to that literature so the terms can be read against their sources.
Key terms and literature:
Cross-impact — Trading one instrument moves the prices of other instruments; it is the off-diagonal structure of the price-impact matrix, and one of the reasons the post says instruments are not independent. See Benzaquen, Mastromatteo, Eisler & Bouchaud, Dissecting cross-impact on stock markets: an empirical analysis (2016).
Order flow — The signed stream of limit orders, market orders, and cancellations at the book; over short horizons the dominant driver of price changes via order-flow imbalance. The post applies its decomposition to this flow. See Cont, Kukanov & Stoikov, The Price Impact of Order Book Events (Journal of Financial Econometrics, 2014).
Vector bundle / section / fibre bundle — A geometric object that attaches a vector space (a “fibre”) to each point of a base space; a section selects one vector per point. Calling instruments “sections of a vector bundle” means each instrument’s state lives in a fibre that varies smoothly across the market rather than being a free-standing scalar. The financial use is developed in the gauge-theory references below; standard text: M. Nakahara, Geometry, Topology and Physics.
Riemannian manifold / curvature — A smooth space equipped with a metric (a local notion of distance and angle), whose curvature measures how far it bends away from flat Euclidean space. The post’s line “correlation is a flat approximation of a geometric curve” is the claim that a correlation matrix is the linearised, zero-curvature shadow of this geometry. Standard text: M. do Carmo, Riemannian Geometry.
Gauge connection / Yang–Mills curvature — In gauge theory a connection specifies how to parallel-transport (compare) quantities defined at different points, and its curvature — the Yang–Mills field strength — measures the path-dependence of that transport. The post computes this curvature directly. Original paper: C. N. Yang & R. Mills, Conservation of Isotopic Spin and Isotopic Gauge Invariance (Phys. Rev. 96, 191, 1954).
Gauge theory of arbitrage / holonomy — The conceptual core, and the part with a real academic lineage: parallel-transporting capital around a closed loop of trades (FX conversions, discounting) and not returning to your starting value is a non-zero holonomy, which is exactly an arbitrage profit — so arbitrage is the curvature of the market’s connection. See K. Ilinski, Physics of Finance / Gauge Theory of Arbitrage (1997), and S. Farinelli, Geometric Arbitrage Theory and Market Dynamics (2009–2021), which writes arbitrage as the curvature of a principal fibre bundle and parameterises arbitrage strategies by holonomy.
Hodge (Helmholtz–Hodge) decomposition — exact, co-exact, harmonic — Any flow defined on the edges of a graph splits orthogonally into three pieces: a gradient/exact part (a pure potential flow), a co-exact part (divergence-free rotational/curl flow — closed loops), and a small harmonic part. The post keeps only the co-exact loop component. Canonical reference for the discrete, graph version: Jiang, Lim, Yao & Ye, Statistical ranking and combinatorial Hodge theory (HodgeRank; Mathematical Programming, 2011), which builds on the graph Helmholtzian / vector Laplacian.
Topological invariant / TQFT — A quantity that does not change under continuous deformation of the underlying object; the author claims his signal is a book-topology invariant — robust to noise — rather than a fragile fitted pattern, and his profile headline references Topological Quantum Field Theory (TQFT). Foundational reference: M. Atiyah, Topological quantum field theories (Publ. Math. IHÉS 68, 1988).
By Nathaniel Brodetsky (Independent Quant Architect), posted on LinkedIn.
Are Tick, Volume and Dollar Bars Truly Information-Driven? Validating Bar Sampling on SIP Data#
Ahmed Nabil (Prometheus-IQ) empirically stress-tests the standard claim — following López de Prado — that tick, volume and dollar bars are superior to arbitrary time bars, asking whether they are truly “information-driven” on a modern US equity tape. Using a three-month SIP trade dataset, he shows the trade-size distribution is heavily left-skewed with 70.8% odd-lot prints (noisy transactions with no aggressive trading sign) alongside massive right-tail institutional block trades exceeding one million shares. Standard volume-bar sampling fails on this tape: share rank and dollar rank disagree severely across his portfolio (AAPL ranks 2nd by shares but 5th by dollars with a median print of ~$4,088; ASML ranks 5th by shares but 1st by dollars at ~$6,584 median). Tick sampling fares no better — an AAPL trade carries far less economic value than an ASML trade (median 13 shares / ~$3,859 vs 4 shares / ~$6,735), yet tick bars treat both as exactly “1 tick”, measuring pure transaction frequency on an internalized, odd-lot-heavy tape rather than economic or information flow.
Standard dollar bars get a “yes and no”: they capture transacted value well — speeding up when the tape is heavy, slowing when quiet — but blindly pool all volume and so fail to isolate asymmetric information flow. The post’s answer is the dollar-runs bar, which closes not on total transacted value but when the directional persistence of signed order flow becomes statistically surprising. Compared to standard dollar bars, three properties stand out: dynamic frequency (bars generate only when signed print expectations are exceeded, tracking shifting information density), order-flow direction (runs isolate the true asymmetry between buy and sell sequences), and event detection (runs capture structural order-book changes before a standard dollar bar breaches its threshold, visible in the theta-to-expectation ratio). The post is part of a data-driven series validating the sampling layer of an ML trading pipeline rather than taking textbook prescriptions on faith.
By Ahmed Nabil.
The Volume Clock: Insights into the High-Frequency Paradigm#
David Easley, Marcos López de Prado, and Maureen O’Hara (Journal of Portfolio Management, 2012) argue that what truly sets high-frequency trading (HFT) apart is not raw speed but a change of paradigm: strategic decisions made in a volume-clock metric — event-based time — rather than chronological (“wall clock”) time. Their claim is that even if the speed advantage disappeared, HFT would persist because it exploits the structural weaknesses of low-frequency traders (LFTs) who still think in calendar time. This is the conceptual foundation for the whole family of information-driven bars: instead of sampling the tape at fixed time intervals, you divide the session into equal-activity buckets (e.g. 20,000-share or 200,000-contract increments) and let the sampling clock run fast when the market is active and slow when it is quiet.
Our summary: this is the anchor reference for why tick, volume, and dollar bars exist, and it traces the lineage explicitly — Mandelbrot & Taylor (1967) proposed a transaction clock, Clark (1970, 1973) a volume clock, and Ané & Geman (2000) showed the trade count recovers normality (all three of which are catalogued alongside this entry). The authors spell out three statistical advantages of working in volume time: it removes most intra-session seasonality, it partially recovers Normality and the IID assumption, and it fixes the random/asynchronous-transaction problem that corrupts correlation estimates on high-frequency data. The paper then connects sampling to microstructure risk: it reviews PIN and introduces the volume-clock reasoning behind VPIN (order-flow toxicity), catalogues predatory HFT species (quote stuffers, quote danglers, liquidity squeezers, pack hunters), and uses the 6 May 2010 flash crash as the cautionary case. A memorable microstructure detail — more than 50% of E-mini S&P 500 trades are for a single contract, and size-100 trades are ~17× more frequent than size-99 or size-101 because of round-number GUI buttons — directly foreshadows the odd-lot and print-size pathologies that later empirical bar-sampling studies (e.g. the SIP-data validation post in this collection) grapple with. It closes with defensive options for LFTs: adopt volume-time sampling, monitor toxicity, and avoid predictable execution footprints.
Used data and code: a conceptual/methodological article rather than a backtest; it draws on the authors’ companion empirical work on VPIN and the E-mini S&P 500 futures for its trade-size and toxicity evidence. No code repository accompanies the paper, but the volume-clock and VPIN constructions are widely reimplemented (e.g. in open-source financial-ML libraries).
Key metrics: not a trading-performance paper, so there are no Sharpe/return figures — its contributions are the volume-clock paradigm itself, the statistical case for event-based sampling (seasonality removal, partial recovery of Normality/IID, better high-frequency correlation estimates), and the VPIN toxicity framework. JEL: D52, D53, G02.
Order Flow, Transaction Clock, and Normality of Asset Returns#
Thierry Ané and Hélyette Geman (Journal of Finance, 2000) provide the empirical and theoretical case for why sampling by trade count — the tick clock — produces better-behaved returns, which is the statistical justification underneath tick and information-driven bars. The goal is to recover normality of asset returns through a stochastic time change. Clark (1973) had addressed this by representing the price as a subordinated process with volume as a lognormal subordinator; Ané and Geman extend this in three ways: (i) general stochastic time changes are mathematically much less constraining than subordinators (they do not require independent, identically distributed increments, which is unrealistic when sampling at irregular dates); (ii) the cumulative number of trades is a better stochastic clock than volume for generating virtually perfect normality in returns; and (iii) the clock can be modelled nonparametrically, letting both the time-change and price processes take the form of jump diffusions to accommodate crashes and intense-activity periods.
Our summary: this is a foundational “business-time / transaction-clock” paper and pairs directly with The Volume Clock, which cites it as part of the Mandelbrot-Taylor → Clark → Ané-Geman lineage behind event-based sampling. The mechanism is the one every information-driven-bar user relies on: calendar-time returns are leptokurtic and skewed (fat-tailed), but once you re-index the series by an activity clock that runs fast in busy periods and slow in quiet ones, the conditional return distribution collapses toward Gaussian. Building on Jones, Kaul and Lipson (1994) — who found that it is the number of trades, not their size, that generates volatility — and Easley-O’Hara’s information-flow work, Ané and Geman argue the trade count is the economic proxy for the information clock. Any arbitrage-free return process can be written as a time-changed Brownian motion (via Monroe’s theorem), so identifying the return process reduces to identifying the time change. The honest caveat, documented by a later comment (Murphy and Izzeldin, 2006), is that the procedure recovers the first two moments well but struggles with third and higher moments of the latent information flow, and that returns conditioned on the recentred trade count are not perfectly Gaussian — so treat “virtually perfect normality” as a strong first-order result rather than an exact one.
Used data and code: tick-by-tick transaction data (from Reuters) on two Nasdaq technology stocks, Cisco Systems and Intel; the method builds empirical distributions of trades and returns with classical kernel density estimators, identifies the distribution of the time change through its moments, and reconstructs the return density in transaction time. No public code accompanies this 2000 paper.
Key metrics: not a trading-strategy paper — the result is distributional. The headline is that returns re-indexed by the cumulative number of trades are “virtually normal,” and that the trade-count clock outperforms the volume clock at recovering normality, establishing the number of trades as the economic time change linking order flow to price dynamics.
A Subordinated Stochastic Process Model with Finite Variance for Speculative Prices#
Peter K. Clark (Econometrica, 1973) is the founding paper of the “business time” / volume-clock idea in finance — the theoretical root beneath tick, volume and dollar bars, cited by both The Volume Clock and Ané-Geman. Clark takes S. Bochner’s concept of a subordinated stochastic process and proposes it as a model for speculative prices. The empirical problem he addresses is that daily price changes are leptokurtic (fat-tailed): compared with a normal distribution of the same variance, they have too many small and too many large observations. Mandelbrot (1963) had explained this non-normality with the stable-Paretian family, which has infinite variance; Clark offers a competing explanation that preserves finite variance.
Our summary: the central and enduring idea is that calendar time is the wrong clock. In Clark’s model the price process is Brownian motion (so price changes are normal) but it is evaluated not in clock time but in a random “operational” or “business” time — a directing process he links to trading volume, modelled as a lognormal subordinator. Because the amount of information/activity per calendar interval varies randomly, the observed unconditional distribution of price changes is a mixture of normals with different variances, which is exactly what produces fat tails while keeping variance finite. This is the same mechanism that later work formalises as the volume clock (Easley-López de Prado-O’Hara) and the transaction clock (Ané-Geman), and it is the reason activity-based bars produce better-behaved, more nearly-Gaussian returns than time bars. Read it as the origin of the whole event-based-sampling lineage; the modern refinements mostly argue about which activity measure (volume vs. number of trades) is the right subordinator.
Used data and code: Clark tests the lognormal-normal subordinated distribution against members of the stable family on cotton futures price data, using discrete Bayes’ tests and Kolmogorov-Smirnov goodness-of-fit tests. A 1973 theoretical/econometric paper with no accompanying code.
Key metrics: not a trading-strategy paper — the result is distributional. The headline finding is that finite-variance distributions subordinate to the normal fit the cotton-futures price data better than the infinite-variance stable family, establishing subordination (a volume-directed time change) as a viable, finite-variance account of fat-tailed returns. Econometrica, Vol. 41, No. 1 (January 1973), pp. 135-155.
Predictive Order Flow Imbalance: Cross-Asset Microstructure Alpha#
Kethan S E tests whether Order Flow Imbalance (OFI), constructed from Level-1 NBBO quote data, forecasts intraday returns across twelve U.S. equities, ETFs, and index futures. The study uses 6,991,908 ten-second bars from 249 trading days between 29 April 2024 and 25 April 2025, and evaluates Ridge-regression signals in 84 walk-forward test folds. A two-state Hidden Markov Model separates calm and stressed market regimes, while the research also tests a depth-aware OFI measure using a 40-day NVDA Nasdaq ITCH market-by-order sample.
Our summary: the paper makes the useful distinction between a statistically detectable microstructure effect and a tradeable one. OFI has small but positive forward predictive content, with the strongest cross-asset result at the ten-minute horizon, but the short-horizon edge is overwhelmed by realistic spread-crossing costs. The paper therefore frames longer holding periods, regime filtering, and passive execution as the levers that could turn research alpha into economic alpha, while treating the Level-2 comparison and HMM improvements as exploratory.
Used data and code: the Level-1 data come from Massive.com (Polygon.io) and the depth comparison uses Databento XNAS ITCH Market-By-Order data for NVDA. Neither the raw commercial datasets nor a public code repository accompanies the paper; reproducing the results requires licensed data and reimplementation of the documented feature, walk-forward validation, HMM, and transaction-cost pipelines.
Key metrics: pooled out-of-sample IC is +0.0044 (t = 3.26, p = 0.0016), while the final March–April 2025 holdout has IC +0.0022, gross Sharpe 2.491, and net Sharpe +0.246. The equal-weight cross-asset portfolio’s gross Sharpe of +0.981 becomes -1.726 after costs; at ten-second execution, estimated costs are 819 bp per day, 164 times the roughly 5 bp gross edge. In the SPY $1m holding-period sweep, the net Sharpe is -45.5 at ten seconds but +0.114 at 30 minutes, the stated minimum viable holding period; NVDA is the sole instrument with positive mean net Sharpe across all folds (+0.140).
Kethan S shared this working paper in this LinkedIn discussion.
By Kethan S E.
HFT Arbitrage in Commodities#
Brett Harrison’s practitioner explainer on how high-frequency trading firms arbitrage commodity futures, split into two structurally different regimes. Intra-exchange arbitrage is fully hedged, enjoys favorable margin, and is won on sub-microsecond latency; inter-exchange arbitrage is relative-value rather than true arbitrage, latency-sensitive, capital-intensive, and held until the spread mean-reverts. The piece is a compact tour of why a single commodity is really a whole complex of instruments and how that structure creates the opportunity set.
For intra-exchange, a product spans outright futures across 20-plus expirations, micro contracts with smaller multipliers on the same underlying, calendar spreads between outrights, and related intercommodity spreads. The exchange matching engine lists order books for all of them while creating implied liquidity in both directions — implying spreads from outrights and outrights from spreads — so the permutations of contracts and spreads present many simultaneous arbitrage opportunities, with low margin thanks to the clearing house’s netting of offsets. Competing here requires sub-microsecond tick-to-trade latency, FPGAs across the entire stack, logic that fires orders before all bytes of a tick are even processed, and predictive models of known microstructure idiosyncrasies. Inter-exchange is different in kind: a futures contract is specific to its exchange (DCM) and clearing house (DCO) and is not fungible across venues the way an equity is (equities all clear at NSCC and are held at DTC), so an oil contract on two exchanges carries incompatible clearing and delivery. The edge is statistical/relative-value, requires paying for the fastest data path between venues (microwave, millimeter-wave, or subsea fiber), and is less crowded because holding the spread to mean reversion ties up considerable capital. Harrison closes with the economic point: the HFT profit is compensation for keeping futures curves and related spreads internally consistent, which is what lets commercial hedgers forecast storage, financing, and convenience costs across expirations far into the future.
Posted by Brett Harrison (@BrettHarrison) in this discussion.
By Brett Harrison.
Per-Level Toxicity Avoidance Learned from a Market Maker’s Public Hyperliquid Wallet#
Takopi (@OctopusTakopi) reports live-testing a new market-making model on the Binance SOL perpetual, attaching a five-minute screen recording of the run. Two claims make the post worth more than the usual “my bot is printing” genre. First, the author says they did not write a single line of the code — an AI coding agent produced all of it, primed with a large corpus of their own earlier market-making code. Second, and more substantively, the component the author singles out as working “insanely well” is per-level toxicity avoidance, and the model behind it was learned from the publicly visible Hyperliquid wallet of Wintermute, one of the largest professional crypto market makers.
What toxic flow is. A resting limit order is a free option written to the rest of the market: whoever crosses the spread chooses when to exercise it. Some of that flow is benign — liquidations, hedges, index rebalances, impatient retail — and paying it the spread is profitable because the mid does not systematically move after the fill. The rest is toxic: the taker knows something, or is simply faster, so the mid keeps travelling in the direction of their trade and the maker is marked to a loss within milliseconds. The standard measurement is the markout: value the fill against the mid some interval later (in time or in traded volume) and sign it by side. Positive markout means the fill was benign, negative means the maker was adversely selected. Aggregated versions of the same idea are the classical microstructure metrics — Glosten-Milgrom adverse-selection spread components, Kyle’s lambda, PIN, and VPIN (see Order Flow for the VPIN literature). The operationally important fact is that toxicity is not spread evenly across fills: a small minority of fills carries most of the loss, so the binding question for a market maker is not “what is fair value” but “conditional on this quote being hit right now, what is my expected markout” — with widening, skewing, thinning, or pulling as the available responses. The paper The Market Maker’s Dilemma catalogued in this same file is the canonical demonstration: a naive always-at-the-touch quoter on Binance BTC perps lost nearly 60% in three days, and the repair was precisely a classifier for post-fill reversals.
What “per-level” adds. Quoting is not one decision but a decision per price level and per size, and each level has both a different fill probability and a different conditional markout. The touch fills most often and is the most toxic, because it is the first thing a sweep consumes and the only thing a latency-advantaged taker bothers with. Deeper levels fill only when someone is willing to walk the book, which is itself an informative event — sweeps cluster around news and forced flow — but they also come with more spread compensation, so their net markout can be better or worse than the touch depending on the state. The object to be learned is therefore a surface rather than a scalar: expected markout and fill probability as a joint function of distance from mid (in ticks or basis points), queue position, size, book imbalance, the recent signed-trade signature, funding, volatility regime, and cross-venue lead-lag. “Per-level toxicity avoidance” means the quoting policy declines to post at the specific levels whose expected markout is negative in the current state — pulling the touch while leaving depth, or making the ladder deliberately asymmetric — instead of applying one global spread multiplier to everything.
Why a market maker’s public account is the unlock. Toxicity modelling is fundamentally a labelling problem, and toxicity labels are per-fill, which means they belong to accounts. On a centralised venue you get the anonymised public tape: price, size, timestamp, aggressor side. From that you can build a proxy by pretending you were the passive side of every public trade and computing markouts — this is what most outside-the-firm research does — but you cannot condition on any actual maker’s decisions, cannot observe the resting orders that were not filled, cannot see inventory or hedges, and cannot distinguish a hypothetical maker from a professional one. Hyperliquid removes that wall because the order book lives on a public chain. Orders, cancels, fills, positions, margin state, and funding payments are all queryable per address through the info API (l2Book snapshots, userFills / userFillsByTime, clearinghouseState, plus the archived node data), and the wallets of large participants are labelled by explorers such as HypurrScan and Arkham. A labelled market-maker wallet is thus a complete, timestamped, fill-level record of a professional’s behaviour on a venue where the matching order book is available for the same interval.
That yields three distinct and complementary training signals. The first is supervised labels: for every one of the market maker’s fills you know side, size, price, the distance from mid at the moment of execution, and — by joining to the book and trade history — the entire subsequent mid path, so you can construct a genuine (state, level, fill) → markout dataset from a counterparty who really was being adversely selected, rather than from an assumption about who was passive. The second is revealed policy: where a top-tier maker chooses to quote, at what depth and size, and above all when it pulls or skews, is the output of a toxicity model that firm has spent years and considerable money building. Fitting a policy to those observed actions is behavioural cloning — a distillation shortcut that lets you inherit the toxicity surface instead of rediscovering it — and unlike fills, quote placements and cancellations are observed continuously, which makes this by far the higher-frequency signal of the two. The third is absence as a label: the moments when the maker is missing from a level, or quoting only one side, are exactly the states its own model has flagged as dangerous. Anonymised CEX data contains no equivalent of that observation.
Hyperliquid’s transparency also runs the other way, which the post does not mention but which is the natural extension. Because every aggressor is an address with a full history, taker flow can be scored directly: rank wallets by the markout they inflict on whoever was passive, then regress that identity-derived toxicity label onto flow-signature features — trade-size distribution, inter-arrival timing, order type, whether the taker consistently arrives within milliseconds of an oracle or CEX move. The identities themselves do not transfer to another venue, but the features do, which is how an address-labelled dataset becomes a toxicity classifier usable where you are blind.
The transfer step, and its cracks. The poster is running on Binance SOL perpetuals, not on Hyperliquid, so the architecture is: train where the labels exist, infer where they do not. That is a legitimate and clever pattern, but it only holds if the learned features are venue-agnostic (book shape, trade signature, cross-venue lead-lag, volatility and funding state) rather than address-based, and several failure modes deserve naming. A cloned policy is optimal for a different game: the maker’s Hyperliquid behaviour is tuned to Hyperliquid’s fee schedule, tick and lot structure, queue and cancel semantics, latency profile, and — most importantly — Hyperliquid’s own flow composition, which is more leverage- and sniper-driven than Binance’s. Worse, the visible leg is only one leg: a cross-venue market maker prices Hyperliquid quotes off a consolidated view and hedges elsewhere, so marking its on-chain fills to Hyperliquid’s own mid can systematically mismeasure the economics, and imitating one leg of a multi-venue book as though it were a standalone strategy is the classic error in this style of analysis. Attribution is unverifiable too — nothing guarantees a labelled wallet runs a single strategy, and sub-accounts, delta hedges, inventory unwinds, and OTC-related flow all land in the same fill stream. Finally, toxicity is adversarial and non-stationary by construction, since the profitable side of it consists of traders actively hunting makers; a policy fit to last quarter’s snipers decays, and because the underlying data is public, any edge extractable this way is being extracted by many people simultaneously.
Treat the evidence accordingly. A five-minute screen recording of a live run establishes that the system exists and was running, not that it is profitable: there are no markout distributions, no fill counts, no per-level realised adverse selection, no inventory or funding costs, and no cost-aware net Sharpe over a sample long enough to contain a regime change. The genuinely transferable idea in the post is not the “agi is here” framing but the data-engineering insight — that an on-chain order book turns a professional market maker’s adverse-selection experience into a labelled training set, and that the hard parts of exploiting it are joining fills to book snapshots, aligning clocks across venues, and designing the markout horizon, all of which are exactly the parts an existing personal codebase would already encode when handed to a coding agent.
Posted by Takopi (@OctopusTakopi) in this discussion, where the author says the AI-written model’s per-level toxicity avoidance — learned from Wintermute’s Hyperliquid wallet — “works insanely well”.
By Takopi (@OctopusTakopi).
Models for the Impact of All Order Book Events#
Zoltán Eisler, Jean-Philippe Bouchaud, and Julien Kockelkoren (Capital Fund Management) propose a general framework to describe the impact of different events in the order book, generalising previous work that focused on the impact of market orders alone. Two different modelling routes can be considered, which are equivalent when only market orders are taken into account. One model posits that each event type has a temporary impact (TIM). The “history dependent impact” model (HDIM), on the other hand, assumes that only price-changing events have a direct impact, itself modulated by the past history of all events through an “influence matrix” that measures how much, on average, an event of a given type affects the immediate impact of a price-changing event of the same sign in the future. The authors find in particular that aggressive market orders tend to reduce the impact of further aggressive market orders of the same sign, and increase the impact of aggressive market orders of the opposite sign. They discuss the relative merits of TIM and HDIM, in particular concerning their ability to reproduce the price diffusion pattern, and find that in spite of theoretical inconsistencies TIM appears to fare better than HDIM against empirical data — a paradox ascribed to an uncontrolled approximation used to calibrate HDIMs.
The starting point is the classical propagator model of market-order impact, in which the mid-price is a linear superposition of the decaying impact \(G(\ell)\) of all past signed trades. Because trade signs are long-range autocorrelated, \(G\) must decay as a power law for prices to remain diffusive; this decay is really an effective description of the “liquidity refill” by limit orders that trades trigger. The paper shows that a non-fluctuating \(G(\ell)\) calibrated on the response function accounts for only about two thirds of the long-term price variance on small-tick stocks, so limit orders, cancellations and impact fluctuations must be modelled explicitly. Six event types are defined at the best quotes — market orders, limit orders and cancellations, each subdivided into price-changing (primed) and non-price-changing (zero) variants — and every event is given a sign according to its expected long-term effect on the price. The TIM assigns a bare propagator \(G_\pi(\ell)\) to each type and is calibrated by inverting the 6 response functions and 36 signed event-event correlation functions. The HDIM instead writes the return at a price-changing event as the sign times a “gap” (half the distance to the second-best quote), and models that gap as a constant plus a linear regression on the past signed order flow via a lag-dependent \(6 \times 3\) influence matrix \(\kappa_{\pi,\pi'}\). The two models coincide only under a restrictive structure of \(\kappa\), and the TIM is strictly inconsistent because it assigns non-zero immediate impact to non-price-changing events; the HDIM is the better-founded description, viewing price dynamics as three intertwined processes — instantaneous jumps from events, events inducing further events, and events exerting pressure on the gaps behind the best quotes. The empirical influence matrix reveals that all price-changing events “harden” the book (subsequent same-side gaps shrink) while small non-aggressive market orders surprisingly “soften” it, and this history-dependent asymmetric liquidity is identified as the dominant mechanism that prevents the persistent trends that long-range sign correlations would otherwise produce.
The data set consists of 14 randomly selected liquid NASDAQ stocks over 53 trading days from 3 March to 19 May 2008, with the first 30 and last 40 minutes of each session excluded; the authors note the results were also verified on CME futures, US Treasury bonds and London Stock Exchange stocks. Stocks are split into large-tick names (spread almost always one tick; price-changing events only about 3% of all events) and small-tick names (spreads of several ticks; up to 40% of events change the price). No code is provided and the underlying order book data is proprietary, but the calibration equations are given explicitly, along with the closed-form expressions for the lag-dependent diffusion \(D(\ell)\) under both models in an appendix, so the method is reproducible on any full-depth order book feed.
This is a theoretical and empirical microstructure paper, not a trading strategy, so there are no return, Sharpe or drawdown figures. The key quantitative results concern how well each model reproduces the observed price diffusion curve \(D(\ell)/\ell\) on small-tick stocks. The TIM, when calibrated on returns rather than on response functions directly, matches the empirical diffusion surprisingly well at long lags while underestimating it at short lags where high-frequency noise dominates; the constant-gap approximation (no gap dynamics) overestimates volatility, showing that gap adaptation to order flow reduces price volatility. The naively calibrated HDIM overestimates \(D(\ell)\) by roughly 15% at large lags; multiplying all calibrated \(\kappa\) kernels by a factor of three greatly improves the fit to both the response functions and the diffusion curve, and a constant high-frequency contribution of about 0.04 ticks squared is needed at small lags. On large-tick stocks the gap fluctuation terms are around two orders of magnitude smaller, so the constant-gap HDIM alone reproduces both the response functions and the diffusion with very good agreement, while the TIM is numerically unstable there because small errors in \(G_\pi\) are amplified in the variance.
Intraday Market Making on Cointegrated Equity Pairs with Avellaneda-Stoikov and Kalman Filter#
A hands-on walkthrough of building an intraday market-making system that applies the Avellaneda-Stoikov optimal quoting framework to cointegrated equity pairs (WFC/AXP), with dynamic hedge ratio estimation via Kalman Filter on 619K minute bars. The pipeline covers pair selection via cointegration testing across S&P 100 constituents, Kalman Filter with EM calibration for hedge ratios, Avellaneda-Stoikov optimal quoting with fee floors, and out-of-sample validation with phantom fill prevention.
The author emphasises the gap between mathematical elegance and market reality — the first version produced a Sharpe of -11 before six structural bugs were identified and fixed. Out-of-sample results (2024–2026, net of costs) show a Sharpe Ratio of 1.21, net PnL of +$4,870 on $100K notional (peak capital deployed ~$36K, yielding 13.56% over 27 months or ~5.9% annualised), and a maximum drawdown of -2.49% with the model active on 100% of bars. Full source code is available on GitHub.
By Duarte Abraços.
Fat Tails in Crypto Markets and Implications for Market Making#
A concise analysis of why standard Gaussian assumptions fail in crypto market microstructure and what this means for market making strategies. Standard financial literature models order arrivals as Poisson, uses Geometric Brownian motion for optimal control, and assumes normally distributed returns — but crypto markets, especially at high frequency, exhibit kurtosis an order of magnitude above Gaussian assumptions.
The post explains how fat-tailed distributions interact with crypto-specific dynamics: in markets with points or liquidity incentives where daily volume runs 10–20x open interest, prices behave like an Ornstein–Uhlenbeck process, which is part of why medium-frequency mean reversion works in perpetual futures. For market makers, fill sizes are extremely fat-tailed with larger fills carrying negative 5-second markouts, meaning naive linear-cost models produce equity curves that only go down. The practical takeaway: market making requires a convex payoff structure with respect to risk — a super-linear premium for taking it on and a sub-linear cost for exiting — along with contrarian treatment of signals like order imbalance by estimating reversal probabilities.
By Alcibiades.
Attack of the MM (1): Market Maker Inventory-Based Quoting Systems#
A crypto market microstructure explainer on why prices often move against retail traders immediately after they buy or sell illiquid altcoins. The core argument is that this behavior is usually not “whale manipulation” but a natural consequence of inventory-based quoting: when aggressive retail flow pushes a market maker off balance, the maker adjusts quotes to reduce inventory risk and adverse selection exposure.
The post walks through the main mechanics using the Avellaneda-Stoikov framework: quote skewing to attract offsetting flow, spread widening when inventory imbalance worsens, and reservation-price shifts as inventory changes. It also emphasizes why retail traders are especially vulnerable in small-cap markets, where thin liquidity and concentrated market orders make them the dominant source of toxic flow. A practical takeaway is to split entries into smaller increments so you work with the market maker’s quoting adjustments instead of paying the full adverse-move cost in one trade.
By Dave.0xU.
Time to talk about pricing in HFT#
A practitioner note on estimating fair value for high-frequency trading rather than taking mid-price or micro-price at face value. Matthias warns that these prices can be noisy or manipulated, particularly on weekends and in illiquid markets. He recommends waiting for confirmation before reacting to price moves, anchoring estimates to the deeper side of the order book, and keeping estimates closer to the mid when spreads are tight. These are qualitative heuristics, not a specified filter or an empirically validated trading strategy.
The post discusses Kalman filtering for combining a fast but noisy price source with a slower, more reliable one, while warning against using it for lead-lag arbitrage or tight quoting. It points readers to Algorithmic Trading: Winning Strategies and Their Rationale and stresses aligning observations by their origin timestamps, with a rewind-correct-replay approach to updating past estimates. It also highlights futures-contract rolls and market-specific oracle rules as places to investigate pricing discrepancies.
Mentioned by matthias (@0xevolve) in this discussion, which cites Ari’s commodity-perpetual discussion as a historical futures-roll pricing example rather than a claim of a currently available edge.
Calibration of Passive Market Impact with a Queue-Sensitive Propagator Model#
The paper calibrates passive market impact, the price response to liquidity-providing limit orders, in a model combining Hawkes market-order flow with queue-reactive limit orders and cancellations. The price splits into a universal propagator term and a correction for how price sensitivity depends on volume at the best quotes, giving a regression on two observable signals. On E-mini S&P 500 futures the queue term adds explanatory power beyond the propagator, and thicker queues attenuate trade impact.
Passive orders have no signed price term here: they change the queue that later market orders meet. The headline regressions use an unrestricted two-factor dictionary (decay rates 0.003 and 0.1 per second) in place of the fitted Hawkes kernel, so the coefficients are projection coefficients.
The main proxy is the weighted mid-price, (A qb + B qa) / (qa + qb), where A and B are the best ask and bid and qa and qb the best queues, and the queue signal uses the same best-queue state. Section 4.1 concedes that part of the estimated state dependence is “necessarily mechanical”: even with fixed quotes, a buy moves the proxy further when the ask is thinner. On the plain mid-price kappa1 keeps its sign and magnitude (t from -5.9 to -11.4 for 30 to 300 s). Section 4.1 promises this proxy equal prominence in Section 4.4, yet no R-squared on it appears there, and a decomposition subtracting the mechanical increment is “not reported”. Our inference: the weighted mid stays between the quotes, so its mechanical offset from the mid is capped at half the spread and should matter less at horizons of minutes.
The regressors are increments over the same interval as the price change, so they include trades occurring during it. “Out-of-sample” means coefficients fitted on the previous 16 days and applied to the next day’s realized flow (our reading of equations 15 and 18). The R-squared thus describes how much of a move is explained once that flow is known. The paper runs no trading rule and reports no costs.
Passive impact is simulated, with no fill model and no feedback from posted liquidity to market-order arrivals. The authors call the queue mean-reversion rate the dominant uncertainty.
Data and code. CME order-book messages for E-mini S&P 500 futures in 2025 plus the first days of January 2026: 263 regular trading days, 193 used for testing, front-month contract, 10:00 to 16:00. Comparisons cover NQ, RTY and YM over 2023-2025, ES in 2023 and 2024, and four Treasury futures in 2025. The paper links no code repository or dataset, so results cannot be reproduced from it alone, and its “pair” specification is undefined in the text.
Key metrics. The paper reports regression coefficients, mean daily R-squared and simulated impact. It reports no annualized return, Sharpe ratio, drawdown or win rate.
Queue slope kappa1: -8.1 x 10^-6 index points per AES volume unit per AES queue unit (s.e. 1.7 x 10^-6), ES 2025, weighted mid, 212 s. Section 4.1 and Figure 4 give 116 s for ES 2025 instead.
Propagator only: in-sample R-squared 0.482, out-of-sample 0.422. Affine model: in-sample 0.500, out-of-sample 0.437 (Table 1, 193 test days).
Affine out-of-sample gain over the propagator by horizon: +0.021 at 30 s, +0.018 at 60 s, +0.015 at 212 s, +0.012 at 300 s (Table 6).
With 3 sigma forecast truncation, out-of-sample R-squared on ES 2025: propagator 0.458, affine 0.469, log 0.473, 105-parameter full-dictionary ridge 0.603 (0.597 without truncation).
Full-dictionary out-of-sample lift over the propagator: 0.06 to 0.19 across twelve equity-index cells over 2023-2025 (Newey West t 7 to 13, gains on 85 to 95% of test days), and 0.06 to 0.09 in four 2025 Treasury futures (t 7 to 12).
Control for the anticipation term: kappa1 unchanged at -8.1 x 10^-6, out-of-sample R-squared 0.437 to 0.438.
Slope stability: negative in every twenty-session rolling window. First-half mean -1.8 x 10^-5 (t = -5.8), second-half mean -9.5 x 10^-6 (t = -7.1), difference significant (t = -2.6).
Simulated peak for 100 AES posted over 50 s: 1.5 x 10^-2 index points, about 6 percent of a tick. It falls to 1.0 x 10^-2 with a mean-reversion rate of 1.6 per second and 3.0 x 10^-4 with 77 per second.
Peak impact scales with posted volume: log-log slope 0.98 for V of 10 AES or more (s.e. 0.004). Aggressive execution is 22 times larger at V = 50 AES over 50 s (Figure 8).
Mentioned by Quant Beckman in this discussion, who says the main price proxy depends on the explanatory variables and that a high R-squared is different from a tradeable signal; the authors concede the first point in Section 4.1 and report no trading results.
By Yadh Hafsi, Fabrizio Lillo and Grégoire Szymanski.
Understanding the Inner Workings of a State-Space Foundation Model for Limit Order Books#
This paper, accepted at ICAIF ‘26, asks what autoregressive foundation models of the limit order book learn about market microstructure. The authors train an 8.2M-parameter Mamba-3 state-space model on the tokenised message stream of eight large-cap US equities, never showing it the book, then probe and steer its internal state. The recurrent state holds a representation of the market: order-flow imbalance (OFI) decodes at R-squared of about 0.59, the representation extends to unseen stocks, and pushing the state shifts next-message beliefs monotonically in dose, which they call consistent with the emergence of a world model.
The 0.59 decodes realised OFI over the 500 messages the model has just read, so it tracks current flow; forecasting is tested separately. Because the Mamba-3 recurrence has an exact attention form, the state can be attributed message by message: across all layers the newest message accounts for 58% of write magnitude, yet it supplies 7% of the decoded OFI signal, half of which takes the last 56 messages. At layer 3, four of eight heads have half-lives of 28-66 messages, and the random-weights twin has none above 10.
The forward tests are weak: a readout of the frozen state is level with the L10 book snapshot on the mid-price move, adds a small signal on future OFI, and shows no signal beyond about 100 messages. The high-frequency trading use in the conclusion is stated as potential and is not tested.
A probe shows only that a quantity is in the state; steering tests whether the model uses it. Replayed through the matching engine, steered beliefs only partly materialise: the volume push carries through, the flow push shifts order flow on the sell side only while the mid stays within the null band, and the volatility push does not carry through. Our reading is that “causally steerable” describes the model’s own beliefs, and the paper makes no claim of causal accuracy about real markets.
Data and code. Training uses LOBSTER-format message streams, with the book removed, for GOOG, AAPL, NVDA, AMZN, META, TSLA, MSFT and AMD over 2022-01 to 2025-12, in 500-message windows. Probing tests GOOG over January 2026, held out during training, with N = 2,014 windows spanning 20 trading days; generalisation tests add the other seven tickers plus JPM and ORCL, never seen in training. The paper links no code repository, so results cannot be reproduced from its published materials.
Key metrics. The paper reports decoding R-squared, attribution shares, belief shifts and directional accuracy, with no annualised return, Sharpe ratio, drawdown, win rate or trading simulation. R-squared values are held-out on January 2026 under day-grouped cross-validation unless marked forward-chaining; horizon H is in messages.
OFI level 1, window of 500 messages (layer 3, GOOG): R-squared 0.59, forward-chaining 0.53, random-weights twin 0.01, boundary book snapshot 0.12.
Traded volume: 0.50 (forward-chaining 0.44, twin 0.03, book 0.11). Realised volatility: 0.51 (forward-chaining 0.50, twin 0.15, book 0.23). OFI, volume and volatility all decode at 0.06 or less from the residual stream.
Touch: 0.83 in the state against 0.26 in the residual stream and 0.43 for the twin. Log L10 depth: 0.38 against 0.64 for the stale window-start snapshot.
Forward regression: 4% of next-25-message mid-move variance against book R-squared of 0.036 at H=25; at most 5% of future top-5 OFI against book R-squared of 0.013 or less; twin at or below zero at every horizon.
Binary up-versus-down accuracy on windows where the mid moved: 61.2% at H=25 and 60.0% at H=50, against 61.8% and 60.9% for the book readout, 50.5% for the majority baseline and 50-51% for the twin. It fades to 57.8% at H=100 and 53.0% at H=200, and reaches chance by H=500.
Three-class macro-F1 at H=10, 25 and 50: 0.33, 0.36 and 0.42 for the state, 0.28, 0.27 and 0.38 for the book, 0.28, 0.23 and 0.37 for the twin. From H=200 the book matches or exceeds the state.
Steering across the seen dose range: next-message buy probability 0.42 to 0.61; execution probability 0.002 to 0.090, about 1.4 times per unit dose; a turbulence push widens the next-price forecast nine-fold.
Engine replay over 50 generated messages: median executed volume is 25 shares at dose 0, 187 at +2.4 and 1 at -2.1.
Cross-stock raw OFI level 1: 0.26 to 0.60 on all stocks but META and MSFT, near zero on those two, which the paper links to extreme bursts the linear readout misses, against book at or below 0.14 and twin at or below 0.04. Winsorised or rank R-squared reaches at least 0.4 for level 1 and 0.5 for top-5 on in-training stocks and on JPM and ORCL.
Mentioned by Quant Beckman in this discussion, who says that learning a representation of market microstructure is not equivalent to learning a predictive, economically useful or causally accurate model of financial markets; the paper’s results fit that caution, since it finds little forward information beyond the visible book and runs no economic test.
By Valentin Mohl, Alexandre Bismuth, Aramis Marti-Shahandeh, George Nigmatulin, Kang Li, Stefan Zohren, Jakob Foerster, Mihai Cucuringu and Anisoara Calinescu.
Adversarial Attacks on Machine Learning Systems for High-Frequency Trading#
A 2021 talk by Micah Goldblum and Avi Schwarzschild (University of Maryland) on a paper with Ankit Patel and Tom Goldstein. It asks whether an attacker can fool a machine-learning price predictor by placing orders that change the order book it reads, and what that implies for the definition of spoofing.
Exchanges publish a constant stream of orders, and traders use that stream to inform their own decisions. High-frequency systems act on timescales humans cannot check, and the talk questions whether spoofing, which is prohibited by the Dodd-Frank Act, can be defined by intent when most agents are automated. The valuation model takes a sequence of limit order book snapshots, ten price levels each side so that a snapshot has 40 entries, and predicts the future price movement. The attacker’s perturbations are orders. It solves a maximisation of the model’s loss over the orders it places, which needs a differentiable trading simulation that propagates the added orders through the book. The authors compare this to the panda-to-gibbon image attack and note domain constraints such as integer-valued orders. Optimised attacks are smaller, cheaper and harder to detect than hand-crafted spoofs.
The first demonstration uses knowledge of the future and of the victim model’s parameters, and the model is fooled into predicting an upward move. The transfer attack asks what an attacker can do without the future or the model, and uses universal adversarial perturbations, which can be applied at any time during trading and are not propagated through the book.
Data and code. The slides do not name the order book dataset and no code is linked. The related paper is cited on the second slide.
Key metrics. None. The slides show perturbed order book heatmaps, not success rates or trading losses.
By Micah Goldblum, Avi Schwarzschild, Ankit Patel, Tom Goldstein.
How Robust are Limit Order Book Representations under Data Perturbation?#
A talk at the ICML 2021 Workshop on Representation Learning for Finance and e-Commerce Applications from J.P. Morgan AI Research. It argues that the representations commonly used for limit order book (LOB) data make deep price-forecasting models fragile.
A standard LOB input keeps ten price levels on each side. The authors perturb it by inserting small orders, with a volume of one each, that push existing levels out of the visible window, so the ten-level view shows a much narrower slice of the market. Ten such orders of volume one move the representation by a Euclidean distance of 344.623. The effect is measured on the FI-2010 benchmark with a history of 10 snapshots as input, for a price-movement task with three classes (up, stationary, down). Four models are compared: logistic regression, a multilayer perceptron, an LSTM and DeepLOB, which combines convolutional layers with an LSTM. They are trained on the same data and tested with and without perturbation on the ask side, the bid side or both.
More complex models perform better in normal conditions but lose more under perturbation, so performance and fragility rise together. The authors conclude that current deep models for LOB tasks are not reliable because the data representation is not robust, and set out four desiderata for representations: smoothness, efficiency, stochasticity and validity.
Data and code. FI-2010, the public limit order book benchmark. No code is linked.
Key metrics. F-score without perturbation against both-sides perturbation, in percent: MLP 55.6 to 39.3 (a fall of 16.3 points), LSTM 68.2 to 54.8 (13.4) and DeepLOB 75.1 to 22.2 (52.9). Accuracy for DeepLOB falls from 77.2 to 47.5. The logistic regression is much less affected. No trading returns are reported.
By Yufei Wu, Mahmoud Mahfouz, Daniele Magazzeni, Manuela Veloso.
A Parametric Contextual Online Learning Theory of Brokerage#
An ICML 2025 talk by François Bachoc, Tom Cesari and Roberto Colomboni on a theoretical problem in market microstructure. A broker sits between two traders who each hold a secret valuation of an asset they want to trade. At every step the broker sees contextual data about the asset and market conditions and proposes a price. The traders then reveal only whether they accept it. A trade happens when the price falls between the two valuations, and the broker’s reward is the gain from trade, the difference between the buyer’s and the seller’s valuation, if the trade happens and zero otherwise. The broker’s goal is to learn from this feedback and to keep regret low against the best price it could have chosen.
The slides walk through the setup with a two-character example, a seller valuing at $0.2 and a buyer at $0.7, whose deal at $0.6 shows the gain split. The results table gives regret rates by feedback type. With two-bit feedback (only the acceptance of each trader) under a bounded-density assumption the regret scales as the square root of L d T, where T is the horizon and L and d are the problem’s parameters. With full feedback (valuations revealed) the rate falls to L d log T. In the general case, without the bounded-density assumption, the table gives T for both feedback types, that is, linear regret.
This is a theory result in a stylised model with no market data, backtest or code. It matters for trading mainly as a bound on how fast a market maker or broker can learn good prices from accept-or-reject feedback.
Key metrics. Regret bounds only: the square root of L d T for two-bit feedback and L d log T for full feedback under bounded density, and linear in T in the general case.
By François Bachoc, Tom Cesari, Roberto Colomboni.
LOB-Bench: Benchmarking Generative AI for Finance - an Application to Limit Order Book Data#
An ICML 2025 talk on LOB-Bench, a benchmark for generative models of limit order book (LOB) data, by authors from the University of Oxford and J.P. Morgan AI Research. LOB data is high-dimensional, has causal structure and long-range dependencies, so generated message streams need their own evaluation paradigm.
The contributions are a distributional evaluation of generative LOB models using interpretable scoring functions, a model-agnostic framework, a quantification of error divergence during sampling and a framework that transfers to other data with similar characteristics (financial transactions, payment data, forex offers, crypto). Each scoring function projects the data to one dimension, such as spread, ask volume, order imbalance, inter-arrival time or cancellation levels, and the benchmark compares the distribution of real data against generated data with L1 and Wasserstein distances. It evaluates unconditional distributions, conditional distributions (for example ask volume given the spread), and how the divergence grows with the prediction horizon over generated messages. It also compares impact response functions, the price impact of market orders, limit orders and cancellations over event lags, against the real data.
The talk benchmarks autoregressive token-based models (LOB S5, RWKV4, RWKV6), a conditional GAN from Coletta et al. and a parametric statistical baseline, on GOOG and INTC. LOB S5 dominates on all aggregate metrics for both stocks. The conclusion quotes Goodhart’s law as a warning that a measure that becomes a target stops being a good one, and says LLM-style autoregressive models appear promising for LOB data while long sequence generation and error accumulation remain open.
Data and code. Real LOB data for the tickers GOOG and INTC, with the source not named on the slides. No code link is shown.
Key metrics. The talk reports distribution-distance scores (L1 and Wasserstein) and impact response curves in figures rather than trading metrics, so there are no returns or Sharpe ratios.
By Peer Nagy, Sascha Frey, Kang Li, Bidipta Sarkar, Svitlana Vyetrenko, Stefan Zohren, Anisoara Calinescu, Jakob Foerster.
Funding Rate Effectiveness and Price Discovery in Binance Gold Perpetuals (XAU and PAXG)#
A Simplified Chinese working paper by 0xJude (@Jude_Ma_rs), shared as five page screenshots on X and translated here. The pages carry no title, so the one used here is descriptive. Perpetual futures have no expiry or delivery, and in theory rely on periodic funding payments to keep the contract converging to spot. The paper tests that claim with one-minute data for the first three quarters of 2026 on Binance’s two gold perpetuals: the XAU perpetual, which tracks traditional FX spot gold (XAU/USD) that closes daily and over weekends, and the PAXG perpetual, which tracks the Paxos gold token trading 24/7. Its four headline findings are that funding has a dead band, basis convergence is linear mean reversion with a 2.6–3.0 hour half-life, spot rather than the perpetual does most of the adjusting, and the funding mechanism fails in three identifiable situations, while the perpetual keeps discovering prices when the spot market is closed.
Our summary: the author first rebuilds Binance’s funding formula, F = (P̄ + clamp(I − P̄, −0.05%, +0.05%)) / (8/N), where P̄ is the time-weighted premium index and I the interest term. When the premium is within ±0.05% (10 bp) of I, the clamp cancels P̄ and funding is a fixed interest payment that does not respond to the premium at all. By inferring the exchange’s unannounced parameter changes (the XAU interest term cut from 1 bp to 0 on 2026-01-23, a temporary switch to an 8-hour period and tighter caps on 2026-01-30) the author reproduces all 1,636 funding settlements. The paper also spends a lot of effort on data hygiene: HistData’s XAU/USD timestamps turn out to follow the European daylight-saving switch (UTC−5 until 2026-03-29, then UTC−4), and treating them as fixed EST would inflate the XAU basis standard deviation from 6.4 bp to 25.0 bp. Six further anomalies, such as a frozen reference index and a missing funding record, are documented and cleaned. The basis is split into a premium (perpetual vs. exchange reference index) and an index basis (reference index vs. external spot), and only the premium is under funding control. A Ridge model with seven feature groups (deviation from the 24-hour mean, noise, premium and index basis, funding, momentum, volatility and liquidity, and the market-closure calendar) forecasts the 4-hour basis change. It modestly beats a mean-reversion baseline, and gradient-boosted trees and an MLP do not improve on it. Decomposing the correction with a third-asset neutralisation (hedging XAU against PAXG and vice versa) shows that, after a 1 bp positive XAU basis deviation, the XAU perpetual moves only −0.092 bp (insignificant) over 4 hours while FX spot moves +0.496 bp. The perpetual takes 16% of the adjustment overall (11% before and 34% after a 2026-05-08 rule change), and the PAXG perpetual takes 40%. Reversion is not significantly faster outside the dead band than inside it, so funding acts mainly as a settlement-time event: when F > I, holders cut the premium by about 2.28 bp in the hour before settlement, and it rebounds 1.83 bp within five minutes afterwards (1.42 bp in the first minute). Funding fails in three cases. In the first, dead-band capture, the PAXG median premium of −4.37 bp sits just inside the −5 bp edge, so annualised funding is only 4.6% and exerts no corrective pull. In the second, spot closure, the reference index used a stale closing price before 2026-05-08 and has been computed from the perpetual’s own order book since then, so funding stays at zero. In the third, an index FX mismatch, a USDT/USD conversion added to the index on 2026-07-16 widened the index-basis mean from 0.81 bp to 6.95 bp, beyond funding’s reach. During weekends the XAU perpetual becomes the price-discovery venue: its cumulative weekend move predicts the Monday FX opening gap.
Data and code: HistData one-minute XAU/USD FX quotes, and Binance PAXGUSDT spot plus XAUUSDT and PAXGUSDT perpetual one-minute klines, reference index, premium index and funding history, from 2026-01-01 to 2026-10-01. Models are trained on 2026-01-01 to 2026-06-30 and tested out of sample on 2026-07-01 to 2026-09-30 (1,395 XAU and 2,205 PAXG test samples). All data comes from public sources, but no code or dataset is published, and the work is described as ongoing research.
Key metrics: these are forecasting and econometric statistics, not trading returns, as the paper runs no strategy backtest. Funding replication is within 0.1 bp for all PAXG settlements (max error 0.081 bp, RMSE 0.016 bp) and for all but four XAU settlements (max 0.749 bp, RMSE 0.022 bp). Applying end-of-sample parameters to the whole year would produce 89 XAU errors of up to 4.92 bp. Mean-reversion slopes are β = −0.598 (XAU) and −0.659 (PAXG), giving half-lives of 3.0 and 2.6 hours, or 4.0 and 4.8 hours with a 15-minute-lagged instrumental variable. 73% of new deviations close within 4 hours, while deviations older than 4 hours have a 9.4-hour half-life. Out-of-sample 4-hour basis RMSE for XAU is 2.538 bp (zero forecast), 2.275 bp (baseline) and 2.166 bp (Ridge, −4.8%). For PAXG it is 1.530, 1.226 and 1.197 bp (−2.4%). Diebold–Mariano statistics are 3.37 (p = 0.0007) for XAU and 2.17 (p = 0.0301) for PAXG, Clark–West statistics are 5.47 and 6.63, and block-bootstrap 95% confidence intervals for the improvement are [0.054, 0.167] and [0.001, 0.054] bp. The reported XAU gradient-boosting RMSE of 2.128 bp appears lower than the Ridge’s 2.166 bp, which conflicts with the claim that it did not beat the linear model. Over 21 weekends after 2026-05-08, the Monday FX gap = −3.2 + 0.91 × the perpetual’s weekend move, with R² = 0.72, a slope 95% confidence interval of [0.73, 1.51], an 81% directional hit rate and a residual standard deviation cut from 48.0 bp to 25.4 bp (72% lower variance).
Mentioned by 0xJude in this discussion, who summarises it as: “perpetual futures are the true price anchor. Everyone thinks perpetuals are pulled toward spot through funding rates, but the research shows spot is pulled toward the perpetual, not the other way round, and the role of funding is negligible.” The paper’s own numbers are more nuanced: funding still matters around settlement, the perpetual’s share of the correction is 16% for XAU but 40% for PAXG, and the strongest perpetual-leads-spot evidence comes from weekends when FX spot is closed.
By 0xJude.
Fine-Tuning an Order-Flow Foundation Model for Sub-Second Forecasting#
Fedor Shabashev pretrains a 300M-parameter autoregressive generative model on Level-3 order-flow data from two crypto exchanges, Bitstamp and Bitfinex. He then fine-tunes it to predict the microprice return and its realised volatility. The fine-tuned model beats classical baselines, including gradient boosting on handcrafted features, at predicting microprice returns over sub-second horizons. Its predictive ability also transfers zero-shot to assets it was never fine-tuned on. The predicted moves are smaller than the bid-ask spread plus fees, so the author sees the natural applications in execution and market making. Recent generative models such as TradeFM have been pretrained on order flow, but the author says none had yet been fine-tuned for a downstream forecasting task.
Our summary: the backbone is a stock Llama decoder (hidden size 1152, 18 layers, 1024-token context) trained for 4 epochs on 2.76B tokens. The tokens follow the TradeFM recipe: each add or cancel is one token over action, side, price offset from mid, log size and inter-arrival time, a 16,384-token vocabulary. The crypto-specific changes are a reserved bin for zero inter-arrival time (32% of consecutive events share a millisecond timestamp), splitting reprices into cancel plus add, and bin edges frozen across venues. The data is about two weeks of Level-3 events across 73 asset streams. As a generator, the model reproduces book factors (spread, imbalance, resting-order count) and return stylized facts far better than a zero-intelligence stream. However, rare rollouts sweep about 4× deeper into the book than real flow, inflating pooled volatility up to about 15×, and this does not improve with lower next-token loss. So the author reads forecasts off the hidden state rather than simulating rollouts. A small head with a decoupled Huber loss and rank-16 LoRA adapters (0.7% of weights) predicts the BTC/USD microprice return and realised volatility at 200 ms to 30 s. The forecast edge is short-lived: it decays 60–80% within one horizon of lead and is gone by about two horizons. Pretraining does the work. A 17M transformer trained from scratch on the same tokens and labels gets only about half the directional correlation and never beats order-book imbalance, and a 300M model trained from scratch collapses to chance. Beyond a few seconds, the advantage disappears: GARCH wins on volatility from 2 s on, and the LoRA head’s direction falls behind order-book imbalance at 10–30 s. The paper is careful about leakage. Targets use true exchange timestamps, because a cumulative-sum clock drifted about 2.25 s and would have leaked future data into the targets. The pretraining corpus ends before the fine-tuning data, and the frozen adapter is re-tested on four later windows while every baseline is refit locally on each one. It also measures latency: with merged LoRA and CUDA graphs, the forecast takes 4.0 ms per event on an H100 (247 events per second, against BTC’s median 199).
Data and code: Level-3 feeds collected by the author from Bitstamp and Bitfinex. The pretraining corpus covers 20 September to 2 October 2026. Fine-tuning uses Bitstamp BTC/USD on 3–5 October, and evaluation uses five holdouts from 5 to 17 October (about 37 hours), plus a zero-shot test on Bitstamp ETH/USD and SOL/USD. Neither the paper nor the arXiv page links code, the dataset or model weights. Hyperparameters, tokenizer design and baseline settings are described in enough detail to reimplement, but reproducing it requires collecting your own Level-3 crypto feeds. The author calls the results exploratory, not a benchmark: one instrument, one venue and about four weeks.
Key metrics: these are forecast correlations, not trading results. The paper states that no sub-second forecast clears the roughly 2 bp one-way cost (half the 1–2 bp spread plus a taker fee), so there is no profit, Sharpe or drawdown to report.
Direction correlation with the forward microprice return at 0.2/0.5/1 s: 0.44/0.45/0.39 for the fine-tuned model, against 0.23/0.24/0.23 for the best order-book imbalance (OBI) baseline, 0.39/0.37/0.31 for gradient boosting on 10-level order-flow imbalance and OBI features, and about 0.20 for the from-scratch 17M model.
Paired gaps over gradient boosting are +0.05/+0.07/+0.08 on the first holdout and +0.04 to +0.14 across all five windows. The model beats both OBI and gradient boosting in 15 of 15 window-horizon cells, with every confidence interval excluding zero.
Against the plain mid-price, sign accuracy is 82%/83%/75% at 0.2/0.5/1 s on windows where the touch price actually moves.
Volatility correlation at 0.2/0.5 s is 0.52/0.46, against GARCH’s 0.43/0.37. It beats GARCH in four of five windows; GARCH wins from 2 s onward.
On data collected 130 minutes after fine-tuning ended, direction correlation is 0.47/0.49/0.46.
Zero-shot direction correlation is 0.26–0.33 on ETH and 0.13–0.32 on SOL, against OBI’s 0.14 or less and 0.05 or less.
Mentioned by Saeed Amen (Cuemacro, Turnleaf Analytics) in this discussion as part of his #QuantLinkADay series, sharing the title and two screenshots from the paper without further commentary.
By Fedor Shabashev.
Side, Not Price: How On-Chain Market Makers Manage Inventory, and What It Does to Prices#
Standard market-making models (Avellaneda and Stoikov, 2008; Guéant, Lehalle and Fernandez-Tapia, 2013, GLFT) say a maker manages inventory by shifting both quote prices against its position. The paper tests this on Hyperliquid, a fully transparent on-chain perpetual futures exchange where every order carries its account. It uses 165 million quotes from 230 maker accounts in five coins over 86 days, and nearly every test was written down and frozen before it was run. Makers manage inventory mainly by choosing which side to quote, not by price: one standard deviation of inventory lowers the share of bids by 6.2 percentage points, while prices move by 0.24 of one tick. Three predictions of the model fail, and the behaviour leaves a mark on prices: when makers as a group are long, Hyperliquid trades below Binance, and about a third of the gap closes within an hour.
Our summary: the data is the novelty. Earlier evidence on dealer inventory comes from a handful of FX or London Stock Exchange dealers or from one proprietary Canadian dataset. Here every identified market maker on a venue can be matched, quote by quote, to its position rebuilt fill by fill. The main test (T1) passes all three of its pre-set criteria. 86% of makers post fewer orders on the side that would add inventory, 88% shade price by less than one tick, and quotes on the unwinding side are about 16% larger. The same tilt shows in the resting order book that takers actually see, rebuilt every ten seconds. A very short maker keeps 68% of its resting notional within 5 bps of the mid on the bid, and a very long maker keeps 30%. This test was added after the frozen ones, and the paper labels it as such. GLFT fails in three ways. Price shading weakens when volatility is high (+0.054 ticks, p < 0.001), the side response is steepest at small inventory (slope -0.096 for |q| < 1) rather than appearing only near a limit, and the small price response that exists is defensive: the quote that would add inventory moves away from the mid about twice as much as the unwinding quote moves towards it. Makers that use side more return to flat sooner (Spearman +0.48 across 202 makers). The robustness checks address the obvious objections. Dropping quotes placed right after a fill makes the effect stronger (-0.065 to -0.086), because makers refill the side that was just hit. Controlling for past returns leaves it unchanged, and makers that do not appear to hedge on Binance show the same pattern.
Three candidate explanations are tested and rejected. The first is coarse ticks: Hyperliquid’s five-significant-figure price rule makes the tick ten times larger when SOL crosses $100 or XRP crosses $1, and over 31 boundary crossings this tenfold tick change leaves the side response unchanged (τ = +0.004, randomisation p = 0.42; an effect larger than about a tenth of the baseline is ruled out). The second is queue priority, which predicts the opposite asymmetry from the one found. The third is reaction to toxic fills: the response does not change after the maker’s own fills had adverse 10-second markouts. The author leaves the “why” open and points to the “price reading” model of Barzykin, Bergault, Guéant and Lemmel (2026): when every quote is public, a skewed price reveals the maker’s position to counterparties who can trade ahead of its rebalancing, while a missing quote reveals less. For a practitioner the price-pressure result is the actionable part, since maker positions on Hyperliquid can be observed in real time. But the gap’s reversal runs entirely through the visible gap. Once the current gap is controlled for, inventory adds no further reversal signal, and the paper does no cost or execution analysis. Other caveats the author states: the evidence is descriptive apart from the tick experiment. Inventory is itself the product of the taker flow that also moves the price. Only identified maker firms are covered, and their positions on other venues are not observed. The seven pre-registrations were written over three days as results came in, so only v1 and v3 are fully ex ante. The replication coins share the same firms.
Data and code: order events, fills and resting-order snapshots for identified market-making wallets come from the data vendor 0xArchive (licensed and not redistributable). Whole-market trades and top of book every 0.5 seconds come from its API, and Binance 1-second prices serve as the reference. The main sample covers BTC, ETH, SOL, XRP and HYPE on 1-14 June and 15 August to 25 October 2026, about 4.1 billion rows. A replication sample adds 644 accounts and 53.5 million quotes in 16 further coins. All code, the seven pre-registrations frozen under git tags prereg-v1 to prereg-v7, the deviation notes and the result files are on GitHub, together with a script that checks every number in the paper against the result files. Wallet addresses and firm names are not published.
Key metrics (per one standard deviation of inventory):
Side: P(bid) -6.2 pp [-6.8, -5.7]; replication on 16 coins -10.7 pp, negative and significant in 16 of 16.
Price: -0.24 ticks [-0.28, -0.20], against a pre-registered one-tick threshold; replication -0.37 ticks.
Resting quotes: bid share of resting notional -7.6 pp [-8.0, -7.2], from 68% (most short) to 30% (most long).
Tick experiment: τ = +0.0037, randomisation p = 0.42, on 2.45 million quotes from 65 makers; presence at the best price rises by 11.6 pp when the tick is coarser.
Price pressure: Hyperliquid-Binance gap -0.70 bps [-0.81, -0.59], about 17% of the gap’s within-day standard deviation; 36% of it closes within 60 minutes. On 12 further coins: -1.26 bps, 39% closed.
No trading strategy, Sharpe ratio, PnL or win rate is reported.
Mentioned by Kethan S., the author, in this LinkedIn post, which sums the paper up as “makers manage inventory by choosing which side to quote, not by shifting price”. The post asks market-making desks how they weigh pulling a side against shifting price in practice.
By Kethan S E.
Execution Costs Eat Into Your PnL: How Lighter Traders Saved $42.7M In 90 Days#
An X article from the decentralised perpetual futures exchange Lighter measures what execution costs a taker would have paid on other venues. It takes every eligible Lighter taker trade over 90 days: $157B in volume, 112.6M trades and 41,000 traders. Each one is replayed on Binance, Bybit and Hyperliquid with the same side and size, against that venue’s real order book at the same moment. Execution cost is the trading fee plus slippage against the mid price. Lighter’s figure is $42.73M saved against Hyperliquid, the next-cheapest venue, $45.59M against Binance and $53.46M against Bybit.
Our summary: the gap comes mostly from fees. Most Lighter users trade at zero fees, and Lighter’s average fee is 0.30 bps including paid account types. The next-cheapest venue averages 3.19 bps after staking and volume discounts, against base taker rates of 4.5–5.5 bps. All-in, a Lighter trade starts on average 1.53 bps in the red, against 4.26 bps on the next-cheapest venue, or about $273 more per $1M traded. The authors conclude that a strategy earning 1.5–4.3 bps per trade makes money on Lighter and loses money everywhere else they measured. They highlight three zero-fee taker addresses on majors whose PnL would have been $2.08M lower elsewhere; for two of them, Lighter is the only venue where their strategy is profitable. On method, Hyperliquid’s book is matched to the exact millisecond, Binance’s within about 25 ms and Bybit’s within 200 ms. Other venues are charged the taker fee at the tier the trader’s volume would earn there, which the authors say favours those venues. Liquidations, maker fills and orders the other book could not fill within 1% of mid are excluded. The authors report that the result holds whether prices are taken at the fill or before Lighter’s speed bump (300 ms, 140 ms for Premium), and whether each venue’s own mid is used or the usual price gap between venues is adjusted for. Keep in mind that this is a vendor measuring its own venue. Replaying fills assumes the same orders would have been sent and filled the same way elsewhere, with no change to the strategy, and the zero-fee advantage depends on Lighter keeping its current fee policy. The underlying data and a savings leaderboard are public at app.lighter.xyz/savings.
By Lighter.