Caps/Floors

Overview

functions to construct and use CapFloor objects.

Function List

qlCapFloor ()
qlCapFloorAtmRate ()
qlCapFloorCapRates ()
qlCapFloorFloorRates ()
qlCapFloorImpliedVolatility ()
qlCapFloorLegAnalysis ()
qlCapFloorMaturityDate ()
qlCapFloorStartDate ()
qlCapFloorType ()
qlMakeCapFloor ()

Function Documentation

qlCapFloor

string returnValue
qlCapFloor(
string ObjectId
string OptionType
string LegID
vector<double> Strikes
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CapFloor and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
OptionTypeoption type (cap or floor).
LegIDcoupon vector.
Strikesstrikes.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlCapFloorAtmRate

double returnValue
qlCapFloorAtmRate(
string ObjectId
string YieldCurve
any Trigger)
Description:

Returns the at-the-money rate for the given CapFloor object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::CapFloor object
YieldCurvediscounting YieldTermStructure object ID.
Triggerdependency tracking trigger

qlCapFloorCapRates

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

Returns the cap rates for the given CapFloor object.

Supported Platforms:

Excel

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

qlCapFloorFloorRates

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

Returns the floor rates for the given CapFloor object.

Supported Platforms:

Excel

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

qlCapFloorImpliedVolatility

double returnValue
qlCapFloorImpliedVolatility(
string ObjectId
double Price
string YieldCurve
double Guess
double Accuracy
long MaxIter
double MinVol
double MaxVol
string VolatilityType
double Displacement
any Trigger)
Description:

Returns the volatility implied by the given price for the given CapFloor object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::CapFloor object
PricePrice used to infer the implied volatility.
YieldCurvediscounting YieldTermStructure object ID.
GuessVolatility guess. Default value = 0.10.
Accuracysolver accuracy. Default value = 1.0e-6.
MaxItersolver max iterations. Default value = 100.
MinVolMinimum volatility, no lower solution. Default value = 1.0e-7.
MaxVolMaximum volatility, no higher solution. Default value = 4.0.
VolatilityTypeVolatility type. Default value = ShiftedLognormal.
Displacementdisplacement in a displaced diffusion model. Default value = 0.0.
Triggerdependency tracking trigger

qlCapFloorLegAnalysis

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

Returns the cash flow analysis for the given CapFloor object.

Supported Platforms:

Excel

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

qlCapFloorMaturityDate

long returnValue
qlCapFloorMaturityDate(
string ObjectId
any Trigger)
Description:

Returns the maturity (i.e. last payment) date for the given CapFloor object.

Supported Platforms:

Excel, Calc

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

qlCapFloorStartDate

long returnValue
qlCapFloorStartDate(
string ObjectId
any Trigger)
Description:

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

Supported Platforms:

Excel, Calc

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

qlCapFloorType

string returnValue
qlCapFloorType(
string ObjectId
any Trigger)
Description:

Returns the type (e.g. Cap, Floor) for the given CapFloor object.

Supported Platforms:

Excel

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

qlMakeCapFloor

string returnValue
qlMakeCapFloor(
string ObjectId
string OptionType
string Length
string IborIndex
double Strike
string ForwardStart
string PricingEngineID
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CapFloor and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
OptionTypeoption type (Cap or Floor).
Lengthas period (e.g. 10Y).
IborIndexfloating IborIndex object ID.
Strikestrike. Default value = QuantLib::Null<QuantLib::Rate>().
ForwardStartas period (if zero days the first caplet is removed).
PricingEngineIDCapFloor PricingEngine object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag