A modular Python quant trading framework covering stock selection, portfolio allocation, backtesting and Alpaca broker execution with one weight-based interface.
AI4Finance-Foundation/FinRL-Meta
A market environment and benchmark layer for financial reinforcement learning, providing market datasets and trading environments for developing and comparing DRL trading agents.
- Stars
- 1,960
- Forks
- 754
- Open issues
- 80
- Last commit
- 26 days ago
Repolode describes open-source projects and does not give investment advice. Trading and investing can lose money: assess the risk yourself and follow the laws where you live before using this project.
What is it?
FinRL-Meta is the market environment and benchmark component of the FinRL ecosystem. It collects historical market data from many sources and turns it into trading environments that reinforcement learning agents can train and be tested in. Users can compare different agents on the same dataset, which the project positions as a way to make evaluations fairer.
The project covers a data layer that fetches and preprocesses prices and technical indicators from providers such as Alpaca, Binance, Yahoo Finance, Tushare and Baostock, and an environment layer that wraps this data for DRL training. Agents from ElegantRL, Stable-Baselines3 and RLlib can be plugged into the environments directly. It also describes a training, testing and trading pipeline that separates training periods from evaluation periods to reduce information leakage.
FinRL-Meta focuses on the data and environment layers rather than full production deployment. For production-oriented trading infrastructure, the maintainers point to the separate FinRL-X / FinRL-Trading project.
Key features
- 01Fetches OHLCV market data from multiple providers including Alpaca, Binance, and Yahoo Finance.
- 02Computes technical indicators such as MACD, Bollinger Bands, and RSI as features.
- 03Provides market environments that DRL agents can train and test against.
- 04Plugs into ElegantRL, Stable-Baselines3, and RLlib agents.
- 05Separates training, testing, and trading periods to reduce information leakage.
Use cases
- Benchmarking several DRL algorithms on the same financial dataset.
- Researching reinforcement learning for trading across US, China, and crypto markets.
- Building custom market environments with user-defined features.
- Prototyping trading agents before connecting them to paper or live trading APIs.
Quick start
- 1
Open the Plug and Play with DRL Agents demo notebook on Colab
Things to know
- The README gives no installation instructions, so setup requires working it out from the code.
- Several data sources need account-specific API access, and the README says the project is a research benchmark layer rather than a production trading stack.
In collections
Topics
FAQ
- What is FinRL-Meta?
- A market environment and benchmark layer for financial reinforcement learning, providing market datasets and trading environments for developing and comparing DRL trading agents. FinRL-Meta is the market environment and benchmark component of the FinRL ecosystem. It collects historical market data from many sources and turns it into trading environments that reinforcement learning agents can train and be tested in. Users can compare different agents on the same dataset, which the project positions as a way to make evaluations fairer.
- Is FinRL-Meta free to use? What license does it have?
- FinRL-Meta is open source under the MIT license. Check the license terms before using it in commercial products.
- Is FinRL-Meta still maintained?
- Actively maintained. The last commit to FinRL-Meta was on Oct 12, 2026.
- What can I use FinRL-Meta for?
- Benchmarking several DRL algorithms on the same financial dataset. Researching reinforcement learning for trading across US, China, and crypto markets. Building custom market environments with user-defined features. Prototyping trading agents before connecting them to paper or live trading APIs.
- How do I install FinRL-Meta?
- Open the Plug and Play with DRL Agents demo notebook on Colab
- Where can I get FinRL-Meta?
- The source code and installation instructions are on GitHub: https://github.com/AI4Finance-Foundation/FinRL-Meta
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
AI-oriented quantitative investment platform from Microsoft covering data, model training, backtesting and order execution for quant research.
LLM-driven stock analysis system covering A-shares, HK, US, JP, KR and Taiwan stocks, pushing daily decision dashboards to chat apps and email.
An open-source Python framework for applying deep reinforcement learning to automated stock trading and portfolio tasks.
Unity ML-Agents Toolkit lets Unity games and simulations serve as environments for training AI agents with reinforcement and imitation learning.
Python framework for quantitative trading that covers strategy definition, vector and event-driven backtesting, result dashboards, and paper or live trading.