Skip to content

danielhstahl/FFTOptionPricing

Repository files navigation

Linux Windows Codecov
lin-badge win-badge cov-badge

FFT Option Pricing

This repository does Carr Madan, Fourier Space Time Stepping Algorithms, and Fang Oosterlee pricing from Carr and Madan, Sukov Vladimir, and Fang Oosterlee. Requires my Functional Utilities, my Characteristic Functions, my Fang Oosterlee , and my Runge Kutta library.

Benefits to FSTS: It only requires a CF and a payoff. No further manipulations necessary. Can also price American options. Disadvantages: slower. Roughly twice as slow as Carr and Madan for Europeans. Prices in log asset instead of log strike; so not as easy to price all strikes for a given stock price.

Benefits to Carr Madan: Ubiquitous. Prices in log strike. Disadvantages: requires algebraic manipulations for each payoff. Does not converge quickly.

Benefits to Fang Oosterlee: Fast convergence in u. U and X are separate and so can price only the options available in the market without interpolation. Prices in either asset or strike. Disadvantages: requires algebraic manipulations for each payoff. For a given size of "X", tends to be slower than Carr Madan. Benefit is that "X" can be whatever the market provides.

Examples

See the tests for examples on how to use each of these algorithms.

Generate charts and calibration documentation

For the calibration aspect, run make generateCharts and then run ./generateCharts. Then open OptionCalibration.Rnw in RStudio and compile as PDF.

About

Option pricing using FFT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages