Skip to main content
QUICK REVIEW

[Paper Review] Towards Realistic Market Simulations: a Generative Adversarial Networks Approach

Andrea Coletta, Matteo Prata|arXiv (Cornell University)|Oct 25, 2021
Stock Market Forecasting MethodsDecision Sciences4 citations
TL;DR

This paper proposes a Conditional Generative Adversarial Network (CGAN)-based framework to generate realistic, reactive market simulations by learning aggregate market behavior from historical data. The CGAN models the entire market as a single 'world' agent that generates limit orders conditioned on current market states, enabling accurate, responsive simulations that outperform prior hand-crafted agent-based models in replicating key stylized facts of real limit order books.

ABSTRACT

Simulated environments are increasingly used by trading firms and investment banks to evaluate trading strategies before approaching real markets. Backtesting, a widely used approach, consists of simulating experimental strategies while replaying historical market scenarios. Unfortunately, this approach does not capture the market response to the experimental agents' actions. In contrast, multi-agent simulation presents a natural bottom-up approach to emulating agent interaction in financial markets. It allows to set up pools of traders with diverse strategies to mimic the financial market trader population, and test the performance of new experimental strategies. Since individual agent-level historical data is typically proprietary and not available for public use, it is difficult to calibrate multiple market agents to obtain the realism required for testing trading strategies. To addresses this challenge we propose a synthetic market generator based on Conditional Generative Adversarial Networks (CGANs) trained on real aggregate-level historical data. A CGAN-based "world" agent can generate meaningful orders in response to an experimental agent. We integrate our synthetic market generator into ABIDES, an open source simulator of financial markets. By means of extensive simulations we show that our proposal outperforms previous work in terms of stylized facts reflecting market responsiveness and realism.

Motivation & Objective

  • To address the limitation of backtesting, which fails to model market response to trading agents' actions.
  • To overcome the challenge of limited access to proprietary trader strategies, making it difficult to calibrate realistic agent pools.
  • To develop a scalable, data-driven method for generating synthetic market behavior that reflects real market dynamics.
  • To ensure simulated markets are both realistic and responsive to experimental agents' strategies.
  • To improve the fidelity of agent-based simulations for evaluating trading strategies in a controlled, yet market-realistic, environment.

Proposed method

  • A Conditional GAN (CGAN) is trained on real aggregate-level historical order data to learn the joint distribution of market states and order flows.
  • The CGAN generates limit orders conditioned on current market state features, such as bid-ask spread, order book imbalance, and price trends.
  • The trained CGAN acts as a 'world' agent in the ABIDES simulator, simulating the collective behavior of all market participants for a given asset.
  • The framework integrates into ABIDES, an open-source agent-based market simulator, enabling interaction between experimental agents and the synthetic market.
  • The model preserves statistical properties of real markets, including volatility clustering, fat tails, and volume-volatility correlation.
  • Simulations are evaluated by comparing generated market traces against historical data using stylized facts of limit order books.

Experimental results

Research questions

  • RQ1Can a CGAN-based model generate synthetic market order flows that preserve the statistical properties of real financial markets?
  • RQ2Does the CGAN-based market simulation exhibit realistic responsiveness to experimental agents' trading activities?
  • RQ3How does the realism of CGAN-generated simulations compare to state-of-the-art hand-crafted agent-based simulations in terms of stylized facts?
  • RQ4To what extent can a single CGAN agent represent the collective behavior of thousands of real market participants?
  • RQ5Can the framework support 'what-if' analysis with realistic market feedback for new trading strategies?

Key findings

  • The CGAN-based framework most closely replicates the one-minute log-return distribution of historical TSLA data, outperforming both baseline IABS configurations.
  • The framework shows the most realistic volatility clustering pattern, with correlation decaying appropriately over time lags, closely matching real market behavior.
  • In volume-volatility correlation, the CGAN simulation shows the most promising trend, though slightly shifted left compared to historical data.
  • The CGAN-based simulation exhibits the lowest auto-correlation in returns, closely aligning with historical data, indicating strong realism in price efficiency.
  • The presence of a 0.25-POV experimental agent causes a measurable and realistic mid-price deviation, followed by mean reversion, demonstrating market reactivity.
  • Overall, the CGAN-based simulation outperforms two state-of-the-art IABS configurations in replicating key stylized facts of limit order book dynamics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.