Home / LLM agents & research

Yvictor/TradingGym

LLM agents & research★ 1,917 GitHub starsPython⏱ No commits in over six months

Gym-style environment for reinforcement learning trading and backtesting

What it is

A Python toolkit, inspired by OpenAI Gym, for training and backtesting reinforcement learning trading agents or simple rule-based algorithms. The environment is designed for tick data but also supports OHLC data, with configurable parameters such as fee, max position, and feature columns, and it produces detailed transaction logs during backtests. It fits researchers and developers experimenting with RL-based trading strategies in Python. The project is a work in progress, with several listed training methods and a realtime trading environment still unimplemented.

At a glance

Research onlyOur rating, based on popularity, maintenance and how ready it is for real use.

Best forDevelopers
Used forBacktesting, Strategy research
MarketsMulti-market
StackPython
Learning curveModerate learning curve
Practical valueMedium practical value
CostFree and open source
HardwareNo GPU needed
MaintenanceNo commits in over six months

GitHub stars, last 30 days

Daily snapshots since 2026-09-12 (up to 30 days): +3 over the period, now 1,923. Gaps mean no snapshot was taken that day.

In the author's words

Trading and Backtesting environment for training reinforcement learning agent or simple rule base algo.

Open on GitHub ↗This week's trending tools中文页面

Similar tools