Skip to content
Prev 14306 / 15274 Next

RQuantLib FixedRateBondYield close to maturity

Hi Terry,
you are right, the last settlement day of the bond is on Dec 30th as the bond redeems on a week end so the next business day as you point out fall after the redemption.
However, the day before you still have 1 day of accrual and still have a discount (and the price may deviate from par).
I agree this is an extreme case but possible (you held that bond to maturity) and you would not expect the function to return an error message unless the setup is wrong which is my question.
I find a work around by calculating a simple discount in such case but I thought it could be useful to know.

Regards


From: Terry Leitch [mailto:tleitch1 at jhu.edu]
Sent: Friday, May 26, 2017 1:52 PM
To: Charles Duranceau; r-sig-finance at r-project.org
Subject: Re: [R-SIG-Finance] RQuantLib FixedRateBondYield close to maturity


Not sure, but maturity=effectivedate+1 . Since setllementDays=1, the bond matures on the same day you pay for it. Was that your intention?
Message-ID: <253B4FA1ECEEB54DB661809CB6773455F69B6832@NOR-EXC01.northview.local>
In-Reply-To: <BLUPR0101MB150651C5BA71D80D0375BA5D8DFC0@BLUPR0101MB1506.prod.exchangelabs.com>