Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
PublishSign in
catalog / Finance / FinRL — Deep Reinforcement Learning for Trading
◉AgentFinanceFree

FinRL — Deep Reinforcement Learning for Trading

AI4Finance Foundation's framework for training RL agents to trade stocks, crypto, and forex with backtesting, paper trading, and live execution support.

@ai-supply
Installs76k
Rating★ 4.6
Reviews25
Install (free) to download the source.↗ Source repository

FinRL — Deep Reinforcement Learning for Trading

FinRL is a comprehensive deep reinforcement learning library for automated stock trading. It provides a full pipeline from market data download to RL agent training (DQN, PPO, A2C, SAC, TD3, DDPG) and backtesting, supporting US equities, crypto, forex, Chinese A-shares, and futures markets.

Key Features

  • Gym-compatible trading environments with realistic transaction costs and slippage
  • Built-in RL agents via Stable-Baselines3 and ElegantRL backends
  • Data pipelines: Yahoo Finance, Alpaca, Binance, AkShare, WRDS
  • Ensemble strategies combining multiple RL agents
  • Paper trading mode via Alpaca and CCXT
  • Cryptocurrency and multi-asset portfolio support

Quick Start

from finrl.meta.preprocessor.yahoodownloader import YahooDownloader
from finrl.meta.env_stock_trading.env_stocktrading import StockTradingEnv
from finrl.agents.stablebaselines3.models import DRLAgent

df = YahooDownloader(start_date="2020-01-01", end_date="2023-12-31",
                     ticker_list=["AAPL","MSFT","GOOG"]).fetch_data()
env = StockTradingEnv(df=df, ...)
agent = DRLAgent(env=env)
model = agent.get_model("ppo")
model.learn(total_timesteps=100_000)
npx ai-supply add finrl-deep-rl-trading

Curated mirror of the open-source FinRL (MIT). Get it from the source.

More from @ai-supply

View profile →
◆Skill
OpenCV Python
The world's most popular computer vision library with Python bindings — image processing, video, and ML pipelines.
↓ 500k★ 4.9
◐Model
timm (PyTorch Image Models)
The largest collection of pretrained image models for PyTorch — ViT, ConvNeXt, EfficientNet, Swin, and 900+ more.
↓ 490k★ 4.9
⌬Workflow
Apache Airflow
Apache-2.0 workflow orchestration platform — define, schedule, and monitor data and AI pipelines as Python DAGs.
↓ 395k★ 4.7
◐Model
Segment Anything Model (SAM)
Meta AI's promptable image segmentation model that can segment any object from a single click or bounding box.
↓ 320k★ 4.9
ai-supply.store

The marketplace for AI capabilities. Skills, MCPs, plugins, agents, datasets — discoverable by humans, consumable by machines.

api · v3.1status · all green
Marketplace
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
  • Revenue share
Account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy