[Paper Review] Generating Realistic Stock Market Order Streams
This paper proposes Stock-GAN, a conditional Wasserstein GAN that generates high-fidelity stock market order streams by modeling history dependence through a custom-designed auction mechanism network and incorporating order-book state into the conditioning. The model outperforms baselines like VAE and DCGAN in generating realistic order data, as validated by statistical metrics and spectral analysis on real GOOG data with a Kolmogorov-Smirnov distance of 0.126 for price distribution.
We propose an approach to generate realistic and high-fidelity stock market data based on generative adversarial networks (GANs). Our Stock-GAN model employs a conditional Wasserstein GAN to capture history dependence of orders. The generator design includes specially crafted aspects including components that approximate the market's auction mechanism, augmenting the order history with order-book constructions to improve the generation task. We perform an ablation study to verify the usefulness of aspects of our network structure. We provide a mathematical characterization of distribution learned by the generator. We also propose statistics to measure the quality of generated orders. We test our approach with synthetic and actual market data, compare to many baseline generative models, and find the generated data to be close to real data.
Motivation & Objective
- To develop a high-fidelity generative model for realistic stock market order streams that captures complex temporal and market microstructure dependencies.
- To address the gap in existing models that fail to reproduce key stylized facts of real market data, such as bid-ask spread dynamics and order arrival patterns.
- To design a neural network architecture that incorporates domain-specific market mechanisms (e.g., double auction) and market state (order book) to improve generation quality.
- To propose and validate a set of quantitative statistics for evaluating the realism of generated market data.
- To demonstrate the model’s effectiveness on both synthetic and real-world market data, including high-capacity stocks like GOOG.
Proposed method
- The model uses a conditional Wasserstein GAN (WGAN) with both generator and critic conditioned on historical order sequences to capture time-dependent dynamics.
- The generator includes a pre-trained neural network that approximates the continuous double auction mechanism, enabling realistic order execution and transaction generation.
- Order-book state (e.g., best bid/ask, depth) is explicitly incorporated into the conditioning history to reflect market microstructure beyond raw order history.
- The generator learns a stochastic process with finite memory dependence, mathematically characterized as a conditional distribution over order streams given prior history and order-book state.
- The model is trained using the Earth Mover’s Distance (Wasserstein loss) to improve training stability and generation quality.
- Ablation studies are conducted by removing the CDA network or order-book conditioning to evaluate their individual contributions to realism.
Experimental results
Research questions
- RQ1Can a GAN-based model generate stock market order streams that are statistically indistinguishable from real market data?
- RQ2How does incorporating the double auction mechanism and order-book state into the generator architecture affect the realism of generated order streams?
- RQ3What statistical metrics best capture the fidelity of generated market data in terms of price, quantity, inter-arrival times, and bid-ask evolution?
- RQ4How does Stock-GAN compare to baseline models like VAE and DCGAN in generating realistic market dynamics?
- RQ5To what extent do architectural components like the CDA network and order-book conditioning contribute to the model’s performance, as shown by ablation studies?
Key findings
- Stock-GAN achieves the lowest Kolmogorov-Smirnov (KS) distance to real data on price distribution (0.126) compared to VAE (0.218) and DCGAN (0.181) on real GOOG data.
- For quantity distribution, Stock-GAN achieves a KS distance of 0.182, significantly lower than VAE (0.248) and DCGAN (0.471), indicating superior realism.
- On inter-arrival times, Stock-GAN achieves a KS distance of 0.066, far below VAE (0.835) and DCGAN (0.154), showing better temporal pattern replication.
- Spectral analysis confirms that Stock-GAN’s generated bid-ask evolution closely matches real data, especially when both the CDA network and order-book conditioning are included.
- Ablation studies show that removing the CDA network increases high-frequency components (less realistic), while removing order-book data reduces high-frequency content, both degrading realism.
- The model successfully generates realistic intensity patterns and bid-ask dynamics, even on high-volume real data (e.g., 230,000 orders for GOOG), outperforming baselines in all evaluated metrics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.