When AI Meets Finance (StockAgent): A Benchmark for Simulating Large Language Model Behaviors in Controlled Trading Environments
Can AI Agents be benchmarked within strictly controlled simulated trading environments to investigate how external factors impact their collective trading behaviors? These factors, which frequently influence trading behavior, are critical elements in the quest to maximize investors’ profits. Our work aims to address this problem by utilizing large language model-based agents. We have developed a multi-agent AI system, StockAgent, driven by LLMs and designed to systematically explore simulated trading behaviors in controlled environments. StockAgent enables examination of how external factors might affect agent behavior and profitability in simulations, without empirical validation for real-world use. Additionally, StockAgent avoids the test-set leakage issue present in existing AI-agent-based trading simulation systems. Specifically, it prevents the model from leveraging prior knowledge it may have acquired related to the test data. We evaluate different LLMs within the StockAgent framework, which serves as a benchmark for testing LLM behavioral tendencies with rigorous internal validity checks and non-LLM baselines. The experimental results demonstrate the impact of key external factors on stock market trading, including trading behavior and the rules governing stock price fluctuations. This research examines the phenomenon of agents’ free-trading gaps in the context of no prior knowledge of market data. The patterns identified through StockAgent simulations offer methodological insights into LLM behaviors in simulated financial environments. The code is available at: https://github.com/MingyuJ666/Stockagent.
Authors
- Zhongmou Zhang (ORCID: https://orcid.org/0000-0002-2200-0760)
- Z.G. Wang (ORCID: https://orcid.org/0000-0003-0311-1331)
- Xiaobo Jin (ORCID: https://orcid.org/0000-0003-1671-1379)
- Lingyao Li (ORCID: https://orcid.org/0000-0001-5888-8311)
- Wenyue Hua (ORCID: https://orcid.org/0009-0008-2043-2704)
- Sujian Li (ORCID: https://orcid.org/0000-0001-7493-0786)
- Mengnan Du (ORCID: https://orcid.org/0000-0002-1614-6069)
- Mingyu Jin (ORCID: https://orcid.org/0009-0007-6990-7355)
- Yongfeng Zhang (ORCID: https://orcid.org/0000-0003-2633-8555)
- Dong Shu (ORCID: https://orcid.org/0009-0009-9785-3934)
- Suiyuan Zhu (ORCID: https://orcid.org/0009-0003-7822-3271)
- Chong Zhang (ORCID: https://orcid.org/0009-0003-2020-6989)
- Xinyi Liu (ORCID: https://orcid.org/0009-0007-4497-3436)
Institutions
- Rutgers, The State University of New Jersey (US)
- Northwestern University (US)
- New Jersey Institute of Technology (US)
- University of Liverpool (GB)
- Shanghai University of Finance and Economics (CN)
- Peking University (CN)
- University of South Florida (US)
- New York University (US)
- Xi’an Jiaotong-Liverpool University (CN)
Publication Details
- Journal
- ACM Transactions on Intelligent Systems and Technology
- Published
- 2026-12-03
- DOI
- https://doi.org/10.1145/3844605
- Citations
- 11
- Primary Topic
- Stock Market Forecasting Methods
- Type
- article
- Field-Weighted Citation Impact
- 20.68