AI4Finance-Foundation/FinRL

AlgoScore
88
Educational
★17k
Forks3.7k
Issues+PR325
Push8 d
LicenseMIT

Editorial verdict Educationalchecked 05.12.2026

What it is good at

The first major open-source reinforcement learning library for finance, with an academic paper behind it (arXiv:2011.09607). It has three layers: Gym-style market environments, A2C, DDPG, PPO, SAC and TD3 agents on Stable Baselines 3, and applications such as stock trading, portfolio allocation and crypto. The 2026 tutorial pipeline takes three scripts to download the Dow 30 from Yahoo, add MACD, RSI, VIX and a turbulence index, train five agents on 2014–2025 and compare them on early 2026 against mean-variance optimisation and the DJIA. Fourteen data processors, CCXT and Alpaca among them, plus dozens of notebooks make it a convenient sandbox for a course or a thesis. Commits keep coming: November 2026 brought Gymnasium compatibility and Alpaca bar alignment fixes.

Weak spots

The authors themselves describe this repository as educational and point production users to FinRL-X. The biggest risk is future leakage: an issue opened on 2 December 2026 shows that .bfill() in the Yahoo processor and in the fundamental strategy copies future prices and quarterly reports into earlier dates, and an older report about the same line is still open. Another finding from the tracker: CryptoEnv.reset() kept accumulated reward between episodes. Attractive equity curves from tutorials on a short test window can easily turn out to be overfitting.

Who it is for

Students and researchers exploring RL for trading who want a working data, environment, agent and backtest pipeline quickly. For a trader, a way to check whether an RL agent beats simple rebalancing on their own data.

Versus alternatives

AI4Finance-Foundation/FinRL-Trading (FinRL-X) is the successor, with a modular architecture, backtests on the bt library and order- and portfolio-level risk controls. ElegantRL is the same team's lightweight algorithm layer. virattt/ai-hedge-fund takes the LLM-agent route and is easier to read. FinRL wins on the sheer volume of learning material.

Security

Live trading in FinRL goes through Alpaca using broker API keys. Start with an Alpaca paper account and separate paper keys, never commit config files with keys to a public fork, and install the finrl package only from PyPI via the README link.

  • Last release v0.3.8 — 20 Mar 2026
  • More than 3,300 commits and 140 contributors
  • Look-ahead issue via .bfill() opened on 2 Dec 2026
  • Production successor: FinRL-X (FinRL-Trading)
  • MIT license

Stars by day

Our star series started 05.12.2026: the chart appears after the second snapshot.

GitHub dataGitHub ↗

TopicAI trading agents
LanguageJupyter Notebook
Created26.07.2020
Last release20.03.2026
Releases / tags1 / —
Contributors142
Commits total / 90d3.3k / 46
Watchers233

AlgoScore breakdownmethodology →

Popularity18/20
Freshness16.2/20
Community19.5/20
Maturity12.3/15
Momentum—
Usage—

Topic neighboursAI trading agents →

#RepositoryAlgoScore★30d growthPushLabel
1 Lumiwealth/lumibotPython trading framework with AI agents that actually place the trade. Backtest, paper and live trade on 12 brokers: stocks, options, futures, forex, crypto and prediction markets. 90 2.3k — today
2 elizaOS/elizaOpen source agentic operating system 88 20k — today
3 TauricResearch/TradingAgentsTradingAgents: Towards Agentic Finance Research 87 125k — today For research
4 HKUDS/Vibe-Trading"Vibe-Trading: Your Personal Trading Agent" 87 40k — today
5 TNT-Likely/PanWatchPanWatch — AI stock monitoring for A-shares, HK & US markets, powered by TradingAgents. Portfolio insights, real-time alerts & automated reports.|盯盘侠:覆盖 A股/港股/美股的 AI 盯盘、持仓分析、实时提醒与自动报告。 87 2.6k — 1 d
6 HammerGPT/Hyper-Alpha-ArenaAI Trading platform for Hyperliquid & Binance Futures AI 自动交易平台,支持 Hyperliquid 和币安合约 86 1.2k — 31 d
7 alpacahq/alpaca-mcp-serverAlpaca’s official MCP Server lets you trade stocks, ETFs, crypto, and options, run data analysis, and build strategies in plain English directly from your favorite LLM tools and IDEs 86 1.2k — 10 d
8 virattt/ai-hedge-fundAn AI Hedge Fund Team 85 65k — 25 d Educational