FinRL-Trading  by AI4Finance-Foundation

AI-native infrastructure for quantitative trading

Created 5 years ago
2,922 stars

Top 16.0% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

FinRL-X offers an AI-native, modular infrastructure for quantitative trading, modernizing the FinRL framework for LLM/agentic AI. It targets researchers and practitioners, providing a production-ready, deployment-consistent system from data processing to live execution. Its core benefit is a novel weight-centric architecture enabling seamless module swapping and unified strategy logic across backtesting and live trading.

How It Works

The system utilizes a weight-centric architecture where the target portfolio weight vector acts as the sole interface between pipeline modules: stock selection, portfolio allocation, timing, and risk overlay. This design ensures modularity and reproducibility, allowing components to be swapped without pipeline disruption. The same weight vector is consistently processed through data acquisition, strategy generation, bt-powered backtesting, and Alpaca execution.

Quick Start & Requirements

Installation uses pip install -r requirements.txt or the ./deploy.sh script. Python 3.11+ is required. Alpaca API credentials are necessary for paper/live trading, configurable via .env. A Jupyter notebook tutorial (FinRL_Full_Workflow.ipynb) and Discord community channel are available.

Highlighted Details

  • Unified Data Pipeline: Integrates Yahoo Finance, FMP, WRDS with LLM sentiment preprocessing and SQLite caching.
  • Modular Strategy Framework: Supports classical allocation, ML stock selection, and DRL allocators.
  • bt-Powered Backtesting: Robust offline evaluation with multi-benchmark comparison and transaction costs.
  • Production Execution: Alpaca multi-account integration with pre-trade risk controls.
  • Performance: Backtests show strong cumulative returns (e.g., 5.98x) and competitive paper trading results against benchmarks.

Maintenance & Community

Maintained by the AI4Finance Foundation, with community support via Discord. GitHub issues and PRs indicate active development.

Licensing & Compatibility

Released under the Apache License 2.0, permitting commercial use and integration into closed-source projects.

Limitations & Caveats

Intended for educational/research purposes; not financial advice. Manual data setup requires specific CSV formats if not using deploy.sh.

Health Check
Last Commit

2 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
1
Star History
201 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.