FinRL-Meta  by AI4Finance-Foundation

Market environment for financial reinforcement learning research

Created 4 years ago
1,660 stars

Top 25.4% on SourcePulse

GitHubView on GitHub
Project Summary

FinRL-Meta provides a comprehensive suite of dynamic market environments and benchmarks for data-driven financial reinforcement learning. It aims to simplify environment creation, reduce the simulation-reality gap, and facilitate fair comparisons for researchers and practitioners in quantitative finance.

How It Works

FinRL-Meta employs a layered architecture (data, environment, agent) with plug-and-play capabilities, allowing seamless integration of various DRL libraries like ElegantRL, Stable-Baselines3, and RLlib. It follows a DataOps paradigm for automated data processing and feature engineering across diverse financial markets and data sources, including Chinese and US equities, cryptocurrencies, and more. The "Training-Testing-Trading" pipeline ensures a structured workflow, mitigating information leakage and enabling robust backtesting and potential live trading.

Quick Start & Requirements

  • Installation: Typically via pip install -e . (from source).
  • Prerequisites: Python 3.7+, PyTorch, and specific DRL libraries. Data access may require API keys or specific software (e.g., Akshare, CCXT).
  • Resources: Requires significant disk space for datasets and computational resources (CPU/GPU) for training DRL agents.
  • Documentation: FinRL-Meta Documentation

Highlighted Details

  • Supports over a dozen data sources (e.g., Akshare, Alpaca, Binance, YahooFinance) with various frequencies and market coverage.
  • Reproduces existing research papers as benchmarks for standardized evaluation.
  • Offers a curriculum of dozens of demos and tutorials for guided learning.
  • Implements efficient data sampling using multiprocessing for accelerated DRL training.

Maintenance & Community

  • Active development with contributions from multiple researchers.
  • Associated with the FinRL project, indicating a broader ecosystem.
  • Community engagement channels are not explicitly detailed in the README, but academic citations suggest an active research community.

Licensing & Compatibility

  • License: MIT License.
  • Trademark Disclaimer: FinRL® is a registered trademark; use of the name/logo requires prior written consent.
  • Compatibility: Permissive for commercial use and closed-source linking, but trademark restrictions apply.

Limitations & Caveats

The project is research-oriented, and while it aims to reduce the sim-real gap, actual trading performance may vary. The "Training-Testing-Trading" pipeline is crucial for mitigating data leakage but requires careful implementation. Trademark restrictions on the "FinRL" name should be noted for branding.

Health Check
Last Commit

1 month ago

Responsiveness

1 week

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

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Didier Lopes Didier Lopes(Founder of OpenBB), and
5 more.

qlib by microsoft

1.4%
31k
AI platform for quantitative investment research and production
Created 5 years ago
Updated 3 days ago
Feedback? Help us improve.