Home / Backtesting & trading frameworks

qf-lib

Backtesting & trading frameworks★ 972 GitHub starsPython⏱ Last commit 57 days ago

Python library of quantitative finance building blocks

What it is

A Python library that bundles common tools for quantitative finance research in one modular package. It includes data handling, a backtesting engine, portfolio construction and risk analysis modules, plus ready-made indicator calculations. Researchers and developers who want to test strategies and analyse portfolios without wiring several separate packages together are the intended users. Because it covers so much ground, expect some time learning its own abstractions before it pays off on a small project.

At a glance

Worth watchingOur rating, based on popularity, maintenance and how ready it is for real use.

Best forProfessional quants
Used forBacktesting, Strategy research
MarketsMulti-market
StackPython
Learning curveSteep learning curve
Practical valueMedium practical value
CostFree and open source
HardwareNo GPU needed
MaintenanceLast commit 57 days ago

GitHub stars, last 30 days

Daily snapshots since 2026-09-28 (up to 30 days): +2 over the period, now 972. Gaps mean no snapshot was taken that day.

In the author's words

QF-Lib is a Python library that provides high quality tools for quantitative finance.

Open on GitHub ↗This week's trending tools中文页面

Similar tools