Coupon Vectors

Overview

functions to construct and use Leg objects.

Function List

qlCmsCouponPricer ()
qlCmsLeg ()
qlCmsZeroLeg ()
qlConundrumPricerByNumericalIntegration ()
qlConundrumPricerByNumericalIntegrationUpperLimit ()
qlDigitalCmsLeg ()
qlDigitalIborLeg ()
qlDigitalReplication ()
qlFixedRateLeg ()
qlFixedRateLeg2 ()
qlIborCouponPricer ()
qlIborLeg ()
qlRangeAccrualLeg ()

Function Documentation

qlCmsCouponPricer

string returnValue
qlCmsCouponPricer(
string ObjectId
string Volatility
string CmsCouponPricerType
string YieldCurveModel
string MeanReversion
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CmsCouponPricer and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
VolatilitySwaption Volatility Structure object ID.
CmsCouponPricerTypeCms Coupon Pricer Type (e.g ConundrumByBlack, ConundrumByNumericalIntegration, ClassicalAnaliticalFormula).
YieldCurveModelmodel of the yield curve (e.g Standard, ExactYield, ParallelShifts, NonParallelShifts).
MeanReversionmean reversion quote.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlCmsLeg

string returnValue
qlCmsLeg(
string ObjectId
string PaymentBDC
vector<double> Nominals
string ScheduleID
vector<long> FixingDays
bool IsInArrears
string DayCounter
vector<double> Floors
vector<double> Gearings
string SwapIndex
vector<double> Spreads
vector<double> Caps
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CmsLeg and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
PaymentBDCpayment business day convention. Default value = Following.
NominalsNominal amount vector.
ScheduleIDSchedule object ID.
FixingDaysfixing days (e.g. 2). Default value = std::vector<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.
SwapIndexunderlying SwapIndex object ID.
Spreadsfloating rate spreads. Default value = 0.0.
Capscap strikes. Default value = std::vector<QuantLib::Rate>().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlCmsZeroLeg

string returnValue
qlCmsZeroLeg(
string ObjectId
string PaymentBDC
vector<double> Nominals
string ScheduleID
vector<long> FixingDays
bool IsInArrears
string DayCounter
vector<double> Floors
vector<double> Gearings
string SwapIndex
vector<double> Spreads
vector<double> Caps
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CmsZeroLeg and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
PaymentBDCpayment business day convention. Default value = Following.
NominalsNominal amount vector.
ScheduleIDSchedule object ID.
FixingDaysfixing days (e.g. 2). Default value = std::vector<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.
SwapIndexunderlying SwapIndex object ID.
Spreadsfloating rate spreads. Default value = 0.0.
Capscap strikes. Default value = std::vector<QuantLib::Rate>().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlConundrumPricerByNumericalIntegration

string returnValue
qlConundrumPricerByNumericalIntegration(
string ObjectId
string SwaptionVol
string YieldCurveModel
string MeanReversion
double LowerLimit
double UpperLimit
double Precision
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class NumericHaganPricer and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
SwaptionVolVolatility Cube by Sabr.
YieldCurveModelmodel of the yield curve (e.g Standard, ExactYield, ParallelShifts, NonParallelShifts).
MeanReversionmean reversion.
LowerLimitlower limit. Default value = 0.0.
UpperLimitupper limit. Default value = 1.0.
Precisionprecision. Default value = 1.0e-6.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlConundrumPricerByNumericalIntegrationUpperLimit

double returnValue
qlConundrumPricerByNumericalIntegrationUpperLimit(
string ObjectId
any Trigger)
Description:

Returns the upper limit of the integral.

Supported Platforms:

Excel

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

qlDigitalCmsLeg

string returnValue
qlDigitalCmsLeg(
string ObjectId
string PaymentBDC
vector<double> Nominals
string ScheduleID
vector<long> FixingDays
bool IsInArrears
string DayCounter
vector<double> Gearings
string SwapIndex
vector<double> Spreads
vector<double> CallStrikes
string CallSpecs
vector<double> CallPayoff
vector<double> PutStrikes
string PutSpecs
vector<double> PutPayoff
string Replication
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class DigitalCmsLeg and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
PaymentBDCpayment business day convention. Default value = Following.
Nominalsnominal amount vector.
ScheduleIDschedule object ID.
FixingDaysfixing days. Default value = std::vector<QuantLib::Natural>().
IsInArrearsTRUE if the fixing is in arrears. Default value = false.
DayCounterPayment DayCounter ID.
Gearingsfloating rate gearings. Default value = 1.0.
SwapIndexswap rate index.
Spreadsfloating rate spreads. Default value = 0.0.
CallStrikesoption strikes. If omitted, no call is assumed. Default value = std::vector<QuantLib::Rate>().
CallSpecscall position (Short, Long) and ATM inclusion.
CallPayoffpayoff if the call ends ITM. If omitted, asset-or-nothing option is assumed. Default value = std::vector<QuantLib::Rate>().
PutStrikesoption strikes. If omitted, no put is assumed. Default value = std::vector<QuantLib::Rate>().
PutSpecsput position (Short, Long) and ATM inclusion.
PutPayoffpayoff if the put ends ITM. If omitted, asset-or-nothing option is assumed. Default value = std::vector<QuantLib::Rate>().
Replicationreplication object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlDigitalIborLeg

string returnValue
qlDigitalIborLeg(
string ObjectId
string PaymentBDC
vector<double> Nominals
string ScheduleID
vector<long> FixingDays
bool IsInArrears
string DayCounter
vector<double> Gearings
string IborIndex
vector<double> Spreads
vector<double> CallStrikes
string CallSpecs
vector<double> CallPayoff
vector<double> PutStrikes
string PutSpecs
vector<double> PutPayoff
string Replication
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class DigitalIborLeg and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
PaymentBDCpayment business day convention. Default value = Following.
Nominalsnominal amount vector.
ScheduleIDschedule object ID.
FixingDaysfixing days. Default value = std::vector<QuantLib::Natural>().
IsInArrearsTRUE if the fixing is in arrears. Default value = false.
DayCounterPayment DayCounter ID.
Gearingsfloating rate gearings. Default value = 1.0.
IborIndexfloating rate index.
Spreadsfloating rate spreads. Default value = 0.0.
CallStrikesoption strikes. If omitted, no call is assumed. Default value = std::vector<QuantLib::Rate>().
CallSpecscall position (Short, Long) and ATM inclusion.
CallPayoffpayoff if the call ends ITM. If omitted, asset-or-nothing option is assumed. Default value = std::vector<QuantLib::Rate>().
PutStrikesoption strikes. If omitted, no put is assumed. Default value = std::vector<QuantLib::Rate>().
PutSpecsput position (Short, Long) and ATM inclusion.
PutPayoffpayoff if the put ends ITM. If omitted, asset-or-nothing option is assumed. Default value = std::vector<QuantLib::Rate>().
Replicationreplication object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlDigitalReplication

string returnValue
qlDigitalReplication(
string ObjectId
string Replication
double Gap
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class DigitalReplication and return its id

Supported Platforms:

Excel

Parameters
ObjectIdid of object to be created
ReplicationReplication type (Sub, Central or Super).
Gapspread in strikes used in call/put replication. Default value = 0.0001.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlFixedRateLeg

string returnValue
qlFixedRateLeg(
string ObjectId
string PaymentBDC
vector<double> Nominals
string ScheduleID
vector<double> Coupons
string DayCounter
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class FixedRateLeg and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
PaymentBDCpayment business day convention. Default value = Following.
NominalsNominal amount vector.
ScheduleIDSchedule object ID.
Couponscoupon fixed rates.
DayCounterPayment DayCounter ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlFixedRateLeg2

string returnValue
qlFixedRateLeg2(
string ObjectId
string PaymentBDC
vector<double> Nominals
string ScheduleID
vector<string> Coupons
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class FixedRateLeg and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
PaymentBDCpayment business day convention. Default value = Following.
NominalsNominal amount vector.
ScheduleIDSchedule object ID.
Couponscoupon InterestRate IDs.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlIborCouponPricer

string returnValue
qlIborCouponPricer(
string ObjectId
string Volatility
string IborCouponPricerType
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class IborCouponPricer and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
VolatilityCaplet Volatility Structure object ID.
IborCouponPricerTypeIbor Coupon Pricer Type (e.g IborByBlack, ..).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlIborLeg

string returnValue
qlIborLeg(
string ObjectId
string PaymentBDC
vector<double> Nominals
string ScheduleID
vector<long> FixingDays
bool IsInArrears
string DayCounter
vector<double> Floors
vector<double> Gearings
string IborIndex
vector<double> Spreads
vector<double> Caps
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class IborLeg and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
PaymentBDCpayment business day convention. Default value = Following.
NominalsNominal amount vector.
ScheduleIDSchedule object ID.
FixingDaysfixing days (e.g. 2). Default value = std::vector<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>().
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlRangeAccrualLeg

string returnValue
qlRangeAccrualLeg(
string ObjectId
string PaymentBDC
vector<double> Nominals
string ScheduleID
vector<long> FixingDays
string DayCounter
vector<double> LowerStrikes
vector<double> Gearings
string IborIndex
vector<double> Spreads
vector<double> UpperStrikes
string ObservationsTenor
string ObservationsBDC
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class RangeAccrualLeg and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
PaymentBDCpayment business day convention. Default value = Following.
NominalsNominal amount vector.
ScheduleIDSchedule object ID.
FixingDaysfixing days (e.g. 2). Default value = std::vector<QuantLib::Natural>().
DayCounterPayment DayCounter ID.
LowerStrikeslower strikes. Default value = std::vector<QuantLib::Rate>().
Gearingsfloating rate gearings. Default value = 1.0.
IborIndexunderlying IborIndex object ID.
Spreadsfloating rate spreads. Default value = 0.0.
UpperStrikesupper strikes. Default value = std::vector<QuantLib::Rate>().
ObservationsTenorobservations tenor period.
ObservationsBDCobservations business day convention. Default value = Modified Following.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag