Class ZeroCouponBond
- Namespace
- NanoQL.Instruments
- Assembly
- NanoQL.dll
A zero-coupon bond: a single redemption at maturity.
public sealed class ZeroCouponBond : Bond
- Inheritance
-
ZeroCouponBond
- Inherited Members
Remarks
The maturity date is the one given, unadjusted; the redemption is paid on it adjusted by the payment convention on the calendar, so the two differ when the maturity falls on a holiday, as in QuantLib.
Constructors
ZeroCouponBond(int, Calendar?, double, Date, BusinessDayConvention, double, Date?)
Initializes a new instance of the ZeroCouponBond class.
public ZeroCouponBond(int settlementDays, Calendar? calendar, double faceAmount, Date maturityDate, BusinessDayConvention paymentConvention = BusinessDayConvention.Following, double redemption = 100, Date? issueDate = null)
Parameters
settlementDaysintThe settlement days.
calendarCalendarThe settlement and payment calendar, or null, QuantLib's empty calendar, which builds only with an Unadjusted payment convention.
faceAmountdoubleThe notional.
maturityDateDateThe maturity date.
paymentConventionBusinessDayConventionThe business-day convention of the redemption date.
redemptiondoubleThe redemption price, in base 100.
issueDateDate?The issue date, or null for none.
Exceptions
- ArgumentOutOfRangeException
settlementDaysis negative, or the convention isn't a member of its enum.- ArgumentException
A date is
default(Date).- NanoQLException
The redemption date is adjusted on QuantLib's empty calendar.