Tools · SPBoucher
Menu

QuantLib

In-depth entry

by QuantLib project (Luigi Ballabio and contributors) · Library · also known as QuantLib-Python, QuantLibXL

Open-source C++ library for quantitative finance covering instruments, term structures, pricing engines and calendars, with Python and other bindings

BSD-3-Clause licenseOpen sourceFreeLocalSelf-hostable
Visit official site Compare

Link verified Nov 2, 2026

Overview

QuantLib is an open-source C++ library for quantitative finance, maintained since 2000 by Luigi Ballabio and a community of contributors, and belongs to the financial analysis category. It models the building blocks of derivative pricing and fixed-income analytics: dates and business-day calendars, day counters, yield and volatility term structures, interest-rate and equity instruments, stochastic processes, and pricing engines based on analytic formulas, trees, finite differences and Monte Carlo.

The library is organised around instruments that are priced by interchangeable engines, so a bond, swap or option can be revalued under different models without rewriting the instrument. Bindings generated with SWIG expose the same objects to Python (the QuantLib package on PyPI), C#, Java and R, and QuantLibXL brings the functionality into Excel. Most practitioners today call it from Python notebooks to bootstrap curves, price vanilla and exotic options, compute sensitivities or run calibration experiments.

It is used in banks, asset managers, consultancies and university courses, both directly and as the reference implementation that other libraries are checked against. Releases are frequent and the license is a modified BSD, so it can be embedded in proprietary systems.

The cost is complexity: the object model is large, documentation is thin outside the generated reference and community books, Python bindings mirror C++ idioms rather than feeling native, and performance-critical users may need to build from source and tune compilation. It is a pricing library, not a market-data or risk platform, so data feeds, position storage and reporting are left to the user.

Capabilities

  • Dates, calendars and day-count conventions for many markets
  • Yield-curve bootstrapping and interpolation
  • Interest-rate, equity, FX and credit instruments
  • Pricing engines: analytic, lattice, finite-difference and Monte Carlo
  • Short-rate and stochastic-volatility models with calibration helpers
  • Bindings for Python, C#, Java and R, plus an Excel add-in

Typical workflows

  1. Bootstrap a discount curve from deposits, futures and swaps, then price a swap book
  2. Calibrate a Heston or Hull-White model to market quotes
  3. Teach option pricing in a notebook with QuantLib-Python

Strengths

  • Mature, widely scrutinised reference implementation
  • Permissive modified-BSD license
  • Engine/instrument separation eases model comparison

Limitations

  • Steep learning curve and large object model
  • Sparse narrative documentation outside third-party books
  • Python API mirrors C++ idioms
  • No market data, risk aggregation or reporting layers

Prerequisites

  • C++ toolchain and Boost for building from source, or a prebuilt Python wheel
  • Familiarity with fixed-income and derivatives conventions

Who it is for

  • Quantitative analysts and developers
  • Finance faculty and graduate students
  • Risk and valuation teams

Alternatives & comparison

PyPortfolioOpt and Riskfolio-Lib solve portfolio-allocation problems and do not price instruments; QuantLib prices instruments and builds curves but has no allocation layer. For simple Black-Scholes or curve math, SciPy and NumPy suffice, whereas QuantLib provides market conventions, calendars and calibrated models that would otherwise be rebuilt by hand.

  • NumPy

    Foundational Python library for n-dimensional arrays, vectorized math, linear algebra, random numbers and the array API used by the scientific stack

    Open sourceOpen source
  • PyPortfolioOpt

    Python library for portfolio optimization: efficient frontier, Black-Litterman, hierarchical risk parity and discrete allocation

    Open sourceOpen source
  • Riskfolio-Lib

    Python library for quantitative portfolio optimization with many risk measures, robust estimators and hierarchical clustering models

    Open sourceOpen source
  • SciPy

    Core open-source Python library for scientific computing on NumPy arrays: optimization, integration, interpolation, linear algebra, sparse matrices, statistics, signal processing

    Open sourceFree
Compare QuantLib with its alternatives →

Sources & verification

Primary sources consulted for this record. Claims are tied to the fields each source supports; the automated link checker re-verifies every URL on a schedule.

Confidence
High
Reviewed
Nov 1, 2026
Links
Verified · Nov 2, 2026

Spotted an error?

Broken link, outdated license, wrong category, or a tool that no longer exists? Tell us; reports are reviewed by the editor.

Interactive Brokers API

Interactive Brokers LLC · Financial analysis & investing

In-depth entry

Programmatic trading and market-data access to Interactive Brokers accounts through the TWS API, the REST-based Web API and FIX

ProprietaryUsage-basedPaidLocalRedirected

QuantConnect

QuantConnect Corporation · Financial analysis & investing

In-depth entry

Algorithmic trading platform built on the open-source LEAN engine, with cloud backtesting, research notebooks and brokerage-connected live trading

Apache-2.0FreemiumPaidLocalNov 2, 2026

Alpaca

Alpaca (AlpacaDB, Inc.) · Financial analysis & investing

API-first US brokerage offering a Trading API, Market Data API and Broker API for stocks, ETFs, options and crypto, with paper trading

Apache-2.0FreemiumUsage-basedNov 2, 2026

vectorbt

Oleg Polakow · Financial analysis & investing

Python library for vectorized backtesting and portfolio analysis built on pandas, NumPy and Numba, with a commercial PRO edition

Apache-2.0 WITH Commons-ClauseFreePaidLocalNov 2, 2026

Kraken API

Payward, Inc. (Kraken) · Financial analysis & investing

REST, WebSocket and FIX interfaces to the Kraken cryptocurrency exchange for market data, spot and derivatives trading and account management

ProprietaryFreeUsage-basedNov 2, 2026

Zipline Reloaded

Stefan Jansen (ML4Trading) · Financial analysis & investing

Community-maintained fork of Quantopian's Zipline, an event-driven Python backtester with data bundles and the Pipeline API

Apache-2.0Open sourceFreeLocalBroken