Home / Backtesting & trading frameworks

PyBroker

Backtesting & trading frameworks★ 3,604 GitHub starsPython⏱ Last commit 6 days ago

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 forDevelopers
Used forBacktesting, Strategy research
MarketsMulti-market
StackPython
Learning curveModerate learning curve
Practical valueMedium practical value
CostFree and open source
HardwareNo GPU needed
MaintenanceLast 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.

In the author's words

Algorithmic Trading with Machine Learning.

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

Similar tools