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".
Citar como
Giulio Francesca (2024). Swaption Pricing (https://www.mathworks.com/matlabcentral/fileexchange/63038-swaption-pricing), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Computational Finance > Financial Instruments Toolbox > Price Instruments Using Functions > Interest-Rate Instruments >
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.