edtechre/pybroker

Algorithmic Trading in Python with Machine Learning

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 7 minutes ago
Added to GitGenius on September 19th, 2026
Created on January 16th, 2023
Open Issues & Pull Requests: 7 (+0)
GitHub issues: Enabled
Number of forks: 453
Total Stargazers: 3,543 (+0)
Total Subscribers: 44 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.3 days
Mean response time: 9.8 days
90th percentile: 25.1 days
Tracked items: 63

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

PyBroker is a Python framework for developing algorithmic trading strategies that leverage machine learning.

The framework addresses the challenge of building, testing, and optimizing trading strategies by combining backtesting capabilities with machine learning integration. It provides a backtesting engine built on NumPy and accelerated with Numba for performance, allowing developers to define trading rules and models that execute across multiple instruments. The tool supports walkforward analysis to simulate realistic strategy performance during actual trading, and includes bootstrapping-based metrics for more reliable performance evaluation. Developers can access historical data from multiple sources including Alpaca, Yahoo Finance, and AKShare, or integrate custom data providers. Parameter optimization through Optuna helps identify the best strategy parameters, while caching and parallelized computation speed up the development workflow.

PyBroker suits developers and quantitative traders who want to incorporate machine learning into their trading strategies rather than relying solely on rule-based approaches. It works well for those backtesting strategies across stocks and cryptocurrencies who need both rapid iteration and statistically sound performance metrics. The framework is particularly valuable for traders who want to experiment with multiple time intervals simultaneously, from daily to monthly signals, and who benefit from automated parameter tuning.

The project shows consistent development activity with regular updates to its codebase. The maintainers actively expand the framework's capabilities, as evidenced by ongoing additions to core functionality. Documentation is comprehensive and maintained alongside the code, with detailed notebooks covering key workflows from basic setup through advanced techniques like parameter optimization and parallelization. The project includes integration with external tools like Optuna for hyperparameter tuning and supports emerging use cases such as AI agent skills for strategy generation.