# FinRL: Financial Reinforcement Learning Framework for Automated Trading

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Source: osrepos.com
Repository profile: https://osrepos.com/repo/ai4finance-foundation-finrl
Generated for open source discovery and AI-assisted research.

FinRL is the first open-source framework for financial reinforcement learning, providing an ecosystem for automated trading in quantitative finance. It offers a comprehensive pipeline, various DRL algorithms, and support for multiple market environments and data sources, making it a powerful tool for researchers and practitioners.

GitHub: https://github.com/AI4Finance-Foundation/FinRL
OSRepos URL: https://osrepos.com/repo/ai4finance-foundation-finrl

## Summary

FinRL is the first open-source framework for financial reinforcement learning, providing an ecosystem for automated trading in quantitative finance. It offers a comprehensive pipeline, various DRL algorithms, and support for multiple market environments and data sources, making it a powerful tool for researchers and practitioners.

## Topics

- financial reinforcement learning
- algorithmic trading
- deep reinforcement learning
- fintech
- stock trading
- DRL framework
- Jupyter Notebook
- AI in finance

## Repository Information

Last analyzed by OSRepos: Sun Oct 12 2025 21:01:25 GMT+0100 (Western European Summer Time)
Detail views: 22
GitHub clicks: 7

## Safety Notice

OSRepos shares public repositories for knowledge and discovery only. Review source code, dependencies, licenses, and security implications before running or installing anything.

## Content

## Introduction

FinRL is a pioneering open-source framework dedicated to financial reinforcement learning, offering a robust ecosystem for automated trading in quantitative finance. Developed by the AI4Finance-Foundation, FinRL provides a comprehensive, three-layered architecture encompassing market environments, intelligent agents, and diverse financial applications. With over 12,800 stars and 2,900 forks on GitHub, it serves as a vital resource for researchers and practitioners exploring the intersection of AI and finance.

## Installation

Getting started with FinRL is designed to be straightforward. You can install the library via pip:

bash
pip install finrl


For detailed installation instructions across various operating systems, including macOS, Ubuntu, and Windows 10, please refer to the official documentation: [FinRL Installation Guide](https://finrl.readthedocs.io/en/latest/start/installation.html){target="_blank"}.

## Examples

FinRL provides numerous tutorials and examples to help users understand and implement deep reinforcement learning strategies for financial tasks. A quick start can be found in `Stock_NeurIPS2018.ipynb`, demonstrating a basic stock trading application. Key tutorials include:

*   [Deep Reinforcement Learning for Automated Stock Trading](https://towardsdatascience.com/deep-reinforcement-learning-for-automated-stock-trading-f1dad0126a02){target="_blank"}
*   Various examples within the repository's `examples` folder, covering cryptocurrency trading, portfolio allocation, and high-frequency trading.

## Why Use FinRL?

FinRL stands out as a leading platform for several reasons:

*   **First Open-Source Framework:** It was the first open-source framework for financial reinforcement learning, establishing a benchmark in the field.
*   **Comprehensive Ecosystem:** FinRL has evolved into a broader ecosystem, including projects like FinRL-Meta for gym-style market environments and ElegantRL for advanced DRL algorithms.
*   **Automated Pipeline:** It offers an automatic `train-test-trade` pipeline, simplifying the development and deployment of trading strategies.
*   **Extensive Data Support:** The framework supports a wide array of data sources, including YahooFinance, Alpaca, Binance, and many more, providing flexibility for diverse financial markets.
*   **Robust Algorithms:** Integrates popular DRL libraries such as Stable Baselines3 and Ray RLlib, allowing users to leverage state-of-the-art algorithms.
*   **Strong Academic Backing:** Supported by numerous publications in top-tier conferences and journals, demonstrating its scientific rigor and practical applicability.

## Links

*   **GitHub Repository:** [https://github.com/AI4Finance-Foundation/FinRL](https://github.com/AI4Finance-Foundation/FinRL){target="_blank"}
*   **Official Documentation:** [https://finrl.readthedocs.io/en/latest/index.html](https://finrl.readthedocs.io/en/latest/index.html){target="_blank"}
*   **PyPI Project:** [https://pypi.org/project/finrl/](https://pypi.org/project/finrl/){target="_blank"}