# tensortrade-org/tensortrade

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

Repository: https://github.com/tensortrade-org/tensortrade
Canonical: https://ross.abutalabs.com/products/tensortrade
Homepage: https://discord.gg/ZZ7BGWh
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-02-19T16:21:00+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 68, release rhythm 37, longevity 100
- inputs: {"age_days": 2591, "days_push": 195, "days_rel": 208, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7067, forks 1316 (observed 2026-08-28T04:09:55.652593+00:00)

## What it is
TensorTrade is an open-source Python framework for building, training, and evaluating reinforcement learning agents for algorithmic trading. It provides composable components such as environments, action schemes, reward functions, and data feeds that can be combined to create custom trading systems.

## Use cases
- train RL agents to trade stocks or crypto
- backtest reinforcement learning trading strategies
- compare trading agents against buy-and-hold
- build custom trading environments with reward functions
- tune hyperparameters of trading agents with Optuna
- deploy robust algorithmic trading agents

## When to choose
- you want to apply reinforcement learning to trading with a composable Python framework
- you need prebuilt trading environments, action schemes, and reward schemes
- you plan to train agents with Ray RLlib and Optuna

## When to avoid
- you need a production-ready trading bot with guaranteed profits
- you want a simple backtesting library without RL
- you need a framework in a language other than Python

## Facets
- artifact type: framework
- maturity: active
- function: reinforcement-learning, machine-learning, trading, data-science
- domain: machine-learning, reinforcement-learning, fintech, data-science
- platform: python, cross-platform
- tags: algorithmic-trading, trading-agents, ray-rllib, optuna, financial-markets

## Member repositories
- tensortrade-org/tensortrade (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:55.652593+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:40:28.419298+00:00, confidence not recorded.
  - readme: https://github.com/tensortrade-org/tensortrade (fetched 2026-08-28T04:09:55.652593+00:00, sha 2392e75b5a16)
  - homepage: https://discord.gg/ZZ7BGWh (fetched 2026-08-29T08:36:03.900236+00:00, sha d1accb9f34db)
  - registry_pypi: https://pypi.org/pypi/tensortrade/json (fetched 2026-08-29T08:36:03.909419+00:00, sha 7dc719cfb7d3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
