polakowo/vectorbt

AlgoScore
84
Use it
★10k
Forks1.4k
Issues+PR137
Push6 d
License—

Editorial verdict Use itchecked 05.12.2026

What it is good at

Entry and exit signals are plain pandas and NumPy arrays, and the portfolio simulation runs in compiled Numba code. That makes a full parameter grid, say every fast and slow moving average pair across ten coins, a single call that returns a table where each column is one strategy variant. Since version 1.0 (April 2026) there is an optional Rust engine: install vectorbt[rust] and it dispatches automatically, falling back to Numba for calls it does not cover. The library ships indicators, signal generators, stop-loss and take-profit logic, return and drawdown metrics, and interactive charts. Releases land almost monthly: 1.2.2 came out on 28 November 2026, and recent commits fix metrics and cut peak memory on large parameter grids.

Weak spots

The vectorized model suits close-of-bar signals and struggles with logic that depends on position state, partial fills or the order book. The README explicitly reserves limit orders, leverage and futures contract multipliers for the paid VectorBT PRO, along with parallelization, portfolio optimization and cross-validation. The license is Apache 2.0 with the Commons Clause: free to use, but you may not sell a product or service whose value comes mostly from vectorbt. Raw speed invites overfitting, since a thousand variants on one price history will almost always produce a flattering winner. Open issues currently cover a missed first-period drawdown and crashes on calendar-gapped indexes.

Who it is for

Researchers who want to test an idea across dozens of coins and hundreds of parameter combinations before writing a bot. Best for people already fluent in pandas and Jupyter. Live execution needs a separate layer such as ccxt.

Versus alternatives

Compared with backtesting.py it scales far better: multiple assets, parameter grids and whole portfolios in one table, at the cost of a steeper learning curve and less transparent bar-by-bar logic. NautilusTrader and backtrader are event-driven, slower for brute-force sweeps but natural for order and state modelling, and Nautilus also trades live. backtrader has not been updated since August 2024. For a commercial service, the LGPL of Nautilus is more permissive than the Commons Clause here.

  • Latest release v1.2.2 — 28 Nov 2026
  • v1.0.0 (22 Apr 2026) added the optional Rust engine
  • License: Apache 2.0 + Commons Clause (fair-code)
  • Limit orders and leverage are VectorBT PRO only
  • Install: pip install vectorbt

Stars by day

Our star series started 05.12.2026: the chart appears after the second snapshot.

GitHub dataGitHub ↗

TopicAlgo trading & backtesting
LanguagePython
Created14.11.2017
Last release28.11.2026
Releases / tags9 / —
Contributors39
Commits total / 90d1.2k / 88
Watchers135

AlgoScore breakdownmethodology →

Popularity16.5/20
Freshness20/20
Community15.8/20
Maturity11/15
Momentum—
Usage—

Topic neighboursAlgo trading & backtesting →

#RepositoryAlgoScore★30d growthPushLabel
1 nautechsystems/nautilus_traderProduction-grade Rust-native trading engine with deterministic event-driven architecture 90 32k — today Use it
2 vnpy/vnpy基于Python的开源量化交易平台开发框架 87 47k — 24 d
3 coding-kitties/investing-algorithm-frameworkFramework for quantitative trading. Complete framework for development, backtesting, and deploying automated trading algorithms and trading bots. 87 2.3k — 1 d
4 microsoft/qlibQlib is an AI-oriented Quant investment platform that aims to use AI tech to empower Quant Research, from exploring ideas to implementing productions. Qlib supports diverse ML modeling paradigms, including supervised learning, market dynamics modeling, and RL, and is now equipped with https://github 85 51k — today For research
5 QuantConnect/LeanLean Algorithmic Trading Engine by QuantConnect (Python, C#) 85 23k — today Use it
6 pst-group/pysystemtradeSystematic Trading in python 85 3.7k — 33 d
7 stefan-jansen/machine-learning-for-tradingCode for Machine Learning for Trading, 3rd edition — from data sourcing to live execution. 84 22k — today
8 skfolio/skfolioPython library for portfolio optimization and risk models, built on scikit-learn 84 2.7k — 1 d