# finmath-lib
**Repository Path**: mirrors_finmath/finmath-lib
## Basic Information
- **Project Name**: finmath-lib
- **Description**: Mathematical Finance Library: Algorithms and methodologies related to mathematical finance.
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-01-05
- **Last Updated**: 2026-05-10
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
About finmath lib
==========
****************************************
**Mathematical Finance Library: Algorithms and methodologies related to mathematical finance.**
****************************************
[](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Ffinmath%2Ffinmath-lib)
[](https://github.com/finmath/finmath-lib/blob/master/LICENSE.txt)
[](https://github.com/finmath/finmath-lib/releases/latest)
[](https://maven-badges.herokuapp.com/maven-central/net.finmath/finmath-lib)
[](https://travis-ci.org/finmath/finmath-lib)
[](https://javadoc.io/doc/net.finmath/finmath-lib)
---
**Note**: As of October 12, 2025 the master branch has been renamed to main. In case you have an existing clone on master you may consider doing
```
git fetch origin
git branch -m master main # if you still have 'master'
git branch -u origin/main main
git remote set-head origin -a
```
---
**Project home page: http://finmath.net/finmath-lib**
The finmath lib libraries provides (JVM) implementations of methodologies related to mathematical finance, but applicable to other fields. Examples are
- Analytic Formulas
- Distributions: Normal, Gamma, Non-Central Chi-Squared (some functions are delegated to Apache commons-math).
- Models: Black Scholes, Bachelier, SABR, ZABR, CEV, etc.
- General numerical algorithms like
- Generation of random numbers
- Optimization (a Levenberg–Marquardt algorithm is provided)
- Valuation using **Fourier transforms** / **characteristic functions** (contributed by Alessandro Gnoatto, Lorenzo Torricelli and others)
- Black-Scholes model
- Heston model
- Bates model
- Two factor Bates model
- Merton model
- Variance Gamma model (contributed and maintained by Alessandro Gnoatto)
- **Finite difference methods** (contributed by Ralph Rudd and Jörg Kienitz)
- Numerical schemes using finite differences
- Theta-scheme
- Models
- Black-Scholes model
- Constant Elasticity of Variance model
- Products
- European option
- **Monte-Carlo simulation** of multi-dimensional, multi-factor stochastic differential equations (SDEs)
- Hull-White Short Rate Model (with time dependent parameters)
- LIBOR Market Model (Forward Rate Model) (in various forms)
- Time Homogeneous Forward Rate Model
- Cross-Currency LIBOR Market Model
- Black-Scholes type multi-asset model (multi-factor, multi-dimensional geometric Brownian motion)
- Equity Hybrid LIBOR Market Model
- Merton Model (as Monte-Carlo Simulation)
- Heston Model (as Monte-Carlo Simulation)
- Variance Gamma model (as Monte-Carlo Simulation, contributed and maintained by Alessandro Gnoatto)
- **American Monte-Carlo**: Estimation of conditional expectations in a Monte-Carlo framework
- **Stochastic Automatic Differentiation** (AAD) (part of the package `net.finmath.montecarlo.automaticdifferentiation`)
- **Monte-Carlo Simulation on GPGPUs** (via Cuda) (requires finmath-lib-cuda-extensions https://github.com/finmath/finmath-lib-cuda-extensions )
- Dependency injection on numerical algorithms (Monte-Carlo simulations) with custom return type priorities (see http://ssrn.com/abstract=3246127 ).
- **Dividend model for equity option valuation** (European and American) (contributed by Andreas Grotz)
- **Analytic valuation via curves and surfaces**
- Multi-Curve valuation of interest rate products (collateralization and funding) (Swaps, FRA).
- Bonds valuation using bond curves.
- CDS valuation.
- **Calibration** of market data objects like curves (discount and forward curve) or volatility surfaces
- Rate Curves:
- **Multi-curve interest rate curve calibration** (OIS discounting, basis-swaps, cross-currency-swaps).
- **Bond curve calibration** using local linear regression (see https://ssrn.com/abstract=3073942 ).
- Various interpolation methods (linear, cubic spline, harmonic spline, Akima).
- Various interpolation entities (value, log-value, rate, etc.).
- Parametric curves like Nelson-Siegel and Nelson-Siegel-Svensson.
- Volatility Curves and Cubes:
- **SABR smile** parameterization.
- Swaption volatility cubes with SABR parameterization.
- **CMS replication** with various annuity mappings.
- Simulation of **interest rate term structure models** (LIBOR market model with local and stochastic volatility)
- LIBOR market model with local and stochastic volatility
- Time-Homogeneous Forward Rate Model (LIBOR market model)
- Calibration of the **LIBOR market model**
- Cross-Currency LIBOR Market Model
- Equity Hybrid LIBOR Market Model
- Local and stochastic volatility models (SABR, ZABR)
- Valuation of complex derivatives
- Bermudan options / multi-callables lower bound via regression estimation of the conditional expectation
- Bermudan options / multi-callables upper bound via dual method
- **Hedge Simulation**
- **Margin Valuation Adjustments** (MVA) though forward ISDA SIMM simulation (this is currently a separate project at https://github.com/finmath ).
- **Integrated Assessment Models** / DICE Model. A version of the DICE model is part of the package net.finmath.climate.
Languages and Build
--------------------------------------
The library is available for Java 11 and Java 8. We are starting to provide examples in Kotlin.
The Maven build file is provide. Import the project as Maven project.
The default Maven profile is Java 11 without Kotlin. To enable Java 8 version select the Maven profile 'java-8'. To enable Kotlin select the Maven profile 'kotlin'.
Releases
--------------------------------------
Binary releases can be found at http://finmath.net/finmath-lib .
The version numbering of finmath-lib follows a the *[semantic versioning](https://semver.org)*
(at least we try to).
Distribution
--------------------------------------
finmath lib is distributed through the central maven repository. It's coordinates are:
For the Java 11 version: