tensortrade-org/tensortrade

An open source reinforcement learning framework for training, evaluating, and deploying robust trading agents.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 60 minutes ago
Added to GitGenius on September 9th, 2026
Created on July 30th, 2019
Open Issues & Pull Requests: 49 (+0)
GitHub issues: Enabled
Number of forks: 1,319
Total Stargazers: 7,111 (+0)
Total Subscribers: 246 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 92.7 days
Mean response time: 331.9 days
90th percentile: 1218.5 days
Tracked items: 15

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 121 days
Stale 30+ days: 2
Stale 90+ days: 1

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

TensorTrade is a reinforcement learning framework for training, evaluating, and deploying trading agents.

The framework addresses the challenge of building and testing algorithmic trading systems powered by reinforcement learning. It provides composable, configurable components including action schemes that convert agent outputs to trading orders, reward schemes that define learning signals, observers that generate feature observations, and exchange simulators that handle order execution with realistic commission costs. Developers combine these components to create custom trading environments and train RL agents against historical market data.

TensorTrade suits researchers and practitioners exploring whether RL agents can outperform passive buy-and-hold strategies. The framework is particularly valuable for those who need to experiment with different reward formulations, action spaces, and feature engineering approaches without building infrastructure from scratch. It integrates with Ray RLlib for distributed training and Optuna for hyperparameter optimization. The project includes extensive tutorials covering both reinforcement learning and trading fundamentals, addressing the gap between practitioners who know one domain but not the other. The research findings documented in the repository show that while agents can demonstrate directional prediction capability in zero-commission scenarios, commission costs present a significant practical challenge that exceeds prediction profits in realistic trading conditions.

Development activity shows consistent engagement with the codebase through regular updates and maintenance. The project maintains comprehensive documentation including detailed tutorials structured across foundations, domain knowledge, core components, training approaches, and advanced topics like overfitting detection and walk-forward validation. Research methodology is transparent, with full experimental documentation and analysis of what works and what fails in training trading agents. The framework actively addresses practical concerns such as commission analysis and common failure modes rather than presenting idealized results.