Bonds

Overview

functions to construct and use Bond objects.

Function List

qlBond ()
qlBondAccrualDays ()
qlBondAccrualEndDate ()
qlBondAccrualPeriod ()
qlBondAccrualStartDate ()
qlBondAccruedAmount ()
qlBondAccruedDays ()
qlBondAccruedPeriod ()
qlBondAlive ()
qlBondAtmRateFromYieldTermStructure ()
qlBondBpsFromYield ()
qlBondBpsFromYieldTermStructure ()
qlBondCalendar ()
qlBondCleanPrice ()
qlBondCleanPriceFromYield ()
qlBondCleanPriceFromYieldTermStructure ()
qlBondCleanPriceFromZSpread ()
qlBondConvexityFromYield ()
qlBondCurrency ()
qlBondDescription ()
qlBondDirtyPriceFromYield ()
qlBondDurationFromYield ()
qlBondFlowAnalysis ()
qlBondIsTradable ()
qlBondIssueDate ()
qlBondMaturityDate ()
qlBondMaturityLookup ()
qlBondMaturitySort ()
qlBondNextCashFlowAmount ()
qlBondNextCashFlowDate ()
qlBondNextCouponRate ()
qlBondNotional ()
qlBondNotionals ()
qlBondPreviousCashFlowAmount ()
qlBondPreviousCashFlowDate ()
qlBondPreviousCouponRate ()
qlBondRedemptionAmount ()
qlBondRedemptionDate ()
qlBondReferencePeriodEnd ()
qlBondReferencePeriodStart ()
qlBondSetCouponPricer ()
qlBondSetCouponPricers ()
qlBondSettlementDate ()
qlBondSettlementDays ()
qlBondStartDate ()
qlBondYieldFromCleanPrice ()
qlBondZSpreadFromCleanPrice ()
qlCmsRateBond ()
qlFixedRateBond ()
qlFixedRateBond2 ()
qlFloatingRateBond ()
qlZeroCouponBond ()

Function Documentation

qlBond

