Home / Backtesting & trading frameworks
PyBroker
Python algorithmic trading framework with machine learning support
What it is
A Python framework for developing algorithmic trading strategies, with a focus on strategies that use machine learning. It offers a fast backtesting engine built on NumPy and Numba, walkforward analysis for model training, parameter optimization with Optuna, bootstrap-based evaluation metrics, and historical data from Alpaca, Yahoo Finance, AKShare, or custom providers. The framework suits quants and developers who want to write rules-based or model-based strategies across multiple instruments and time intervals in Python. Full use of its data integrations may require accounts with those providers, and the machine learning focus means users need some familiarity with building and training models.
At a glance
Worth watchingOur rating, based on popularity, maintenance and how ready it is for real use.
| Best for | Developers |
|---|---|
| Used for | Backtesting, Strategy research |
| Markets | Multi-market |
| Stack | Python |
| Learning curve | Moderate learning curve |
| Practical value | Medium practical value |
| Cost | Free and open source |
| Hardware | No GPU needed |
| Maintenance | Last commit 6 days ago |
GitHub stars, last 30 days
Daily snapshots since 2026-09-12 (up to 30 days): +67 over the period, now 3,604. Gaps mean no snapshot was taken that day.
Algorithmic Trading with Machine Learning.
Similar tools
Deep reinforcement learning library for automated quantitative trading
Python backtesting and live trading platform for strategies
Fast limit order book simulator for trading strategy research
Python reinforcement learning framework for training trading agents
Modular schedule-driven backtesting engine for equities and ETFs
Gym-style environment for reinforcement learning trading and backtesting