Swaption

Overview

functions to construct and use Swaption objects.

Function List

qlMakeSwaption ()
qlSwaption ()
qlSwaptionImpliedVolatility ()
qlSwaptionSettlementType ()
qlSwaptionType ()

Function Documentation

qlMakeSwaption

string returnValue
qlMakeSwaption(
string ObjectId
string SwapIndex
string OptionTenor
double Strike
string PricingEngineID
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class Swaption and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
SwapIndexSwapIndex object ID.
OptionTenoroption tenor as Period (e.g. '5Y').
Strikestrike. Default value = QuantLib::Null<QuantLib::Rate>().
PricingEngineIDSwaption PricingEngine object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSwaption

string returnValue
qlSwaption(
string ObjectId
string VanillaSwap
string Exercise
string SettlementType
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class Swaption and return its id

Supported Platforms:

Excel, Calc, C++

Parameters
ObjectIdid of object to be created
VanillaSwapunderlying (vanilla) swap object ID.
ExerciseExercise object ID.
SettlementTypesettlement type (Physical, Cash).
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlSwaptionImpliedVolatility

double returnValue
qlSwaptionImpliedVolatility(
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 Swaption object.

Supported Platforms:

Excel, Calc

Parameters
ObjectIdid of existing QuantLib::Swaption 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

qlSwaptionSettlementType

string returnValue
qlSwaptionSettlementType(
string ObjectId
any Trigger)
Description:

returns the settlement type (Cash or Delivery) for the given Swaption object.

Supported Platforms:

Excel, Calc

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

qlSwaptionType

string returnValue
qlSwaptionType(
string ObjectId
any Trigger)
Description:

returns the type (Payer or Receiver) for the given Swaption object.

Supported Platforms:

Excel, Calc

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