Caplet Volatility Term Structures

Overview

functions to construct and use OptionletVolatilityStructure objects.

Function List

qlCapFloorTermVTSVolatility ()
qlCapFloorTermVTSVolatility2 ()
qlCapFloorTermVolCurve ()
qlCapFloorTermVolCurveOptionDates ()
qlCapFloorTermVolCurveOptionTenors ()
qlCapFloorTermVolSurface ()
qlCapFloorTermVolSurfaceOptionDates ()
qlCapFloorTermVolSurfaceOptionTenors ()
qlCapFloorTermVolSurfaceStrikes ()
qlConstantOptionletVolatility ()
qlOptionletStripper1 ()
qlOptionletStripper1CapFloorPrices ()
qlOptionletStripper1CapFloorVolatilities ()
qlOptionletStripper1OptionletPrices ()
qlOptionletStripper1SwitchStrike ()
qlOptionletStripper2 ()
qlOptionletStripper2AtmCapFloorPrices ()
qlOptionletStripper2AtmCapFloorStrikes ()
qlOptionletStripper2SpreadsVol ()
qlOptionletStripperOptionletAccrualPeriods ()
qlOptionletStripperOptionletFixingTenors ()
qlOptionletStripperOptionletPaymentDates ()
qlOptionletVTSBlackVariance ()
qlOptionletVTSBlackVariance2 ()
qlOptionletVTSVolatility ()
qlOptionletVTSVolatility2 ()
qlRelinkableHandleOptionletVolatilityStructure ()
qlSpreadedOptionletVolatility ()
qlStrippedOptionlet ()
qlStrippedOptionletAdapter ()
qlStrippedOptionletBaseAtmOptionletRates ()
qlStrippedOptionletBaseBusinessDayConvention ()
qlStrippedOptionletBaseCalendar ()
qlStrippedOptionletBaseDayCounter ()
qlStrippedOptionletBaseOptionletFixingDates ()
qlStrippedOptionletBaseOptionletFixingTimes ()
qlStrippedOptionletBaseOptionletVolatilities ()
qlStrippedOptionletBaseSettlementDays ()
qlStrippedOptionletBaseStrikes ()

Function Documentation

qlCapFloorTermVTSVolatility

vector<double> returnValue
qlCapFloorTermVTSVolatility(
string ObjectId
long OptionDate
vector<double> Strike
bool AllowExtrapolation
any Trigger)
Description:

Returns volatility from the given CapFloorTermVolatilityStructure object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::CapFloorTermVolatilityStructure object
OptionDatecaplet/floorlet expiry date.
Strikecaplet/floorlet strike.
AllowExtrapolationExtrapolation Flag (TRUE allows extrapolation). Default value = false.
Triggerdependency tracking trigger

qlCapFloorTermVTSVolatility2

vector<double> returnValue
qlCapFloorTermVTSVolatility2(
string ObjectId
string OptionTenor
vector<double> Strike
bool AllowExtrapolation
any Trigger)
Description:

Returns volatility from the given CapFloorTermVolatilityStructure object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::CapFloorTermVolatilityStructure object
OptionTenorcaplet/floorlet option tenor.
Strikecaplet/floorlet strike.
AllowExtrapolationExtrapolation Flag (TRUE allows extrapolation). Default value = false.
Triggerdependency tracking trigger

qlCapFloorTermVolCurve

string returnValue
qlCapFloorTermVolCurve(
string ObjectId
long SettlementDays
string Calendar
string BusinessDayConvention
vector<string> OptionTenors
vector<string> Volatilities
string DayCounter
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CapFloorTermVolCurve and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
SettlementDaysnumber of settlement days.
Calendarholiday calendar used for calculating the exercise dates from the expiries tenor.
BusinessDayConventionBusiness day convention used for calculating the exercise dates from the expiries.
OptionTenorsoption tenors.
Volatilitiesvol quotes vector.
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlCapFloorTermVolCurveOptionDates

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

Returns the option dates from the given CapFloorTermVolCurve object.

Supported Platforms:

Excel

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

qlCapFloorTermVolCurveOptionTenors

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

Returns the option tenors from the given CapFloorTermVolCurve object.

Supported Platforms:

Excel

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

qlCapFloorTermVolSurface

string returnValue
qlCapFloorTermVolSurface(
string ObjectId
long SettlementDays
string Calendar
string BusinessDayConvention
vector<string> OptionTenors
vector<double> Strikes
vector<vector<string> > Volatilities
string DayCounter
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class CapFloorTermVolSurface and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
SettlementDaysnumber of settlement days.
Calendarholiday calendar used for calculating the exercise dates from the expiries tenor.
BusinessDayConventionBusiness day convention used for calculating the exercise dates from the expiries.
OptionTenorsoption tenors.
Strikescap strikes.
Volatilitiesvol quotes matrix.
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlCapFloorTermVolSurfaceOptionDates

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

Returns the option dates from the given CapFloorTermVolSurface object.

Supported Platforms:

Excel

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

qlCapFloorTermVolSurfaceOptionTenors

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

Returns the option tenors from the given CapFloorTermVolSurface object.

Supported Platforms:

Excel

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

qlCapFloorTermVolSurfaceStrikes

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

Returns the option strikes from the given CapFloorTermVolSurface object.

Supported Platforms:

Excel

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

qlConstantOptionletVolatility

string returnValue
qlConstantOptionletVolatility(
string ObjectId
long NDays
string Calendar
string BusinessDayConvention
string Volatility
string DayCounter
string VolatilityType
double Displacement
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class ConstantOptionletVolatility and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
NDaysnumber of days to advance from EvaluationDate: it fixes the date at which the variance = 0.0. Default value = 0.
Calendarholiday calendar (e.g. TARGET) used for calculating the exercise dates from the expiries.
BusinessDayConventionBusiness day convention used for calculating the exercise dates from the expiries.
Volatilitycap/floor constant volatility Quote.
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
VolatilityTypeVolatility type: Normal or ShiftedLognormal. Default value = ShiftedLognormal.
DisplacementShift for the lognormal model. Default value = 0.00.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlOptionletStripper1

string returnValue
qlOptionletStripper1(
string ObjectId
string TermVolSurface
string IborIndex
double SwitchStrike
double Accuracy
long MaxIter
string VolatilityType
double Displacement
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class OptionletStripper1 and return its id

Supported Platforms:

Excel

Parameters
ObjectIdid of object to be created
TermVolSurfaceCapFloorTermVolSurface object ID.
IborIndexcap index object ID.
SwitchStrikeswitch strike. Default value = QuantLib::Null<QuantLib::Rate>().
Accuracysolver accuracy. Default value = 1.0e-6.
MaxItersolver max iterations. Default value = 100.
VolatilityTypeVolatility type: Normal or ShiftedLognormal. Default value = ShiftedLognormal.
DisplacementShift for the lognormal model. Default value = 0.00.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlOptionletStripper1CapFloorPrices

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

Returns option prices matrix from the given OptionletStripper1 object.

Supported Platforms:

Excel

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

qlOptionletStripper1CapFloorVolatilities

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

Returns option volatilities matrix from the given OptionletStripper1 object.

Supported Platforms:

Excel

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

qlOptionletStripper1OptionletPrices

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

Returns optionlet prices matrix from the given OptionletStripper1 object.

Supported Platforms:

Excel

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

qlOptionletStripper1SwitchStrike

double returnValue
qlOptionletStripper1SwitchStrike(
string ObjectId
any Trigger)
Description:

Returns option switch strike from the given OptionletStripper1 object.

Supported Platforms:

Excel

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

qlOptionletStripper2

string returnValue
qlOptionletStripper2(
string ObjectId
string OptionletStripper1
string TermVolCurve
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class OptionletStripper2 and return its id

Supported Platforms:

Excel

Parameters
ObjectIdid of object to be created
OptionletStripper1OptionletStripper1 object id.
TermVolCurveCapFloorTermVolCurve object id.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlOptionletStripper2AtmCapFloorPrices

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

Returns ATM option prices from the given OptionletStripper2 object.

Supported Platforms:

Excel

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

qlOptionletStripper2AtmCapFloorStrikes

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

Returns option ATM strikes from the given OptionletStripper2 object.

Supported Platforms:

Excel

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

qlOptionletStripper2SpreadsVol

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

Returns optionlet spread (with respect to ATM) vols from the given OptionletStripper2 object.

Supported Platforms:

Excel

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

qlOptionletStripperOptionletAccrualPeriods

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

Returns optionlet accrual periods from the given OptionletStripper object.

Supported Platforms:

Excel

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

qlOptionletStripperOptionletFixingTenors

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

Returns optionlet fixing tenors from the given OptionletStripper object.

Supported Platforms:

Excel

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

qlOptionletStripperOptionletPaymentDates

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

Returns optionlet payment dates from the given OptionletStripper object.

Supported Platforms:

Excel

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

qlOptionletVTSBlackVariance

vector<double> returnValue
qlOptionletVTSBlackVariance(
string ObjectId
vector<long> OptionDate
double Strike
bool AllowExtrapolation
any Trigger)
Description:

Returns the black variance corresponding to a given strike for a given exercise date.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::OptionletVolatilityStructure object
OptionDatecap/floor expiry date.
Strikecap/floor strike vector.
AllowExtrapolationExtrapolation Flag (TRUE allows extrapolation).
Triggerdependency tracking trigger

qlOptionletVTSBlackVariance2

vector<double> returnValue
qlOptionletVTSBlackVariance2(
string ObjectId
vector<string> OptionTenor
double Strike
bool AllowExtrapolation
any Trigger)
Description:

Returns the black variance corresponding to a given strike for a given exercise date.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::OptionletVolatilityStructure object
OptionTenorcap/floor expiry date.
Strikecap/floor strike vector.
AllowExtrapolationExtrapolation Flag (TRUE allows extrapolation).
Triggerdependency tracking trigger

qlOptionletVTSVolatility

vector<double> returnValue
qlOptionletVTSVolatility(
string ObjectId
long OptionDate
vector<double> Strike
bool AllowExtrapolation
any Trigger)
Description:

Returns volatility from the given OptionletVolatilityStructure object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::OptionletVolatilityStructure object
OptionDatecaplet/floorlet expiry date.
Strikecaplet/floorlet strike.
AllowExtrapolationExtrapolation Flag (TRUE allows extrapolation). Default value = false.
Triggerdependency tracking trigger

qlOptionletVTSVolatility2

vector<double> returnValue
qlOptionletVTSVolatility2(
string ObjectId
string OptionTenor
vector<double> Strike
bool AllowExtrapolation
any Trigger)
Description:

Returns volatility from the given OptionletVolatilityStructure object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::OptionletVolatilityStructure object
OptionTenorcaplet/floorlet option tenor.
Strikecaplet/floorlet strike.
AllowExtrapolationExtrapolation Flag (TRUE allows extrapolation). Default value = false.
Triggerdependency tracking trigger

qlRelinkableHandleOptionletVolatilityStructure

string returnValue
qlRelinkableHandleOptionletVolatilityStructure(
string ObjectId
string CurrentLink
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class RelinkableHandleImpl<QuantLibAddin::OptionletVolatilityStructure, QuantLib::OptionletVolatilityStructure> and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
CurrentLinkOptionletVolatilityStructure object ID. If omitted, nothing is linked by the RelinkableHandle. Default value = .
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSpreadedOptionletVolatility

string returnValue
qlSpreadedOptionletVolatility(
string ObjectId
string BaseVolStructure
string Spread
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class SpreadedOptionletVolatility and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
BaseVolStructureBase OptionletVolatilityStructure object ID.
Spreadspread.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlStrippedOptionlet

string returnValue
qlStrippedOptionlet(
string ObjectId
long SettlementDays
string Calendar
string BusinessDayConvention
string IborIndex
vector<long> OptionletDates
vector<double> Strikes
vector<vector<string> > Volatilities
string DayCounter
string VolatilityType
double Displacement
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class StrippedOptionlet and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
SettlementDaysnumber of settlement days. Default value = 0.
Calendarholiday calendar (e.g. TARGET) used for calculating the exercise dates from the expiries.
BusinessDayConventionBusiness day convention used for calculating the exercise dates from the expiries.
IborIndexIborIndex object ID.
OptionletDatesoptionlet dates.
Strikesstrikes.
Volatilitiesvol quotes.
DayCounterDayCounter ID. Default value = Actual/365 (Fixed).
VolatilityTypeVolatility type: Normal or ShiftedLognormal. Default value = ShiftedLognormal.
DisplacementShift for the lognormal model. Default value = 0.00.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlStrippedOptionletAdapter

string returnValue
qlStrippedOptionletAdapter(
string ObjectId
string StrippedOptionletBase
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class StrippedOptionletAdapter and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
StrippedOptionletBaseStripped Optionlet object id.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlStrippedOptionletBaseAtmOptionletRates

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

Returns atm optionlet rates from the given StrippedOptionletBase object.

Supported Platforms:

Excel

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

qlStrippedOptionletBaseBusinessDayConvention

string returnValue
qlStrippedOptionletBaseBusinessDayConvention(
string ObjectId
any Trigger)
Description:

Returns the business day convention used in tenor to date conversion.

Supported Platforms:

Excel

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

qlStrippedOptionletBaseCalendar

string returnValue
qlStrippedOptionletBaseCalendar(
string ObjectId
any Trigger)
Description:

Returns the calendar used by the given StrippedOptionletBase object.

Supported Platforms:

Excel

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

qlStrippedOptionletBaseDayCounter

string returnValue
qlStrippedOptionletBaseDayCounter(
string ObjectId
any Trigger)
Description:

Returns the DayCounter used by the given StrippedOptionletBase object.

Supported Platforms:

Excel

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

qlStrippedOptionletBaseOptionletFixingDates

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

Returns optionlet fixing dates from the given StrippedOptionletBase object.

Supported Platforms:

Excel

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

qlStrippedOptionletBaseOptionletFixingTimes

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

Returns optionlet fixing times from the given StrippedOptionletBase object.

Supported Platforms:

Excel

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

qlStrippedOptionletBaseOptionletVolatilities

vector<double> returnValue
qlStrippedOptionletBaseOptionletVolatilities(
string ObjectId
long Index
any Trigger)
Description:

Returns optionlet volatilities from the given StrippedOptionletBase object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::StrippedOptionletBase object
Indexoptionlet index.
Triggerdependency tracking trigger

qlStrippedOptionletBaseSettlementDays

long returnValue
qlStrippedOptionletBaseSettlementDays(
string ObjectId
any Trigger)
Description:

Returns the number of settlement days for the given StrippedOptionletBase object.

Supported Platforms:

Excel, C++

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

qlStrippedOptionletBaseStrikes

vector<double> returnValue
qlStrippedOptionletBaseStrikes(
string ObjectId
long Index
any Trigger)
Description:

Returns optionlet strike from the given StrippedOptionletBase object.

Supported Platforms:

Excel

Parameters
ObjectIdid of existing QuantLib::StrippedOptionletBase object
Indexoptionlet index.
Triggerdependency tracking trigger