Skip to content

Installation

Package Install

pip install finsaber

The package installs the reusable backtesting framework only.

Local Development

git clone https://github.com/waylonli/FINSABER
cd FINSABER
git checkout v2.0
conda activate trading
pip install -e ".[dev,research]"

The research extra includes optional dependencies for baseline research strategies, such as statsmodels, xgboost, datasets, and pandas-datareader.

The documentation dependencies are separate:

pip install -e ".[docs]"

For full local development, install all extras:

pip install -e ".[dev,research,docs]"

Build A Wheel

python -m build --wheel

The generated wheel should include only backtest* packages. It should not include examples/, llm_traders/, rl_traders/, tmp/, build/, or dist/.

Environment Variables

LLM integrations in the repository may require:

OPENAI_API_KEY=...
HF_ACCESS_TOKEN=...

The core backtesting package does not require API keys.