r/quant • u/gangning • 15d ago
Models 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/AutoModerator 15d ago
This post will be manually reviewed by a moderator due to the submitting account being less than 7 days old or having less than 20 karma. Please be patient and do not try to resubmit it - a mod will review the post soon.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.