qeqeanalytics

qeLib

A library of quantitative finance analytics, used from Excel or from Python. Every function has the same name in both, so a model built in a workbook carries over to code.

Early release qeLib is at version 0.x and still being developed; the first production version is expected shortly.

Free under a developer licence, for development and evaluation. Licensing

What it covers

Every pricer in qeLib supports algorithmic differentiation (AAD): a valuation returns its first-order sensitivities to every input in one pass, at a small multiple of the cost of the price alone, however many inputs there are.

  • Discount, projection, survival and recovery curves: CDS, OIS, multi-curve and cross-currency stripping, and swap pricing.
  • CDS through the ISDA CDS Standard Model.
  • Credit tranches: copulas, recovery models and loss distributions, with base correlations calibrated to tranche quotes or expected losses.
  • Options on CDS indices.
  • Caps, floors, swaptions and CMS, on flat volatilities or SABR; Bermudan swaptions, range accruals, callable notes and cancellable swaps.
  • FX options on a smile calibrated to market quotes.
  • Government bonds and bills: yields, prices, fitted curves, values and risk; term and general collateral repos.
  • Analytics for Significant Risk Transfer securitisations.

Python

Wheels for Windows, Linux and macOS (Apple silicon and Intel).

pip install qelib

then import qeLib. Installed under the developer licence.

Excel

An add-in for 64-bit Excel on Windows, with example workbooks and the User Guide, attached to each release on GitHub, under the developer licence.

A log of qeLib calls can be turned into a workbook, to see exactly what was called with what.

Licensing

Every release is published under qeLib's developer licence, with an evaluation licence so that anyone can try it for development and evaluation. For commercial use, contact us for a licence.

qeLib uses the runtime libraries of SPI, under the LGPL; each release publishes the SPI source it was built from.