Options

Overview

functions to construct and use Option objects.

Function List

qlBarrierOption ()
qlCaAsianOption ()
qlDaAsianOption ()
qlDelta ()
qlDeltaForward ()
qlDividendRho ()
qlDividendVanillaOption ()
qlElasticity ()
qlEuropeanOption ()
qlForwardVanillaOption ()
qlGamma ()
qlItmCashProbability ()
qlQuantoForwardVanillaOption ()
qlQuantoVanillaOption ()
qlRho ()
qlTheta ()
qlThetaPerDay ()
qlVanillaOption ()
qlVega ()

Function Documentation

qlBarrierOption

string returnValue
qlBarrierOption(
string ObjectId
string BarrierType
double Barrier
double Rebate
string Payoff
string Exercise
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class BarrierOption and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
BarrierTypebarrier type.
Barrierbarrier.
Rebaterebate.
PayoffStrikedTypePayoff object ID.
ExerciseExercise object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlCaAsianOption

string returnValue
qlCaAsianOption(
string ObjectId
string AverageType
string Payoff
string Exercise
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class ContinuousAveragingAsianOption and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
AverageTypeaverage type.
PayoffStrikedTypePayoff object ID.
ExerciseExercise object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlDaAsianOption

string returnValue
qlDaAsianOption(
string ObjectId
string AverageType
double RunningAccumulator
long PastFixings
vector<long> FixingDates
string Payoff
string Exercise
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class DiscreteAveragingAsianOption and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
AverageTypeaverage type.
RunningAccumulatorrunning accumulator.
PastFixingspast fixings.
FixingDatesfixing dates.
PayoffStrikedTypePayoff object ID.
ExerciseExercise object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlDelta

double returnValue
qlDelta(
string ObjectId
any Trigger)
Description:

delta of an option.

Supported Platforms:

Excel

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

qlDeltaForward

double returnValue
qlDeltaForward(
string ObjectId
any Trigger)
Description:

delta forward of an option.

Supported Platforms:

Excel

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

qlDividendRho

double returnValue
qlDividendRho(
string ObjectId
any Trigger)
Description:

dividend rho of an option.

Supported Platforms:

Excel

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

qlDividendVanillaOption

string returnValue
qlDividendVanillaOption(
string ObjectId
string Payoff
string Exercise
vector<long> DividendDates
vector<double> Dividends
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class DividendVanillaOption and return its id

Supported Platforms:

Excel, C++, Calc

Parameters
ObjectIdid of object to be created
PayoffStrikedTypePayoff object ID.
ExerciseExercise object ID.
DividendDatesvector of dividend dates.
Dividendsvector of dividends.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlElasticity

double returnValue
qlElasticity(
string ObjectId
any Trigger)
Description:

elasticity of an option.

Supported Platforms:

Excel

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

qlEuropeanOption

string returnValue
qlEuropeanOption(
string ObjectId
string Payoff
string Exercise
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class EuropeanOption and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
PayoffStrikedTypePayoff object ID.
ExerciseExercise object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlForwardVanillaOption

string returnValue
qlForwardVanillaOption(
string ObjectId
double Moneyness
long ResetDate
string Payoff
string Exercise
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class ForwardVanillaOption and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
Moneynessmoneyness.
ResetDatereset date.
PayoffStrikedTypePayoff object ID.
ExerciseExercise object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlGamma

double returnValue
qlGamma(
string ObjectId
any Trigger)
Description:

gamma of an option.

Supported Platforms:

Excel

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

qlItmCashProbability

double returnValue
qlItmCashProbability(
string ObjectId
any Trigger)
Description:

itm cash probability of an option.

Supported Platforms:

Excel

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

qlQuantoForwardVanillaOption

string returnValue
qlQuantoForwardVanillaOption(
string ObjectId
double Moneyness
long ResetDate
string Payoff
string Exercise
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class QuantoForwardVanillaOption and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
Moneynessmoneyness.
ResetDatereset date.
PayoffStrikedTypePayoff object ID.
ExerciseExercise object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlQuantoVanillaOption

string returnValue
qlQuantoVanillaOption(
string ObjectId
string Payoff
string Exercise
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class QuantoVanillaOption and return its id

Supported Platforms:

Excel, C++

Parameters
ObjectIdid of object to be created
PayoffStrikedTypePayoff object ID.
ExerciseExercise object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlRho

double returnValue
qlRho(
string ObjectId
any Trigger)
Description:

rho of an option.

Supported Platforms:

Excel

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

qlTheta

double returnValue
qlTheta(
string ObjectId
any Trigger)
Description:

theta of an option.

Supported Platforms:

Excel

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

qlThetaPerDay

double returnValue
qlThetaPerDay(
string ObjectId
any Trigger)
Description:

theta per day of an option.

Supported Platforms:

Excel

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

qlVanillaOption

string returnValue
qlVanillaOption(
string ObjectId
string Payoff
string Exercise
bool Permanent
any Trigger
bool Overwrite)
Description:

Construct an object of class VanillaOption and return its id

Supported Platforms:

Excel, Calc, C, Guile, C++

Parameters
ObjectIdid of object to be created
PayoffStrikedTypePayoff object ID.
ExerciseExercise object ID.
Permanentobject permanent/nonpermanent
Triggerdependency tracking trigger
Overwriteoverwrite flag

qlVega

double returnValue
qlVega(
string ObjectId
any Trigger)
Description:

vega of an option.

Supported Platforms:

Excel

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