Interest Swap Modified Duration

조회 수: 2 (최근 30일)
Cameron Shaw
Cameron Shaw 2021년 2월 1일
댓글: Thomas Schlott 2021년 3월 29일
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.

채택된 답변

Utkarsh Belwal
Utkarsh Belwal 2021년 2월 4일
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
Cameron Shaw
Cameron Shaw 2021년 2월 8일
Thanks Utkarsh
Thomas Schlott
Thomas Schlott 2021년 3월 29일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by