vectorbt 0.26.1


Python library for backtesting and analyzing trading strategies at scale

The vectorbt library is a powerful tool for Python developers interested in financial analysis. It provides a fast and flexible platform for backtesting trading strategies, operating directly on pandas and NumPy objects and leveraging the speed of Numba for high-performance computations. This package is open-source and is widely used in the algorithmic trading community for quantitative analysis, strategy testing, and research.

Stars: 3806, Watchers: 3806, Forks: 563, Open Issues: 81

The polakowo/vectorbt repo was created 6 years ago and the last code push was 18 hours ago.
The project is very popular with an impressive 3806 github stars!

How to Install vectorbt

You can install vectorbt using pip

pip install vectorbt

or add it to a project with poetry

poetry add vectorbt

Package Details

Oleg Polakow
Apache 2.0 with Commons Clause
GitHub Repo:


  • Office/Business/Financial
  • Scientific/Engineering/Information Analysis
  • Software Development
No  vectorbt  pypi packages just yet.


A list of common vectorbt errors.

Code Examples

Here are some vectorbt code examples and snippets.

GitHub Issues

The vectorbt package has 81 open issues on GitHub

  • Using bid and ask prices
  • simple signals from external file
  • Python 3.11
  • BitcoinDMAC.ipynb has some minor issues
  • Examples hanging in Windows Juypter - incompatible package
  • pip install -e . — AttributeError: module 'vectorbt' has no attribute 'settings'
  • In python-telegram-bot>=20.0 Unauthorized is replaced by Forbidden.
  • Getting a KeyError when using
  • Difficulty resolving CCXT
  • Unit Tests Failing V0.25.4
  • How to import Unauthorized from telegram.utils.helpers
  • Loss some exit signals by using SignalFactory.
  • How to control order price when using vbt.Portfolio.from_signals
  • How to calculate fees dynamically
  • 不支持python 3.11.1 ? Do not surport python 3.11.1?

See more issues on GitHub

Related Packages & Articles

okama 1.4.0

Investment portfolio analyzing & optimization tools

PyAlgoTrade 0.20

PyAlgoTrade is an event driven algorithmic trading Python library.

pycaret 3.3.2

PyCaret - An open source, low-code machine learning library in Python.