vectorbt
The research engine that gives you an unfair advantage. Run thousands of trading ideas before others finish one.
What is vectorbt?
The research engine that gives you an unfair advantage. Run thousands of trading ideas before others finish one.
Overview of vectorbt
What it is
VectorBT is a Python toolkit for trading research. It allows users to explore market data, build indicators and signals, and compare thousands of ideas across assets and timeframes. It uses NumPy arrays, Numba acceleration, and an optional Rust engine to run large experiments in a few lines of Python. VectorBT is the open-source community edition of VectorBT PRO.
Key features
- Fast, vectorized backtesting using pandas, NumPy, and Numba
- Optional Rust engine for precompiled kernels without JIT compilation
- Pandas-native API with custom accessors and high-performance operations
- Flexible broadcasting for analyzing multiple assets and sweeping parameter grids
- Rich indicator ecosystem with integrations for TA-Lib, Pandas TA, and more
- Portfolio backtesting with trade, drawdown, and performance analysis (QuantStats integration)
- Interactive visualization with Plotly charts, Jupyter widgets, and browser dashboards
Use cases
- Explore price patterns and evaluate trading strategies in one workflow
- Run thousands of random strategies or parameter combinations across multiple symbols
- Inspect trades, fees, drawdowns, and portfolio performance
- Generate labels for machine learning workflows and perform walk-forward optimization
- Automate data updates and send Telegram notifications
Getting started
pip install -U vectorbt
To install the optional Rust engine:
pip install -U "vectorbt[rust]"
To install all optional integrations (TA-Lib, Pandas TA, etc.):
pip install -U "vectorbt[full]"
To install all optional integrations together with the Rust engine:
pip install -U "vectorbt[full,rust]"
License and pricing
The license is not stated in the repository metadata. VectorBT is the open-source community edition of VectorBT PRO. The community edition is free and open source. VectorBT PRO extends the library with additional features and is available under a separate paid license.
Based on the project's public README and repository metadata.