Kismuz/btgym
Scalable, event-driven, deep-learning-friendly backtesting library observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3388
- days_rel: n/a
- days_push: 1831
- n_releases_24m: 0
Adoption not part of the score
1034 stars · 258 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
BTGym is a Python library that wraps the Backtrader algorithmic trading engine in an OpenAI Gym environment API, enabling event-driven backtesting of reinforcement learning agents on financial time-series data. It ships integrated deep RL algorithm implementations (A3C, UNREAL, PPO) plus data servers, custom spaces, and monitoring utilities for running trading experiments.
Use cases
- backtest trading strategies with reinforcement learning agents
- train A3C or PPO agents on historical market data
- build a gym environment for algorithmic trading research
- run deep RL experiments on non-stationary financial time series
- simulate event-driven trading episodes from CSV price data
- research statistical arbitrage with policy gradient methods
When to choose
- you want to apply deep reinforcement learning to trading strategy research
- you need a gym-compatible backtesting environment built on Backtrader
- you want integrated A3C, UNREAL, or PPO implementations for market experiments
- you are comfortable with RL theory and Python and need a research-grade framework
When to avoid
- you need a production-ready or out-of-the-box profitable trading system
- you want a polished end-user experience without RL or programming background
- you need actively maintained software - the last release was in 2021 and the code is explicitly research grade
- you only need conventional backtesting without reinforcement learning - plain Backtrader may suffice
Facets
library · maturity maintenance
reinforcement-learning simulation trading machine-learning deep-learning gpu-computing data-science reinforcement-learning machine-learning deep-learning artificial-intelligence fintech time-series data-science python backtesting openai-gym backtrader algorithmic-trading a3c unreal ppo policy-gradient actor-critic gym-environment quantitative-finance statistical-arbitrage event-driven trading-strategies financial-markets research-framework tensorboard distributed-training asynchronous-rl market-data time-series algorithms linux gpu tensorflow
2 sources
- readme: https://github.com/Kismuz/btgym · fetched 2026-08-28 · 984ad56df8c3
- homepage: https://kismuz.github.io/btgym/ · fetched 2026-08-29 · da8ddfd0d284
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Kismuz/btgym | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem