Bugs item #1618299, was opened at 2006-12-18 13:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1618299&group_id=12740Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jay Walters (jwalters)
Assigned to: Nobody/Anonymous (nobody)
Summary: Xibor.fixing() does not work properly on some days
Initial Comment:
I am trying to bootstrap a PiecewiseYieldCurve with a SwapRateHelper holding a 5y swap rate. This is a USD curve.
The Upfrontindexedcoupon class contains a coupon period from 6/20/2011 to 12/19/2011. The unadjusted start date is 6/19/2011, which is a Sunday so it has been adjusted to be 6/20/2011. Note this does not require any change in the end/maturity date.
When the rate() method is called upon this object it calls indexFixing and it passes in the fixing date as the argument, with settlement days as 2, then the fixing date becomes 6/16/2011. Now if we call into USDLibor to get the fixing, we notice this date is in the future so we must forecast the fixing. The logic here computes the value date as fixing date + 2 adjusted to be a business day which is 6/20/2011 and the maturity date computed by adding a 6M tenor becomes 12/20/2011. But the rate I really need is 6/20/2011 to 12/19/2011.
It seems to be (several classes of logic) to be depending on the relationship that adjusted start date + tenor = end date.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=1618299&group_id=12740