Learning Market Making with Closing Auctions
Julius Graf, Thibaut Mastrolia
TL;DR
This paper tackles market making across a trading session that ends with a closing auction, a key liquidity and price-discovery event often neglected by traditional models. It introduces a reinforcement-learning framework based on neural-fitted Q-learning that explicitly anticipates the closing auction, supported by a generative stochastic market model for simulation. The authors derive a general auction-clearing mechanism and demonstrate how a linear agent supply curve yields a closed-form solution, then validate the approach on both rough-Heston synthetic data and real SP500 assets, where the NFQ policy outperforms Avellaneda–Stoikov and TWAP baselines. The results highlight the practical value of auction-aware market making for improved liquidation, price discovery, and PnL across diverse market regimes.
Abstract
In this work, we investigate the market-making problem on a trading session in which a continuous phase on a limit order book is followed by a closing auction. Whereas standard optimal market-making models typically rely on terminal inventory penalties to manage end-of-day risk, ignoring the significant liquidity events available in closing auctions, we propose a Deep Q-Learning framework that explicitly incorporates this mechanism. We introduce a market-making framework designed to explicitly anticipate the closing auction, continuously refining the projected clearing price as the trading session evolves. We develop a generative stochastic market model to simulate the trading session and to emulate the market. Our theoretical model and Deep Q-Learning method is applied on the generator in two settings: (1) when the mid price follows a rough Heston model with generative data from this stochastic model; and (2) when the mid price corresponds to historical data of assets from the S&P 500 index and the performance of our algorithm is compared with classical benchmarks from optimal market making.
