Interest Swap Modified Duration

3 visualizzazioni (ultimi 30 giorni)
Cameron Shaw
Cameron Shaw il 1 Feb 2021
Commentato: Thomas Schlott il 29 Mar 2021
Hi,
I discovered the new interest rate swap functionality to instantiate a security and call various functions. I can't seem to easily calculate the interest rate duration of a swap. Is there a way to calculate interest rate duration? I see the dv01 output for the price function but this does not seem to reconcile to a dv01 I would expect. e.g. a 3yr swap with 100mm notional has a dv01 of around 15k rather than 30k. Any help would be greatly appreciated.

Risposta accettata

Utkarsh Belwal
Utkarsh Belwal il 4 Feb 2021
Hi Cameron,
This is a bug in our current release, our developers are aware of it and it will be fixed in of our future release.
A workaround to resolve this issue is to replace the current Discount Pricer with the file that is attached in this answer. Please follow the below steps:
  • Navigate to the following path: C:\ProgramFiles\MATLAB\R2020b\toolbox\fininst\fininst\+finpricer
  • In the location, please replace the 'Discount.m' file with the file that is attached in this answer.
  • Relaunch the MATLAB.
  2 Commenti
Cameron Shaw
Cameron Shaw il 8 Feb 2021
Thanks Utkarsh
Thomas Schlott
Thomas Schlott il 29 Mar 2021
Hi Utkarsh,
the new version has a bug as well: for instruments with cpn = 0 the DV01 is always 2.5 - no matter what the maturity is.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Instrument Control Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by