Learning to simulate realistic limit order book markets from data as a World Agent

—

Learning to simulate realistic limit order book markets from data as a World Agent

Andrea Coletta
Aymeric Moulin
Svitlana Vyetrenko
Tucker Balch
Published on 9/26/2022
Equities
Machine learning
Deep learning
High frequency trading
Market timing

This paper presents a world model approach for simulating limit order book markets, where a single agent is trained directly from historical data to emulate the entire trader population. Two implementations are proposed: an explicit mixture of parametric distributions and a conditional generative adversarial network (CGAN). The explicit model decomposes the generation process into conditional distributions (e.g., order type, side, depth, quantity) fitted using maximum likelihood, while the CGAN uses a Wasserstein GAN with gradient penalty and unrolled training to implicitly learn the joint distribution of market actions conditioned on market state features. Both models support all main order types (market, limit, cancel, replace), overcoming limitations of prior work that only handled limit orders. Experiments on NASDAQ data for four stocks show that both models produce realistic order flow, volumes, spread, and time to fill, with the CGAN demonstrating better adaptability across different stocks and more accurate spread dynamics. Responsiveness tests with a percentage-of-volume agent reveal that both models exhibit price impact and mean reversion consistent with real markets. The CGAN model, despite being less interpretable, offers greater flexibility and realism, making it a promising tool for trading strategy evaluation and market impact studies.

Highlights

  • 1Proposes a world model approach for limit order book simulation that learns directly from historical data without agent calibration.
  • 2Extends previous CGAN-based world model to support all main market actions: market orders, limit orders, cancel orders, and replace orders.
  • 3Introduces an explicit parametric mixture model as an alternative interpretable world agent.
  • 4Improves CGAN training stability and realism by unrolling the model during training to handle synthetic market states.
  • 5Demonstrates superior realism and responsiveness compared to prior work across multiple stocks and stylized facts.

Methods

  • M
    Conditional Generative Adversarial Network (CGAN) with Wasserstein GAN and gradient penalty (WGAN-GP) for implicit generative modeling.
  • M
    Explicit mixture of parametric distributions: multinomial for order type, logistic regression for side, beta-binomial and negative-binomial for depth and quantity.
  • M
    Unrolled training of CGAN: generating k steps ahead and feeding synthetic states to the critic to improve stability.
  • M
    Market state representation using volume imbalance, order-sign imbalance, spread, returns, and absolute volumes.

Results

  • R
    Both world models generate realistic order type distributions and volumes, outperforming prior work that only modeled limit orders.
  • R
    CGAN model closely reproduces real market spread and time to first fill, while explicit model slightly overestimates volumes and spread.
  • R
    CGAN adapts better to different stocks (AVXL, CNR, AINV, AMZN) than the explicit model, which fails for AMZN depth distribution.
  • R
    Both models exhibit realistic price impact and mean reversion in response to a POV agent, with CGAN showing stronger mean reversion.
  • R
    Generated mid-price time-series show diversity and realism comparable to historical data.
0/5

Analyze Paper

Generate insights from "Learning to simulate realistic limit order book markets from...".

Suggested Actions