When to exclude payment from SWAP valuation

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

When to exclude payment from SWAP valuation

Andre Louw-2

Hi,

Just a quick question.

Looking at the swap module I see QuantLib excludes cashflows from the NPV of a Swap according to the termstructure's settlementDate. Depending on how you look at it, could this not alternatively be todaysDate? Could we maybe add a ifdef to give the flexibility for both? Is there a specific market convention applicable to this?

Andre
Reply | Threaded
Open this post in threaded view
|

Re: When to exclude payment from SWAP valuation

Luigi Ballabio-2
On 2004.07.13 14:50, Andre Louw wrote:
> Just a quick question.
>
> Looking at the swap module I see QuantLib excludes cashflows from the
> NPV of a Swap according to the termstructure's settlementDate.  
> Depending on how you look at it, could this not alternatively be  
> todaysDate?

The main problem right now is that the term structure does not  
extrapolate backwards to today's date.

> Is there a specific market convention applicable to this?

I don't know. Anybody?

In the meantime, you can create your term structure with referenceDate  
= todaysDate and capitalize 2 days...

Later,
        Luigi