Swaption Pricing
Black an Normal functions allow to compute the premium and the delta of a swaption respectively using the Black Model (log-normal swap rate) and the Black Normal Model (assuming a normally distributed swap rate). The inputs of such functions are the swapRate (that can be computed using the function getSwapRate), the strike rate k, the option expiry, the volatility of the underlying swap rate, the annuty measure an (again, it can be computed by means of the function getSwapRate), the option type, optType, that can assume the values 'Payer' or 'Receiver'.
getSwapRate allows to compute the swap rate and the annuity measure taking as inputs a zero rate curve and a the forwarding curve. Both curves must be load using readtable('.xlsx') where the .xlsx file contains two columns with headers "dt" and "rate".
Cite As
Giulio Francesca (2024). Swaption Pricing (https://www.mathworks.com/matlabcentral/fileexchange/63038-swaption-pricing), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Computational Finance > Financial Instruments Toolbox > Price Instruments Using Functions > Interest-Rate Instruments >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.