string returnValue
qlBond(
string ObjectId
string Description
string Currency
long SettlementDays
string Calendar
double FaceAmount
long MaturityDate
long IssueDate
string LegID
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class Bond and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
DescriptionBond description string. Autogenerated if null Default value = std::string().
Currencybond Currency. Default value = NullCurrency.
SettlementDayssettlement days. Default value = 3.
Calendarholiday calendar (e.g. TARGET). Default value = NullCalendar.
FaceAmountFace nominal amount. Default value = 100.0.
MaturityDatematurity date. Default value = QuantLib::Date().
IssueDateissue date: the bond can't be traded until then. Default value = QuantLib::Date().
LegIDcoupon vector Leg object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlBondAccrualDays

long returnValue
qlBondAccrualDays(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the total number of accrual days for the current coupon of the given bond. The current bond settlement is used if no date is given.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondAccrualEndDate

long returnValue
qlBondAccrualEndDate(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the accrual end date for the current coupon of the given bond.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondAccrualPeriod

double returnValue
qlBondAccrualPeriod(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the total accrual period for the current coupon of the given bond. The current bond settlement is used if no date is given.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondAccrualStartDate

long returnValue
qlBondAccrualStartDate(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the accrual start date for the current coupon of the given bond.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondAccruedAmount

double returnValue
qlBondAccruedAmount(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the accrued amount for the given bond. The current bond settlement is used if no date is given.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondAccruedDays

long returnValue
qlBondAccruedDays(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the accrued days for the current coupon of the given bond. The current bond settlement is used if no date is given.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondAccruedPeriod

double returnValue
qlBondAccruedPeriod(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the accrued period for the current coupon of the given bond. The current bond settlement is used if no date is given.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondAlive

vector<string> returnValue
qlBondAlive(
vector<string> Bonds
long RefDate
any Trigger)
Description:

filters the Bond object IDs of the still alive Bonds.

Supported Platforms:

Excel

Parameters
Bondsvector of Bond IDs.
RefDatereference date at which evaluate alive bonds. The current evaluation date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondAtmRateFromYieldTermStructure

double returnValue
qlBondAtmRateFromYieldTermStructure(
string ObjectId
string YieldCurve
long SettlementDate
double CleanPrice
any Trigger)
Description:

Returns the ATM rate implied by the given YieldTermStructure, settlement date, and clean price.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
YieldCurvediscounting YieldTermStructure object ID.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
CleanPriceclean price.
Triggerdependency tracking trigger

qlBondBpsFromYield

double returnValue
qlBondBpsFromYield(
string ObjectId
double Yield
string DayCounter
string Compounding
string Frequency
long SettlementDate
any Trigger)
Description:

Returns the basis point sensitivity implied by the given yield and settlement date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Yieldbond yield.
DayCounterYield DayCounter ID. Default value = Actual/Actual (ISDA).
CompoundingInterest rate coumpounding rule (Simple:1+rt, Compounded:(1+r)^t, Continuous:e^{rt}). Default value = Compounded.
Frequencyfrequency (e.g. Annual, Semiannual, Every4Month, Quarterly, Bimonthly, Monthly). Default value = Annual.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondBpsFromYieldTermStructure

double returnValue
qlBondBpsFromYieldTermStructure(
string ObjectId
string YieldCurve
long SettlementDate
any Trigger)
Description:

Returns the basis point sensitivity implied by the given YieldTermStructure and settlement date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
YieldCurvediscounting YieldTermStructure object ID.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondCalendar

string returnValue
qlBondCalendar(
string ObjectId
any Trigger)
Description:

Returns the calendar of the bond, e.g. TARGET.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Triggerdependency tracking trigger

qlBondCleanPrice

double returnValue
qlBondCleanPrice(
string ObjectId
any Trigger)
Description:

Returns the clean price for the given bond.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Triggerdependency tracking trigger

qlBondCleanPriceFromYield

double returnValue
qlBondCleanPriceFromYield(
string ObjectId
double Yield
string DayCounter
string Compounding
string Frequency
long SettlementDate
any Trigger)
Description:

Returns the bond clean price implied by the given yield and settlement date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Yieldbond yield.
DayCounterYield DayCounter ID. Default value = Actual/Actual (ISDA).
CompoundingInterest rate coumpounding rule (Simple:1+rt, Compounded:(1+r)^t, Continuous:e^{rt}). Default value = Compounded.
Frequencyfrequency (e.g. Annual, Semiannual, Every4Month, Quarterly, Bimonthly, Monthly). Default value = Annual.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondCleanPriceFromYieldTermStructure

double returnValue
qlBondCleanPriceFromYieldTermStructure(
string ObjectId
string YieldCurve
long SettlementDate
any Trigger)
Description:

Returns the bond clean price implied by the given YieldTermStructure and settlement date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
YieldCurvediscounting YieldTermStructure object ID.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondCleanPriceFromZSpread

double returnValue
qlBondCleanPriceFromZSpread(
string ObjectId
string YieldCurve
double ZSpread
string DayCounter
string Compounding
string Frequency
long SettlementDate
any Trigger)
Description:

Returns the bond clean price implied by the given Z-Spread, discount curve, and settlement date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
YieldCurvediscounting YieldTermStructure object ID.
ZSpreadthe Z-spread.
DayCounterYield DayCounter ID. Default value = Actual/Actual (ISDA).
CompoundingInterest rate coumpounding rule (Simple:1+rt, Compounded:(1+r)^t, Continuous:e^{rt}). Default value = Compounded.
Frequencyfrequency (e.g. Annual, Semiannual, Every4Month, Quarterly, Bimonthly, Monthly). Default value = Annual.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondConvexityFromYield

double returnValue
qlBondConvexityFromYield(
string ObjectId
double Yield
string DayCounter
string Compounding
string Frequency
long SettlementDate
any Trigger)
Description:

Returns the convexity implied by the given yield and settlement date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Yieldbond yield.
DayCounterYield DayCounter ID. Default value = Actual/Actual (ISDA).
CompoundingInterest rate coumpounding rule (Simple:1+rt, Compounded:(1+r)^t, Continuous:e^{rt}). Default value = Compounded.
Frequencyfrequency (e.g. Annual, Semiannual, Every4Month, Quarterly, Bimonthly, Monthly). Default value = Annual.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondCurrency

string returnValue
qlBondCurrency(
string ObjectId
any Trigger)
Description:

Returns the bond currency.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLibAddin::Bond object
Triggerdependency tracking trigger

qlBondDescription

string returnValue
qlBondDescription(
string ObjectId
any Trigger)
Description:

Returns the bond description string.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLibAddin::Bond object
Triggerdependency tracking trigger

qlBondDirtyPriceFromYield

double returnValue
qlBondDirtyPriceFromYield(
string ObjectId
double Yield
string DayCounter
string Compounding
string Frequency
long SettlementDate
any Trigger)
Description:

Returns the bond dirty price implied by the given yield and settlement date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Yieldbond yield.
DayCounterYield DayCounter ID. Default value = Actual/Actual (ISDA).
CompoundingInterest rate coumpounding rule (Simple:1+rt, Compounded:(1+r)^t, Continuous:e^{rt}). Default value = Compounded.
Frequencyfrequency (e.g. Annual, Semiannual, Every4Month, Quarterly, Bimonthly, Monthly). Default value = Annual.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondDurationFromYield

double returnValue
qlBondDurationFromYield(
string ObjectId
double Yield
string DayCounter
string Compounding
string Frequency
string DurationType
long SettlementDate
any Trigger)
Description:

Returns the duration implied by the given yield and settlement date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Yieldbond yield.
DayCounterYield DayCounter ID. Default value = Actual/Actual (ISDA).
CompoundingInterest rate coumpounding rule (Simple:1+rt, Compounded:(1+r)^t, Continuous:e^{rt}). Default value = Compounded.
Frequencyfrequency (e.g. Annual, Semiannual, Every4Month, Quarterly, Bimonthly, Monthly). Default value = Annual.
DurationTypeDuration type (Simple, Macaulay, or Modified). Default value = Modified.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondFlowAnalysis

vector<vector<any> > returnValue
qlBondFlowAnalysis(
string ObjectId
long AfterDate
any Trigger)
Description:

Returns the bond cash flow analysis.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLibAddin::Bond object
AfterDateShows only cashflows after given date Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondIsTradable

bool returnValue
qlBondIsTradable(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns TRUE if the given Bond is tradable at the given settlement date. The current bond settlement is used if no date is given.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondIssueDate

long returnValue
qlBondIssueDate(
string ObjectId
any Trigger)
Description:

Returns the issue date of the bond.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Triggerdependency tracking trigger

qlBondMaturityDate

long returnValue
qlBondMaturityDate(
string ObjectId
any Trigger)
Description:

Returns the maturity date of the bond.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Triggerdependency tracking trigger

qlBondMaturityLookup

string returnValue
qlBondMaturityLookup(
vector<string> Bonds
long Maturity
any Trigger)
Description:

returns the first maturity-matching Bond object ID.

Supported Platforms:

Excel

Parameters
Bondsvector of Bond IDs.
Maturitymaturity date to look up Bonds for.
Triggerdependency tracking trigger

qlBondMaturitySort

vector<string> returnValue
qlBondMaturitySort(
vector<string> Bonds
any Trigger)
Description:

sorts the Bond object IDs by maturity.

Supported Platforms:

Excel

Parameters
Bondsvector of Bond IDs.
Triggerdependency tracking trigger

qlBondNextCashFlowAmount

double returnValue
qlBondNextCashFlowAmount(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the next cash flow amount.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondNextCashFlowDate

long returnValue
qlBondNextCashFlowDate(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the next cash flow date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondNextCouponRate

double returnValue
qlBondNextCouponRate(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the next coupon rate. Depending on (the Bond and) the given date it can be historic, deterministic or expected in a stochastic sense. When the bond settlement date is used the coupon is the already-fixed not-yet-paid one.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondNotional

double returnValue
qlBondNotional(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the notional of the bond at a given date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondNotionals

vector<double> returnValue
qlBondNotionals(
string ObjectId
any Trigger)
Description:

Returns the notionals of the bond.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Triggerdependency tracking trigger

qlBondPreviousCashFlowAmount

double returnValue
qlBondPreviousCashFlowAmount(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the previous cash flow amount.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondPreviousCashFlowDate

long returnValue
qlBondPreviousCashFlowDate(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the previous cash flow date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondPreviousCouponRate

double returnValue
qlBondPreviousCouponRate(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the previous coupon rate. Depending on (the Bond and) the given date it can be historic, deterministic or expected in a stochastic sense. When the bond settlement date is used the coupon is the last paid one.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondRedemptionAmount

double returnValue
qlBondRedemptionAmount(
string ObjectId
any Trigger)
Description:

Returns the redemption amount of the bond.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLibAddin::Bond object
Triggerdependency tracking trigger

qlBondRedemptionDate

long returnValue
qlBondRedemptionDate(
string ObjectId
any Trigger)
Description:

Returns the redemption payment date of the bond.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLibAddin::Bond object
Triggerdependency tracking trigger

qlBondReferencePeriodEnd

long returnValue
qlBondReferencePeriodEnd(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the reference period end date for the current coupon of the given bond.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondReferencePeriodStart

long returnValue
qlBondReferencePeriodStart(
string ObjectId
long SettlementDate
any Trigger)
Description:

Returns the reference period start date for the current coupon of the given bond.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondSetCouponPricer

void returnValue
qlBondSetCouponPricer(
string ObjectId
string FloatingRateCouponPricer
any Trigger)
Description:

Set the coupon pricer at the given Bond object.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLibAddin::Bond object
FloatingRateCouponPricerFloatingRate coupon pricer object ID.
Triggerdependency tracking trigger

qlBondSetCouponPricers

void returnValue
qlBondSetCouponPricers(
string ObjectId
vector<string> FloatingRateCouponPricer
any Trigger)
Description:

Set the coupon pricer at the given Bond object.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLibAddin::Bond object
FloatingRateCouponPricerFloatingRate coupon pricer object ID.
Triggerdependency tracking trigger

qlBondSettlementDate

long returnValue
qlBondSettlementDate(
string ObjectId
long EvaluationDate
any Trigger)
Description:

Returns the settlement date of the bond.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
EvaluationDateThe current global Settings::EvaluationDate is used if no specific date is given. Default value = QuantLib::Date().
Triggerdependency tracking trigger

qlBondSettlementDays

long returnValue
qlBondSettlementDays(
string ObjectId
any Trigger)
Description:

Returns the number of settlement days of the bond.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Triggerdependency tracking trigger

qlBondStartDate

long returnValue
qlBondStartDate(
string ObjectId
any Trigger)
Description:

Returns the start (i.e. first accrual) date for the given Bond object.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
Triggerdependency tracking trigger

qlBondYieldFromCleanPrice

double returnValue
qlBondYieldFromCleanPrice(
string ObjectId
double CleanPrice
string DayCounter
string Compounding
string Frequency
long SettlementDate
double Accuracy
long MaxIterations
double Guess
any Trigger)
Description:

Returns the yield for the given bond corresponding to the given clean price and settlement date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
CleanPriceclean price.
DayCounterYield DayCounter ID. Default value = Actual/Actual (ISDA).
CompoundingInterest rate coumpounding rule (Simple:1+rt, Compounded:(1+r)^t, Continuous:e^{rt}). Default value = Compounded.
Frequencyfrequency (e.g. Annual, Semiannual, Every4Month, Quarterly, Bimonthly, Monthly). Default value = Annual.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Accuracytolerance. Default value = 1.0e-10.
MaxIterationsmax number of iterations. Default value = 100.
Guessguess. Default value = 0.05.
Triggerdependency tracking trigger

qlBondZSpreadFromCleanPrice

double returnValue
qlBondZSpreadFromCleanPrice(
string ObjectId
double CleanPrice
string YieldCurve
string DayCounter
string Compounding
string Frequency
long SettlementDate
double Accuracy
long MaxIterations
double Guess
any Trigger)
Description:

Returns the z-spread for the given bond corresponding to the given clean price and settlement date.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Bond object
CleanPriceclean price.
YieldCurvediscounting YieldTermStructure object ID.
DayCounterYield DayCounter ID. Default value = Actual/Actual (ISDA).
CompoundingInterest rate coumpounding rule (Simple:1+rt, Compounded:(1+r)^t, Continuous:e^{rt}). Default value = Compounded.
Frequencyfrequency (e.g. Annual, Semiannual, Every4Month, Quarterly, Bimonthly, Monthly). Default value = Annual.
SettlementDateThe current bond settlement date is used if no specific date is given. Default value = QuantLib::Date().
Accuracytolerance. Default value = 1.0e-10.
MaxIterationsmax number of iterations. Default value = 100.
Guessguess. Default value = 0.0.
Triggerdependency tracking trigger

qlCmsRateBond

string returnValue
qlCmsRateBond(
string ObjectId
string Description
string Currency
long SettlementDays
string PaymentBDC
double FaceAmount
string ScheduleID
long FixingDays
bool IsInArrears
string DayCounter
vector<double> Floors
vector<double> Gearings
string SwapIndex
vector<double> Spreads
vector<double> Caps
double Redemption
long IssueDate
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CmsRateBond and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
DescriptionBond description string. Autogenerated if null Default value = std::string().
Currencybond Currency.
SettlementDayssettlement days.
PaymentBDCpayment business day convention. Default value = Following.
FaceAmountFace nominal amount. Default value = 100.0.
ScheduleIDSchedule object ID.
FixingDaysfixing days (e.g. 2). Default value = QuantLib::Null<QuantLib::Natural>().
IsInArrearsTRUE if the fixing is in arrears. Default value = false.
DayCounterPayment DayCounter ID.
Floorsfloor strikes. Default value = std::vector<QuantLib::Rate>().
Gearingsfloating rate gearings. Default value = 1.0.
SwapIndexfloating swap rate index.
Spreadsfloating rate spreads. Default value = 0.0.
Capscap strikes. Default value = std::vector<QuantLib::Rate>().
RedemptionRedemption value. Default value = 100.
IssueDateissue date: the bond can't be traded until then. Default value = QuantLib::Date().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlFixedRateBond

string returnValue
qlFixedRateBond(
string ObjectId
string Description
string Currency
long SettlementDays
double FaceAmount
string ScheduleID
vector<double> Coupons
string DayCounter
string PaymentBDC
double Redemption
long IssueDate
string PaymentCalendar
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class FixedRateBond and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
DescriptionBond description string. Autogenerated if null Default value = std::string().
Currencybond Currency.
SettlementDayssettlement days.
FaceAmountFace nominal amount. Default value = 100.0.
ScheduleIDSchedule object ID.
Couponssimple annual compounding coupon rates.
DayCounterPayment DayCounter ID.
PaymentBDCpayment business day convention. Default value = Following.
RedemptionRedemption value. Default value = 100.0.
IssueDateissue date: the bond can't be traded until then. Default value = QuantLib::Date().
PaymentCalendarpayment holiday calendar (e.g. TARGET).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlFixedRateBond2

string returnValue
qlFixedRateBond2(
string ObjectId
string Description
string Currency
long SettlementDays
double FaceAmount
string ScheduleID
vector<string> Coupons
string PaymentBDC
double Redemption
long IssueDate
string PaymentCalendar
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class FixedRateBond and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
DescriptionBond description string. Autogenerated if null Default value = std::string().
Currencybond Currency.
SettlementDayssettlement days.
FaceAmountFace nominal amount. Default value = 100.0.
ScheduleIDSchedule object ID.
Couponscoupon InterestRate IDs.
PaymentBDCpayment business day convention. Default value = Following.
RedemptionRedemption value. Default value = 100.0.
IssueDateissue date: the bond can't be traded until then. Default value = QuantLib::Date().
PaymentCalendarpayment holiday calendar (e.g. TARGET).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlFloatingRateBond

string returnValue
qlFloatingRateBond(
string ObjectId
string Description
string Currency
long SettlementDays
string PaymentBDC
double FaceAmount
string ScheduleID
long FixingDays
bool IsInArrears
string DayCounter
vector<double> Floors
vector<double> Gearings
string IborIndex
vector<double> Spreads
vector<double> Caps
double Redemption
long IssueDate
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class FloatingRateBond and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
DescriptionBond description string. Autogenerated if null Default value = std::string().
Currencybond Currency.
SettlementDayssettlement days.
PaymentBDCpayment business day convention. Default value = Following.
FaceAmountFace nominal amount. Default value = 100.0.
ScheduleIDSchedule object ID.
FixingDaysfixing days (e.g. 2). Default value = QuantLib::Null<QuantLib::Natural>().
IsInArrearsTRUE if the fixing is in arrears. Default value = false.
DayCounterPayment DayCounter ID.
Floorsfloor strikes. Default value = std::vector<QuantLib::Rate>().
Gearingsfloating rate gearings. Default value = 1.0.
IborIndexfloating rate index.
Spreadsfloating rate spreads. Default value = 0.0.
Capscap strikes. Default value = std::vector<QuantLib::Rate>().
RedemptionRedemption value. Default value = 100.
IssueDateissue date: the bond can't be traded until then. Default value = QuantLib::Date().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlZeroCouponBond

string returnValue
qlZeroCouponBond(
string ObjectId
string Description
string Currency
long SettlementDays
string Calendar
double FaceAmount
long Maturity
string PaymentBDC
double Redemption
long IssueDate
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class ZeroCouponBond and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
DescriptionBond description string. Autogenerated if null Default value = std::string().
Currencybond Currency.
SettlementDayssettlement days.
Calendarholiday calendar (e.g. TARGET).
FaceAmountFace nominal amount. Default value = 100.0.
Maturitymaturity date.
PaymentBDCpayment business day convention. Default value = Following.
RedemptionRedemption value. Default value = 100.
IssueDateissue date: the bond can't be traded until then. Default value = QuantLib::Date().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag