At 10:42 AM 4/15/03 +0200,
[hidden email] wrote:
>I'm thinking about the way to introduce a spread (like credit spread) in
>the evaluation of interest rate derivatives
>
>but for a floater I would need 2 different term structures, one for
>discounting (spreaded) and one to compute forward rates (without spread).
Andrea,
if you check out the latest version from CVS, you can use Nicolas'
IndexedCoupon for the task, namely:
1) instantiate a Libor object by passing it the curve without spread;
2) instantiate the coupons (in this case, UpFrontIndexedCoupon) by passing
them the libor you created;
3) discount the coupon values returned by CashFlow::amount by using the
spreaded term structure.
Also, you're welcome to perform:
4) wrap the above in a Bond class and contribute it to the library :)
Bye,
Luigi