
FinRL
DRL framework for quantitative trading research and backtesting.
Replaces Qraft Technologies Axe

Who it's for
FinRL provides the standard benchmark environments and agent implementations (A2C, DDPG, PPO, SAC, TD3) that financial RL papers reference. Running FinRL's DOW 30 stock trading example gives a reproducible baseline comparable to published results, which simplifies the experimental setup section.
You need production-level risk controls, type-safe configuration, or multi-account live trading. FinRL-X (FinRL-Trading) is the production path.
The train-test-trade tutorial downloads DOW 30 data from Yahoo Finance, trains five DRL agents with Stable Baselines 3, and backtests against MVO and the DJIA in three scripts. No paid data subscription is required for the tutorial path.
You need a production deployment or a system your team can operate without Python expertise. FinRL requires Python proficiency and comfort with Jupyter notebooks.
FinRL's gym-compatible environments let developers test a strategy idea against historical data before committing to a full infrastructure build. The five included DRL agents provide baselines; a custom agent can be added by implementing the same Gym interface.
You are past prototyping and need live trading, risk management, and institutional data access. FinRL-X, recommended for production use by the AI4Finance Foundation, serves those needs.
The problem
Building automated trading strategies with deep reinforcement learning normally requires connecting incompatible libraries: one for market data, another for environment simulation, and a third for agent training. Researchers at universities and developers at smaller quant firms often lack the infrastructure access that makes production DRL systems feasible. The practical barriers compound: gym-compatible market environments, multiple DRL algorithms (A2C, PPO, DDPG, SAC, TD3), backtesting evaluation, and 14+ data sources all need to work together without manual wiring. Existing commercial platforms charge for access to this integration while keeping the underlying algorithm opaque, which prevents academic researchers from publishing reproducible results or experimenting with new DRL methods.
How it works
Three-stage workflow covering data download and preprocessing, DRL agent training across five algorithms (A2C, DDPG, PPO, SAC, TD3), and live or simulated trading evaluation. The pipeline structure makes results reproducible across experiments.
Connects to 14+ data sources including Yahoo Finance, Alpaca, Binance, Baostock, CCXT, WRDS, and QuantConnect, covering US equities, Chinese securities, cryptocurrencies, Taiwan stocks, and FX. Data comes preprocessed with technical indicators including MACD, RSI, Bollinger Bands, and SMA.
Market environments follow the OpenAI Gym interface for stock trading, portfolio allocation, and cryptocurrency trading. Any Gym-compatible DRL library works with FinRL's environments without modification, making it straightforward to swap in custom agents.
Pre-built application modules cover stock trading, portfolio allocation, cryptocurrency trading, high-frequency trading, and imitation learning. Each application ships with Jupyter notebook tutorials demonstrating the train-test-trade workflow.
Automatically computes MACD, RSI, Bollinger Bands, and SMA at configurable windows (30-day, 60-day) from raw OHLCV data. Turbulence index and VIX are also included for risk-aware training.
Features
- Train-Test-Trade Pipeline
- 14+ Market Data Sources
- OpenAI Gym-Compatible Market Environments
- Multiple Trading Application Modules
- Automatic Technical Indicator Computation
How to install
Install FinRL with pip inside a Python virtual environment.
pip install finrlRecommended for this setup
Strengths
- Academic Credibility with 275+ Citations: The core FinRL paper (NeurIPS 2020 Workshop) has 275+ citations, with the ensemble strategy paper reaching 426 citations. This makes FinRL the standard benchmark for financial RL research, which matters when publishing results or comparing against baselines. Papers like FinRL-Meta (136 citations, NeurIPS 2022) reinforce its standing in the field.
- MIT License with No Deployment Restrictions: The MIT license allows any use, including commercial and institutional deployment, without licensing fees or attribution requirements beyond the copyright notice. Unlike proprietary platforms that charge per-seat or subscription fees, FinRL has no cost beyond compute and data source accounts.
- Active AI4Finance Ecosystem: The AI4Finance Foundation maintains related projects including FinRL-Meta for standardized market environments, FinRL-X (FinRL-Trading) for production deployment, and FinGPT for financial language model integration. Research done with classic FinRL can migrate to the production stack via FinRL-X without discarding the core design.
Trade-offs
- Classic FinRL Is for Research, Not Production: The README explicitly states this repository is for 'education, benchmarking, and research prototyping.' The AI4Finance Foundation recommends FinRL-X (FinRL-Trading) for production use, as it adds modular deployment, risk controls at order and portfolio levels, and type-safe Pydantic configuration. Using classic FinRL for live trading without additional engineering is not documented.
- 284 Open Issues and Research-Grade Packaging: With 284 open issues and Jupyter Notebook as the primary language, the codebase reflects its research origins. CI coverage, error handling, and production-grade packaging are thinner than in deployment-oriented frameworks. Teams expecting library-grade reliability should evaluate FinRL-X.
- Data Source Credentials Required for Most Sources: Most of the 14+ supported data sources require separate API accounts and have account-specific rate limits. Only Yahoo Finance is usable without credentials. Managing authentication and rate limiting across Alpaca, WRDS, Baostock, and others is the user's responsibility; no unified data layer handles it.
Tech stack
FAQ
The main FinRL repository is documented as an educational and research framework; the README explicitly recommends FinRL-X (FinRL-Trading) for production use. FinRL-X adds modular deployment, multi-account live trading, and risk controls that classic FinRL lacks. If you need live trading, learn the pipeline with FinRL, then evaluate FinRL-X for the production path.
FinRL supports five algorithms via Stable Baselines 3: Advantage Actor-Critic (A2C), Deep Deterministic Policy Gradient (DDPG), Proximal Policy Optimization (PPO), Soft Actor-Critic (SAC), and Twin Delayed DDPG (TD3). All five share a common interface so they can be swapped in the same training loop without changing the environment code.
FinRL connects to 14+ data sources including Yahoo Finance, Alpaca, Binance, Baostock, CCXT, IEXCloud, JoinQuant, QuantConnect, WRDS, and Tushare, covering US equities, Chinese securities, cryptocurrencies, Taiwan stocks, and FX. Yahoo Finance is the only source usable without an API account. All others require separate credentials with account-specific rate limits.
FinRL is MIT licensed, which allows any use including commercial and institutional applications. You can run it, modify it, and distribute modified versions without additional conditions beyond preserving the copyright notice. There are no per-seat fees, subscription costs, or usage restrictions.
FinRL is the classic framework for research and prototyping, using a three-layer coupled architecture with 14 manually-wired data processors. FinRL-X adds fully decoupled modular layers, type-safe Pydantic configuration, the bt backtesting library, full multi-account live trading, and risk controls at order, portfolio, and strategy levels. The AI4Finance Foundation recommends FinRL-X for anyone building production trading systems.