Requirements
Authentication
Option 1: Token
After you’ve been added to the list of collaborators and accepted the repository invitation, the next step is to create a Personal Access Token for your GitHub account in order to access the PRO repository programmatically (from the command line or GitHub Actions workflows):- Go to GitHub
- Click on Generate a new token (classic)
- Enter a name (such as “terminal”)
- Set the expiration to some fixed number of days
- Select the repo scope
- Generate the token and save it in a safe place
Option 2: Credential Manager
Alternatively, use Git Credential Manager instead of creating a personal access token.Installation
Clone the Repository
Clone the repository using the web URL:Setup your Environment
There are two ways to set up your environment:Option 1: Using uv
To install a project environment and dependencies using uv, you can follow these steps:
Install uv
You can install uv using various methods depending on your operating system.
For example, on Linux or Mac, you can use the following command:Alternatively, you can install it via pip:On Windows, you can use the following command:
Create a Project
Initialize a new Python project using the uv init command. This will create a
pyproject.toml file, which is used to specify project metadata and dependencies.Add Dependencies
Use the uv add command to add dependencies to your project. This will update the pyproject.toml file and the lockfile.
Create a Virtual Environment
Use the uv venv command to create a virtual environment for your project. This will create a .venv directory containing the isolated environment.
Activate the Virtual Environment
Activate the virtual environment to start using it. The activation command varies depending on your shell and operating system.For example, on Unix or macOS:On Windows:
Install Dependencies
Once the virtual environment is activated, you can install the dependencies specified in the pyproject.toml file using the uv pip install command.
Option 2: Using conda
If you already have a conda environment with the required dependencies:
If you plan to use vectorbtpro locally, it’s recommended to establish a new environment solely for vectorbtpro
Install VectorBT PRO
Use the following command to install the PRO version of vectorbtpro:- Replace
GH_USERwith your GitHub username. - Replace
GH_TOKENwith your Personal Access Token. - Replace
ORGANIZATIONwith the GitHub organization from which you are installing VectorBT PRO. This will be eitherpolakowo- if you are a collaborator on the official VectorBT PRO repository; orbfcdev- if you are a member of this organization and have access to BFC’s fork of VectorBT Pro.

