#9898th of 105 in ML frameworks and librariesFor finance and business, trading, stocks and crypto, finance and accounting

tensortrade

Python framework for training reinforcement learning agents on trading environments

Stars
7.2k
License
Apache-2.0
Last commit
Feb 2026
Last release
Feb 2026
Language
Python

Missed the latest GitHub check; these facts may be older.

Overview

TensorTrade provides composable pieces for RL trading: environments, action schemes (default Buy/Sell/Hold), reward schemes (default Position-Based Returns), observers, data feeds, and a simulated exchange with configurable commission. Training scripts use Ray RLlib and Optuna. The README reports PPO agents on BTC/USD beating buy-and-hold at 0% commission but losing at 0.1%.

Who it is for: Researchers and quants experimenting with RL for algorithmic trading in Python

Strengths

  • Swappable action, reward, observer and exchange components with documented defaults
  • Example scripts for Ray RLlib training and Optuna hyperparameter search
  • Tutorial curriculum plus a published experiments log with negative results
  • Simulated exchange has configurable commission for testing cost sensitivity

Weaknesses

  • README results show the agent losing to buy-and-hold at 0.1% commission
  • Python version stated inconsistently: 3.12+ in badge and quick start, 3.11 or 3.12 in install
  • Simulation only; README describes no live trading or broker integration
  • Install pins and TensorFlow/NumPy conflicts are listed in troubleshooting

What it needs

  • GPU optional
  • Docker
  • Needs Ray RLlib, Optuna, TensorFlow, Jupyter
  • Models: PPO

Also in ML frameworks and libraries

See all 105
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks168k starsApache-2.094 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd for deep learning105k starscustom license94 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models62.7k starsAGPL-3.093 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and reference training scripts37.2k starsApache-2.092 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.3k starsMIT91 out of 100