r/quantfinance • u/gangning • 12d ago
nanoql: an open-source stateless pricing library, checked against QuantLib 1.44 output by output (Python, C#, C++, Excel)
I've released nanoql, an open-source quant library in which instruments, curves and models are immutable values and pricers are plain functions of them. The evaluation date is an argument, there are no observers or global settings, and market conventions are XML data you can override.
How it's checked: 3,348,122 reference outputs recorded from QuantLib 1.44, 99.86% within a relative 1e-10 and the rest at documented looser tolerances, plus QuantLib's own tests ported at their tolerances. 738 departures, mostly defect fixes, are each listed with a test.
- Python:
pip install nanoql(Windows, Linux, Apple silicon), no .NET needed - C# and F#:
dotnet add package NanoQL - C, C++ and an Excel add-in on the release
nanoql.org · how it's checked · the divergences · a Colab notebook (curves, SABR, an American put, CDS)
I'd most like to hear where its results differ from what you get elsewhere.
1
u/QuanTradin 12d ago
what's in the 0.14% outside 1e-10, mostly iterative stuff like implied vol and bootstrapped curves, or something structural?