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