Can Large Language Models Trade? Testing Financial Theories with LLM Agents in Market Simulations
By: Alejandro Lopez-Lira
Potential Business Impact:
Teaches computers to trade stocks like people.
This paper presents a realistic simulated stock market where large language models (LLMs) act as heterogeneous competing trading agents. The open-source framework incorporates a persistent order book with market and limit orders, partial fills, dividends, and equilibrium clearing alongside agents with varied strategies, information sets, and endowments. Agents submit standardized decisions using structured outputs and function calls while expressing their reasoning in natural language. Three findings emerge: First, LLMs demonstrate consistent strategy adherence and can function as value investors, momentum traders, or market makers per their instructions. Second, market dynamics exhibit features of real financial markets, including price discovery, bubbles, underreaction, and strategic liquidity provision. Third, the framework enables analysis of LLMs' responses to varying market conditions, similar to partial dependence plots in machine-learning interpretability. The framework allows simulating financial theories without closed-form solutions, creating experimental designs that would be costly with human participants, and establishing how prompts can generate correlated behaviors affecting market stability.
Similar Papers
LLM Trading: Analysis of LLM Agent Behavior in Experimental Asset Markets
Trading & Market Microstructure
Computers don't make fake money bubbles like people.
StockBench: Can LLM Agents Trade Stocks Profitably In Real-world Markets?
Machine Learning (CS)
Helps computers trade stocks better.
TradingAgents: Multi-Agents LLM Financial Trading Framework
Trading & Market Microstructure
Helps computers trade stocks like a real company.