Markets and trading · Edition No. 31 · 25 Sep 2026

polakowo/vectorbt

It runs thousands of variations of a trading rule over past prices at once.

← Markets and tradingRead the whole edition →

9k stars · Apache-2.0 + Commons Clause · v1.1.0 (2026-07-05) · Track this in Scout

Vectorised backtester — sweeps thousands of parameter combinations at once instead of one at a time.

▶Repo detailsthe review · specs · pros & cons · install

What it is

vectorbt is a Python backtesting library built on NumPy and Numba. Instead of stepping through time one bar at a time, it represents a whole grid of parameter combinations as arrays and computes them together, then reports returns, drawdowns and other statistics for every combination.

What it is good for. The situation where a rule looks good on one setting and nobody knows whether the neighbouring settings also work. Seeing the whole grid at once is how you tell a robust rule from one that happened to fit the past.

Stars9k
LicenceApache-2.0 + Commons Clause
Latestv1.1.0 (2026-07-05)checked 7 Sep 2026
Written inPython
Setup effort
4 / 5
Payoff
4 / 5
Good
  • Speed is the whole point. Sweeps that take hours in a loop-based backtester finish in seconds.
  • It produces a large set of portfolio statistics and charts directly, so there is less glue code to write.
  • Actively maintained: version 1.1.0 was published on 5 July 2026 and code landed on 17 September 2026.
Watch for
  • The licence is Apache-2.0 plus the Commons Clause, which is not open source. The project states the limit plainly: "you may not sell products or services that are primarily this software." Private research is fine. Building a paid product on it is not, without asking the author.
  • Thinking in arrays is a real change of habit. Code that reads naturally in a loop-based backtester has to be rewritten, and the learning curve is steep.
  • A backtest is not evidence. It models neither the cost of trading at scale nor your place in the queue, and testing a thousand variations makes it easier, not harder, to find a result that is pure luck.
Similar repositories
Install
python3 -m venv venv
source venv/bin/activate
pip install vectorbt
# the paid "PRO" edition is a separate product; the open package is `vectorbt`
Screenshots
polakowo/vectorbt: Screenshot 1polakowo/vectorbt: Screenshot 2polakowo/vectorbt: Screenshot 3polakowo/vectorbt: Screenshot 4

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.