🌐
Leanpub
leanpub.com › quantlibpythoncookbook
QuantLib Python Cookbook [Leanpub PDF/iPad/Kindle]
Quantitative finance in Python: a hands-on, interactive look at the QuantLib library through the use of Jupyter notebooks as working examples.
🌐
Quantlib
quantlib.org › docs.shtml
QuantLib Documentation
David Duarte provides a reference to the QuantLib-Python module at https://quantlib-python-docs.readthedocs.io/. It's a work in progress: contributions are welcome through pull requests.
🌐
Leanpub
leanpub.com › quantlibpythoncookbook › read
Read QuantLib Python Cookbook | Leanpub
It’s easy enough to translate the Python code shown in this book into the corresponding C++ code. As an example, I’ll go through a bit of code from the notebook on instruments and pricing engines. ... This line imports the QuantLib module and provides a shorter alias that can be used to qualify the classes and functions it contains.
🌐
Readthedocs
quantlib-python-docs.readthedocs.io
QuantLib-Python Object Building Documentation — QuantLib-Python Documentation 1.40 documentation
QuantLib-Python Object Building Documentation · View page source · Contents: Getting Started · Installation · Prerequisites · Using a virtual environment (recommended) Install with pip · Conda (alternative) Importing · Reference · Basics · Array · Matrix ·
🌐
Implementingquantlib
implementingquantlib.com › p › tutorials.html
Tutorials and Examples — Implementing QuantLib
In this series of screencasts, I go through a number of Jupyter notebooks (still called IPython notebooks at that time) that were eventually published in the QuantLib Python Cookbook.
🌐
A QuantLib Guide
quantlibguide.com
A QuantLib Guide
It’s a gap that, unfortunately, ... to QuantLib Python Cookbook is a decent catalog of use cases but lacks a bit of direction. This guide includes some updated material from those two books, as well as some later material I published on my blog or on Wilmott Magazine; the idea is to collect, update and present it all in a sequence that makes it suitable as a tutorial for someone ...
🌐
Leanpub
samples.leanpub.com › quantlibpythoncookbook-sample.pdf pdf
QuantLib Python Cookbook
July 16, 2025 - This chapter gave an introduction to the basics of QuantLib.
Top answer
1 of 5
17

At this time, there's no specific documentation for QuantLib-Python, except for a series of screencasts that I started a while ago (you can find them on YouTube at https://www.youtube.com/playlist?list=PLu_PrO8j6XAvOAlZND9WUPwTHY_GYhJVr) but which is far from exhaustive; there's just a few of them for now, and there's no definite learning path.

However, the structure of the library in Python is the same as in C++, except for some changes (like the use of std::shared_ptr in C++ being hidden in Python) that were made so that one could write more idiomatic Python code. Therefore, you should be able to use the resources listed on the QuantLib site at http://quantlib.org/docs.shtml and translate their advice to the corresponding Python code.

One thing you might run into is that not all of QuantLib is exported to Python. Again, there's no documentation of what's there; so when in doubt, search for a feature inside the SWIG interface files to check if it's exported.

Update: last year, Goutham and I have pooled our material and published the QuantLib Python Cookbook. It's still a work in progress, but it might already be useful.

Further update: as of the end of 2024, A QuantLib Guide is also available.

2 of 5
11

You will find a tutorial of QuantLib using python with simple examples here:

http://gouthamanbalaraman.com/blog/quantlib-python-tutorials-with-examples.html

I have been writing these as a means to be instructive to others going through the process of learning and working with QuantLib. If you have suggestions on what topics you would like to read, please post a comment.

