Sensitivities Calculation

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Sensitivities Calculation

Kirill Shemyakin
Hi guys,

Is it possible to calculate DV01 (or PVBP) of IRS/XCCY in QuantLib?
Many thanks.

Best regards,
Kirill

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Sensitivities Calculation

Luigi Ballabio
On Tue, Aug 21, 2012 at 5:53 PM, Kirill Shemyakin <[hidden email]> wrote:
> Is it possible to calculate DV01 (or PVBP) of IRS/XCCY in QuantLib?

Kirill,
    you can do it numerically.  Before passing them to your
instruments, wrap your curves in a ZeroSpreadedTermStructure and keep
a handle to the spread so that you can set its value.  If you set the
spread to 0.0, you'll get the market NPV.  If you set the dspread to
1bp, you'll get the perturbed NPV of the swap from which you'll get
the DV01.  This works with any instrument, of course.

Hope this helps,
    Luigi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Sensitivities Calculation

kiki-9
In reply to this post by Kirill Shemyakin
may i ask does dv01 in irs usually mean a shift of bp in forward curve
or discount curve?




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Sensitivities Calculation

Ferdinando M. Ametrano-3
On Thu, Oct 18, 2012 at 6:29 PM, kiki <[hidden email]> wrote:
> may i ask does dv01 in irs usually mean a shift of bp in forward curve
> or discount curve?

these days it's not unambiguously defined anymore

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users