Cooperative Multi-Agent Reinforcement Learning for Market Making on Prediction-Market Order Books
Organizations: Department of Statistics, London School of Economics and Political Science
Abstract
A market maker provides liquidity by quoting prices to buy and sell an asset, earning the spread while managing inventory risk. We study market makers trained with multi-agent reinforcement learning on prediction markets, specifically Polymarket, whose thin order books pose distinct challenges. Three challenges underpin this research: adverse selection may cause a policy trained on real data to stop quoting; the consequences of a quote can arrive many steps after the action; and prediction-market L2 data does not identify individual orders needed for simulation. We address these challenges by reconstructing order-level LOBSTER-format data from Polymarket and training agents in JaxMARL-HFT on 417 real markets. We enrich the baseline market maker's observation space with the book and recent flow, redesign its actions and inventory controls, and propose a cooperative multi-agent decomposition into a quoter and a risk manager trained using recurrent Independent Proximal Policy Optimisation (IPPO) with RNN policies. We investigate reward shaping, particularly reward blending and post-fill markout, to mitigate credit-assignment difficulties between the agents. Our redesigned single-agent market maker quotes more frequently and incurs smaller held-out losses than the retrained JaxMARL-HFT baseline, although the contributions of jointly changed observations, actions and risk constraints are not separately identified. Decomposition alone performs poorly; careful reward design substantially improves the desk relative to the unshaped split and yields our best result. Models are evaluated on realised end-of-episode portfolio value on held-out markets. None establishes positive average portfolio value in periodic held-out evaluation, and each configuration was trained with one seed. The environment, data and protocol lay a foundation for makers that quote many linked markets at once.
Figures & tables
| quantity | value |
|---|---|
| recorded messages per step | 400 |
| episode length | 250 steps (100,000 messages) |
| book depth | 10 levels a side loaded, 5 observed |
| parallel environments | 64 |
| transitions per update | , in 2 minibatches, 4 epochs |
| configured budget | 3.2 million environment steps (200 updates) |
| component | setting |
|---|---|
| quote table | the seventeen-row wide table of section 3.6.1 , plus stand-aside |
| observation | the book-and-flow vector of section 3.5 |
| auxiliary head | the mid-price forecast head of section 4.1.2 , coefficient |
| inventory cap | 4 units |
| network | 256 recurrent units, 256 per dense layer |
| setting | value |
|---|---|
| optimiser | Adam, learning rate , constant |
| discount | (market making, risk manager); (execution) |
| GAE trace | (market making, risk manager); (execution) |
| clipping | |
| entropy coefficient | |
| value coefficient |
| model | horizons (steps) | forecast to actor |
|---|---|---|
| D_SPLIT , D_BLEND , D_MARK | 1, 5, 10 | no |
| WIDE_SPOONER | 1, 5, 10 | yes |
| D_BL_MARK_CURR | 1, 10, 60 | yes |
| model | blend | markout |
|---|---|---|
| D_SPLIT | – | |
| D_BLEND | – | |
| D_MARK | / | |
| D_BL_MARK_CURR | / , ramped |
| configuration | PV | spread | volume | no-trade | inv |
|---|---|---|---|---|---|
| (ticks) | (units/step) | (%) | (units) | ||
| PAPER_BASE | |||||
| WIDE_SPOONER |
| configuration | PV | spread | volume | no-trade | inv |
|---|---|---|---|---|---|
| (ticks) | (units/step) | (%) | (units) | ||
| D_SPLIT | |||||
| D_BLEND | |||||
| D_MARK | |||||
| D_BL_MARK_CURR |
Algorithmic Trading
Algorithmic trading uses computational models to generate signals, allocate portfolios, and execute orders across financial markets.
See all 149 papers