MarketSim: Simulating Stock Markets with Large-Scale Generative Agents
Jinghua Piao, zhentao liu, Cheng Huang, Huang Jiarui, Songwei Li, Wang Ranran, Yong Li
Abstract
Stock markets are one of the most complex systems in the modern world, where prices emerge from billions of decentralized interactions among heterogeneous participants in an ever-evolving information landscape. While high-fidelity simulation is important for understanding market dynamics, existing approaches face a persistent trade-off between structural and behavioral fidelity. To this end, we propose MarketSim, a large-scale stock market simulation framework with generative agents. MarketSim introduces a hierarchical multi-agent architecture that decouples strategic reasoning from high-frequency execution, enabling LLM agents to operate in a nanosecond-resolution, NASDAQ-like continuous double auction market. Building on this, we simulate over 15,000 heterogeneous market participants whose interactions shape and are shaped by an evolving market environment grounded in more than 12k real-world news articles, policy documents, and earnings reports. To evaluate our proposed MarketSim, we develop a comprehensive benchmark that includes stocks from 8 GICS sectors and 3 representative real-world scenarios, along with 5 stylized facts for market complexity and 5 price-related statistical metrics. Extensive experiments demonstrate that MarketSim not only captures key complexity properties of real-world markets, but also outperforms state-of-the-art baselines in tracking high-frequency price dynamics with an average MAPE of 3.48%, providing a scalable testbed for market analysis.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext ded2e670-f2d8-434d-a655-2bfbaf299690Builds on4
- Generative Agents: Interactive Simulacra of Human BehaviorJoon Sung Park, Joseph C. O'Brien, Carrie Jun Cai, Meredith Ringel Morris et al.UIST 2023 · 1,882 citations
- FinCon: A Synthesized LLM Multi-Agent System with Conceptual Verbal Reinforcement for Enhanced Financial Decision MakingYangyang Yu, Zhiyuan Yao, Haohang Li, Zhiyang Deng et al.NeurIPS 2024 · 197 citations
- TwinMarket: A Scalable Behavioral and Social Simulation for Financial MarketsYuzhe Yang, Yifei Zhang, Minghao Wu, Kaidi Zhang et al.NeurIPS 2025 · 64 citations
- MarS: a Financial Market Simulation Engine Powered by Generative Foundation ModelJunjie Li, Yang Liu, Weiqing Liu, Shikai Fang et al.ICLR 2025
Related papers
- Market-Bench: Benchmarking Large Language Models on Economic and Trade CompetitionYushuo Zheng, Huiyu Duan, Zicheng Zhang, Yucheng Zhu et al.ACL 2026 · 1 citation
- Market-GAN: Adding Control to Financial Market Data Generation with Semantic ContextHaochong Xia, Shuo Sun, Xinrun Wang, Bo AnAAAI 2024 · 15 citations
- State Dependent Parallel Neural Hawkes Process for Limit Order Book Event Stream Prediction and SimulationZijian Shi, John CartlidgeKDD 2022 · 19 citations
- The LOB Recreation Model: Predicting the Limit Order Book from TAQ History Using an Ordinary Differential Equation Recurrent Neural NetworkZijian Shi, Yu Chen, John CartlidgeAAAI 2021 · 12 citations
- MemSim: A Bayesian Simulator for Evaluating Memory of LLM-based Personal AssistantsZeyu Zhang, Quanyu Dai, Luyu Chen, Zeren Jiang et al.NeurIPS 2025 · 23 citations