Find elsewhere
🌐
Readthedocs
quantlib-python-docs.readthedocs.io › en › latest › basics.html
Basics — QuantLib-Python Documentation 1.40 documentation
Everything starts with “evaluation ... to value a “Swap” as of 09/16/2020, you will first set the evaluationDate in QuantLib. Underhood C++ quant library is packaged using SWIG and python is more a API calling the C++ library....
🌐
Implementingquantlib
implementingquantlib.com › p › the-book.html
My books — Implementing QuantLib
Information about my two books, Implementing QuantLib and QuantLib Python Cookbook.
🌐
Leanpub
leanpub.com › quantlibguide
A QuantLib Guide [Leanpub PDF/iPad/Kindle]
It's a gap that, unfortunately, I contributed to create; my book Implementing QuantLib is aimed more at developers wanting to extend the library and less at users, and the material I contributed to QuantLib Python Cookbook is a decent catalog of use cases but lacks a bit of direction. This guide includes some updated material from those two books, as well as some later material I published on my blog or on Wilmott Magazine; the idea is to collect, update and present it all in a sequence that makes it suitable as a tutorial for someone approaching QuantLib or trying to get more fluent in its usage.
🌐
Quantlib
quantlib.org › install › windows-python.shtml
QuantLib-Python Installation on Windows
If you want to compile from a checkout of a git repository (such as the official one at https://github.com/lballabio/quantlib-swig, or a fork of it that you might have created) you'll need an additional step at the beginning of the process. In this case, you'll need SWIG available; you can download and install it from http://swig.org. . At the time of this writing, the wrappers use SWIG 4.3.0. Once SWIG is built and available in your path, run: swig -python -c++ -outdir src\QuantLib -o src\QuantLib\quantlib_wrap.cpp ..\SWIG\quantlib.i from the QuantLib-SWIG-1.36\Python directory.
🌐
Scribd
scribd.com › document › 676357971 › QuantLib-Python-Cookbook-Luigi-Ballabio-Goutham-Balaraman-Z-Library
QuantLib Python Cookbook (Luigi Ballabio, Goutham Balaraman) (Z-Library) | PDF
QuantLib Python Cookbook (Luigi Ballabio, Goutham Balaraman) (Z-Library) - Free download as PDF File (.pdf), Text File (.txt) or read online for free.
🌐
VDOC.PUB
vdoc.pub › documents › quantlib-python-cookbook-42ojscs21rf0
Quantlib Python Cookbook [PDF] [42ojscs21rf0]
However, it’s easy enough to translate the Python code shown here into the corresponding C++ code. An example of such translation is shown in the appendix. Basics 1. Quantlib Basics In this chapter we will introduce some of the basic concepts such as Date, Period, Calendar and Schedule.
🌐
EBIN.PUB
ebin.pub › quantlib-python-cookbook-k-3399939.html
QuantLib Python Cookbook - EBIN.PUB
The Python Cookbook is a collection of problems, solutions, and practical examples for Python programmers, written by Py ... Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up · QuantLib Python Cookbook Luigi Ballabio and Goutham Balaraman This book is for sale at http://leanpub.com/quantlibpythoncookbook This version was published on 2022-10-29 This is a Leanpub book.
🌐
Implementingquantlib
implementingquantlib.com › 2024 › 12 › new-quantlib-book.html
A new QuantLib book — Implementing QuantLib
It’s a gap that, unfortunately, ... to QuantLib Python Cookbook is a decent catalog of use cases but lacks a bit of direction. This new guide includes some updated material from those two books, as well as some later material I published on this blog or on Wilmott Magazine; the idea is to collect, update and present it all in a sequence that makes it suitable as a tutorial for someone ...
🌐
GitHub
github.com › lballabio › QuantLib-site › blob › master › docs.shtml
QuantLib-site/docs.shtml at master · lballabio/QuantLib-site
<strong>Goutham Balaraman's</strong> <a href="http://gouthamanbalaraman.com/blog/quantlib-python-tutorials-with-examples.html">blog</a>.<br> <strong>Mikael Katajam&auml;ki's</strong> <a href="http://mikejuniperhill.blogspot.com/search/label/Quantlib%20library">blog</a>.<br> <strong>Suhas Ghorpadkar's</strong> <a href="http://suhasghorp.com/?s=quantlib&submit=Search">blog</a>.<br> <strong>Chris Chang's</strong> <a href="https://medium.com/@chuanyi.c">blog</a>.<br> <strong>The Python Lab</strong> <a href="https://thepythonlab.com/tag/quantlib/">blog</a> (in Spanish).<br> <strong>Quant College</s
Author   lballabio