yield curve manipulation

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

yield curve manipulation

Siddharth Alexander
Hi,
 
Once I've built a yield curve is it possible to manipulate it in the following ways:
 
I want to be able to shift rates up 1 bp and create a new curve from within the code. I have an inkling this may not exist, so is it possible to extract all the data points used to build the YC given a YC handle? This way, I can clone the data, adjust the inputs by 1bp and build a new curve.
 
Thanks for your help!

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: yield curve manipulation

Ferdinando M. Ametrano-3
Hi Siddharth

> Once I've built a yield curve [...] I want to be able to shift rates up 1 bp

you have at least two alternatives:

a) you can create a ForwardSpreadedTermStructure where the spread is
applied to the instantaneous forward rate
http://quantlib.org/reference/class_quant_lib_1_1_forward_spreaded_term_structure.html

b) if you have created your original curve using RateHelpers which
encapsulate Quotes, the you can just tweak the Quote value, without
the need to create another curve

hope it helps

ciao -- Nando

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users