Can Large Language Models Trade? Testing Financial Theories with LLM Agents in Market Simulations

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autore principale: Lopez-Lira, Alejandro
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915243618205696
author Lopez-Lira, Alejandro
author_facet Lopez-Lira, Alejandro
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2504_10789
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Can Large Language Models Trade? Testing Financial Theories with LLM Agents in Market Simulations
Lopez-Lira, Alejandro
Computational Finance
General Economics
Economics
General Finance
Trading and Market Microstructure
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.
title Can Large Language Models Trade? Testing Financial Theories with LLM Agents in Market Simulations
topic Computational Finance
General Economics
Economics
General Finance
Trading and Market Microstructure
url https://arxiv.org/abs/2504.10789