SoftwareComplete
A C++20 library that prices European calls and puts three ways — the Black–Scholes–Merton closed form, Monte Carlo and Crank–Nicolson finite differences — and holds the closed form and the grid to QuantLib’s reference values, the Monte Carlo to the closed form, and the three to each other, within tolerances its tests state and assert. The grid also prices the American contract. Every claim in its architecture document is numbered against the test or file that holds it. The library depends on nothing but the C++ standard library, builds as a WebAssembly module, and is released as version 1.0.0. It is one half of a pair: the other half is touchstone.garethcooke.com, a tutorial for developers who work alongside quants, in progress, whose demos are to run on this library.
C++20Options PricingBlack–ScholesMonte CarloFinite DifferencesCrank–NicolsonGreeks+7