AlphaQuanter

July 3, 2026 ยท View on GitHub

This repository contains the implementation of the paper AlphaQuanter: An End-to-End Tool-Orchestrated Agentic Reinforcement Learning Framework for Stock Trading.


๐Ÿ“– Overview

While Large Language Model (LLM) agents show promise in automated trading, they still face critical limitations. Prominent multi-agent frameworks often suffer from inefficiency, produce inconsistent signals, and lack the end-to-end optimization required to learn a coherent strategy from market feedback.

AlphaQuanter addresses these challenges with a single-agent framework that uses reinforcement learning (RL) to learn a dynamic policy over a transparent, tool-augmented decision workflow. This empowers a single agent to autonomously orchestrate tools and proactively acquire information on demand, establishing a transparent and auditable reasoning process.

Key Features

  • ๐ŸŽฏ Single-Agent Architecture: More efficient than multi-agent frameworks
  • ๐Ÿ”ง Tool-Orchestrated: Dynamic tool selection for information acquisition
  • ๐Ÿง  End-to-End RL Training: Learns coherent strategies from market feedback
  • ๐Ÿ“Š State-of-the-Art Performance: Superior returns and risk management
  • ๐Ÿ” Interpretable Reasoning: Transparent decision-making process

๐Ÿ—๏ธ Project Structure

AlphaQuanter/
โ”œโ”€โ”€ data_collection/          # Data acquisition scripts
โ””โ”€โ”€ verl/                     # Training scripts (RL framework)

๐Ÿš€ Quick Start

1. Data Collection

Use scripts in data_collection/ to gather comprehensive market data:

cd data_collection
bash collect_data.sh

See data_collection/README.md for detailed usage.

2. Training

Use the modified verl framework in verl/ for reinforcement learning training:

cd verl
python recipe/langgraph_agent/stock_trading/convert_to_pkl.py
bash recipe/langgraph_agent/stock_trading/run.sh

See verl/README.md for detailed training instructions.


๐Ÿ“Š Key Results

Evaluation on 5 Stocks

AlphaQuanter achieves state-of-the-art performance compared to existing baselines:

Key Observations:

  • โœ… Single-agent framework is superior to multi-agent frameworks
  • โœ… Prompt-based reasoning alone is insufficient for trading
  • โœ… End-to-end RL optimization significantly outperforms all baselines

Tool Usage Patterns

The agent actively learns and refines information-seeking policies:

  • 7B Model: Develops focused and selective strategy, prioritizing key technical indicators
  • Expert-like Heuristic: Prioritizes trend and volume data, using sentiment/macro as secondary signals
  • Dynamic Strategy: Proves strategies are dynamic, not static

๐Ÿ› ๏ธ Technical Details

Data Sources

  • Market Data: Historical OHLCV from Yahoo Finance and 15+ indicators via Alpha Vantage
  • Sentiment Data: News articles and Reddit posts
  • Fundamental Data: Financial statements, dividends, insider transactions
  • Macroeconomic Data: Treasury yields, Fed rates, CPI, commodities

Training Framework

  • Modified PPO trainer with backtesting capabilities based on verl
  • Tool-orchestrated decision workflow
  • End-to-end reinforcement learning optimization

๐Ÿ“ Citation

@inproceedings{deng-etal-2026-alphaquanter,
    title = "{A}lpha{Q}uanter: An End-to-End Tool-Augmented Agentic Reinforcement Learning Framework for Stock Trading",
    author = "Deng, Zheye  and
      Yan, Weixiang  and
      Yu, Changlong  and
      Wang, Jiashu",
    booktitle = "Findings of the {A}ssociation for {C}omputational {L}inguistics: {ACL} 2026",
    month = jul,
    year = "2026",
    address = "San Diego, California, United States",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2026.findings-acl.456/",
    doi = "10.18653/v1/2026.findings-acl.456",
    pages = "9373--9394",
    ISBN = "979-8-89176-395-1"
}