Swap Valuation- Setting the LIBOR/IBOR rate ?

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

Swap Valuation- Setting the LIBOR/IBOR rate ?

vema
Hi, I am trying to evaluate the NPV of a plain swap whose settlement date is say (Oct 1, 2007) and matures say in 10 years. The fixed leg has a Semi-annual cash flow frequency and the floating leg an Annual cash flow. From the definition of plain swaps, the value of the first floating coupon depends on the LIBOR rate 6 months ago and the remaining coupon rates are calculated via the bootstrapping and interpolation of the yield curve. So suppose the LIBOR rate is 4.3% so how do i set this? I cannot find a way of inserting the currnet LIBOR rate into evaluating the NPV swap. One work around is probably by inserting a depo of 6 months with 4.3% but in that case the term structrre curves wouldnt be correct ? Thanks a lot for your response. vema
Reply | Threaded
Open this post in threaded view
|

Re: Swap Valuation- Setting the LIBOR/IBOR rate ?

Luigi Ballabio
On Mon, 2007-12-10 at 09:01 -0800, vema wrote:
> Hi, I am trying to evaluate the NPV of a plain swap whose settlement
> date is say (Oct 1, 2007) and matures say in 10 years. The fixed leg
> has a Semi-annual cash flow frequency and the floating leg an Annual
> cash flow. >From the definition of plain swaps, the value of the first
> floating coupon depends on the LIBOR rate 6 months ago and the
> remaining coupon rates are calculated via the bootstrapping and
> interpolation of the yield curve. So suppose the LIBOR rate is 4.3% so
> how do i set this?

Supposing "libor" is a (smart) pointer to your LIBOR instance, you can
write

libor->addFixing(d, 0.043);

where d is the corresponding fixing date.

Luigi


--

Testing can never demonstrate the absence of errors in software, only
their presence.
-- W.E. Dijkstra



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users