Open source
Our yield-curve stripper and swap pricer, open source — in C++ and in Excel.
The rates core of the NitroX library — multi-curve IBOR and OIS stripping, IRS and OIS swaps, and inflation — published under BSD-3, with a ready-to-use Excel add-in. Written by a former head of the swaps desk, in portable C++20.
What is in it
Rates and inflation, end to end
From market quotes to discount and projection curves, and from curves to swap prices and risk.
Multi-curve stripper
IBOR and OIS curves bootstrapped as shapes, a funding curve per currency, and projection indexes discounted on funding — calibrated on margins or cross-currency basis swaps.
The instruments you quote
Deposits (incl. ON/TN/SN), FRAs, futures, IRS, OIS, OIS FRAs, custom-date OIS, tenor-basis spreads, cross-currency basis and funding margins.
Hagan-West interpolation
Monotone-convex interpolation by default: continuous forwards, without the oscillations of a cubic spline.
Central banks and turns
Steps on central-bank meeting dates and one-night jumps at turn of month, quarter and year, so the short end of an OIS curve looks like the market.
Swaps: IRS and OIS
Fixed, floating and overnight-compounded legs, seasoned and accreting notionals, cross-currency legs with margin — par rates, PV and PV01 off the stripped curves.
Inflation
A CPI curve calibrated on zero-coupon inflation swaps, with index lag and monthly seasonality, priced against the same funding curves.
This release covers rates and inflation only. Options and volatility, credit and Hull-White exotics are not part of it.
Excel add-in
The whole library, in Excel
Not only a C++ library: the add-in puts the stripper, the swap pricer and the risk in a spreadsheet, for traders, risk managers and model validators who work there.
Ready to load
A prebuilt 64-bit NitroX.xll on every GitHub release, with its SHA-256 checksum. Open it in Excel and the functions are there — no compiler, no SDK.
Curves, swaps and risk in cells
Strip curves, price swaps, group them into portfolios and read bucketed DV01 per input quote — as worksheet functions, the way a desk works.
A demo workbook
A USD workbook: SOFR and US CPI curves, a small swap book, its revaluation and its bucketed risk. Generated by a Python script, so every input is traceable.
The same engine as the C++
The add-in calls the library itself, and the test suite drives curves, swaps, OIS and inflation through the same function layer.
Built to be checked
Code you can read and verify
Every quote reprices
After each bootstrap, every input instrument is repriced and the largest residual is reported. A curve that does not return its own inputs is a bug.
The model is written down
The “shape + spread” multi-curve design is documented, including where it differs from discount-factor-ratio projection (a few basis points on a 3M OIS forward) and why.
Portable C++20
Standard C++20 and CMake, no Boost, built and tested on Linux (GCC, Clang) and Windows (MSVC).
BSD-3 licence
Use it, change it, ship it in a commercial product. The same permissive licence as much of the quant-library world.
Why we publish it
A library you can read is better evidence than anything we could say about it
If you need help with it — curve set-up for your market, integration into your systems, or an independent validation against your own — that is work we do.
Using it, or thinking about it?
Thirty minutes to talk through your curves and your swaps. No commitment and no charge.