TradeTrap: Are LLM-based Trading Agents Truly Reliable and Faithful?

Lewen Yan, Jilin Mei, Tianyi Zhou, Lige Huang, Jie Zhang +2 more
12/1/2025
cs.AI

Official code: Yanlewen/TradeTrap (83 stars, Apache-2.0, last commit 2025-11-27).

Abstract

LLM-based trading agents are increasingly deployed in real-world financial markets to perform autonomous analysis and execution. However, their reliability and robustness under adversarial or faulty conditions remain largely unexamined, despite operating in high-risk, irreversible financial environments. We propose TradeTrap, a unified evaluation framework for systematically stress-testing both adaptive and procedural autonomous trading agents. TradeTrap targets four core components of autonomous trading agents: market intelligence, strategy formulation, portfolio and ledger handling, and trade execution, and evaluates their robustness under controlled system-level perturbations. All evaluations are conducted in a closed-loop historical backtesting setting on real US equity market data with identical initial conditions, enabling fair and reproducible comparisons across agents and attacks. Extensive experiments show that small perturbations at a single component can propagate through the agent decision loop and induce extreme concentration, runaway exposure, and large portfolio drawdowns across both agent types, demonstrating that current autonomous trading agents can be systematically misled at the system level. Our code is available at https://github.com/Yanlewen/TradeTrap.

View on arXivView PDF

Code Implementations(1)

Yanlewen/TradeTrapOfficial100%
Apache-2.0

🧨 TradeTrap: Are LLM-based Trading Agents Truly Reliable and Faithful?

8313C, CSSNov 6, 202510 months agoApache-2.0

Similar Papers

Cite this paper

@article{yan2025tradetrap,
  title  = {TradeTrap: Are LLM-based Trading Agents Truly Reliable and Faithful?},
  author = {Lewen Yan and Jilin Mei and Tianyi Zhou and Lige Huang and Jie Zhang and Dongrui Liu and Jing Shao},
  year   = {2025},
  eprint = {2512.02261},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.02261v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.02261.svg)](https://codeofpaper.com/paper/2512.02261)

Discussion