Overview
functions to construct and use PricingEngine objects.
Function List
qlAnalyticCapFloorEngine ()
qlBachelierBlackFormula ()
qlBachelierBlackFormula2 ()
qlBachelierBlackFormulaImpliedVol ()
qlBachelierCapFloorEngine ()
qlBachelierCapFloorEngine2 ()
qlBinomialPricingEngine ()
qlBlackCalculator ()
qlBlackCalculator2 ()
qlBlackCalculatorAlpha ()
qlBlackCalculatorBeta ()
qlBlackCalculatorDelta ()
qlBlackCalculatorDeltaForward ()
qlBlackCalculatorDividendRho ()
qlBlackCalculatorElasticity ()
qlBlackCalculatorElasticityForward ()
qlBlackCalculatorGamma ()
qlBlackCalculatorGammaForward ()
qlBlackCalculatorItmAssetProbability ()
qlBlackCalculatorItmCashProbability ()
qlBlackCalculatorRho ()
qlBlackCalculatorStrikeSensitivity ()
qlBlackCalculatorTheta ()
qlBlackCalculatorThetaPerDay ()
qlBlackCalculatorValue ()
qlBlackCalculatorVega ()
qlBlackCapFloorEngine ()
qlBlackCapFloorEngine2 ()
qlBlackFormula ()
qlBlackFormula2 ()
qlBlackFormulaCashItmProbability ()
qlBlackFormulaCashItmProbability2 ()
qlBlackFormulaImpliedStdDev ()
qlBlackFormulaImpliedStdDev2 ()
qlBlackFormulaImpliedStdDevApproximation ()
qlBlackFormulaImpliedStdDevApproximation2 ()
qlBlackFormulaStdDevDerivative ()
qlBlackFormulaStdDevDerivative2 ()
qlBlackScholesCalculator ()
qlBlackScholesCalculator2 ()
qlBlackScholesCalculatorDelta ()
qlBlackScholesCalculatorElasticity ()
qlBlackScholesCalculatorGamma ()
qlBlackScholesCalculatorTheta ()
qlBlackScholesCalculatorThetaPerDay ()
qlBlackSwaptionEngine ()
qlBlackSwaptionEngine2 ()
qlBondEngine ()
qlDiscountingSwapEngine ()
qlJamshidianSwaptionEngine ()
qlModelG2SwaptionEngine ()
qlPricingEngine ()
qlTreeSwaptionEngine ()
Function Documentation
- Description:
Construct an object of class AnalyticCapFloorEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created HandleModel affine model (providing a discount bond option pricing formula) object ID. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Black style formula when forward is normal rather than log-normal, i.e. essentially the model of Bachelier.
- Supported Platforms:
Excel
- Parameters
-
OptionType option type (i.e. Call or Put). Strike option strike. AtmForwardValue underlying asset at-the-money forward value. StdDev standard deviation, i.e. annualized ABSOLUTE volatility times the square root of time to option expiry. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Trigger dependency tracking trigger
- Description:
Black style formula when forward is normal rather than log-normal, i.e. essentially the model of Bachelier. It uses a PlainVanillaPayoff object as input.
- Supported Platforms:
Excel
- Parameters
-
Payoff PlainVanillaPayoff object ID. AtmForwardValue underlying asset at-the-money forward value. StdDev standard deviation, i.e. annualized ABSOLUTE volatility times the square root of time to option expiry. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Trigger dependency tracking trigger
qlBachelierBlackFormulaImpliedVol
- Description:
Normal implied volatility.
- Supported Platforms:
Excel
- Parameters
-
OptionType option type (i.e. Call or Put). Strike option strike. AtmForwardValue underlying asset at-the-money forward value. TimeToExpiry time to expiry as year fraction. OptionPrice option price. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Trigger dependency tracking trigger
- Description:
Construct an object of class BachelierCapFloorEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created YieldCurve discounting YieldTermStructure object ID. VolTS OptionletVolatilityStructure object ID. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class BachelierCapFloorEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created YieldCurve discounting YieldTermStructure object ID. Vol Term (i.e. flat) volatility. DayCounter DayCounter ID. Default value = Actual/365 (Fixed). Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class PricingEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created EngineID engine type. ProcessID GeneralizedBlackScholesProcess object ID. TimeSteps #/time steps. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class BlackCalculator and return its id
- Supported Platforms:
Excel, C++
- Parameters
-
ObjectId id of object to be created OptionType option type (i.e. Call or Put). Strike option strike. AtmForwardValue underlying asset at-the-money forward value. StdDev standard deviation, i.e. annualized percentage volatility times the square root of time to option expiry. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class BlackCalculator and return its id
- Supported Platforms:
Excel, C++
- Parameters
-
ObjectId id of object to be created PayoffID StrikedTypePayoff ID. AtmForwardValue underlying asset at-the-money forward value. StdDev standard deviation, i.e. annualized percentage volatility times the square root of time to option expiry. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
returns the alpha of the internal formulation of the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Trigger dependency tracking trigger
- Description:
returns the beta of the internal formulation of the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Trigger dependency tracking trigger
- Description:
returns the sensitivity to change in the underlying spot price for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Spot spot value. Trigger dependency tracking trigger
- Description:
returns the sensitivity to change in the underlying forward price for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Trigger dependency tracking trigger
- Description:
returns the sensitivity to dividend/growth rate for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object TimeToMaturity time to maturity in years. Trigger dependency tracking trigger
- Description:
returns the sensitivity in percent to a percent change in the underlying spot price for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Spot spot value. Trigger dependency tracking trigger
qlBlackCalculatorElasticityForward
- Description:
returns the sensitivity in percent to a percent change in the underlying forward price for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Trigger dependency tracking trigger
- Description:
returns the second order derivative with respect to change in the underlying spot price for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Spot spot value. Trigger dependency tracking trigger
- Description:
returns the second order derivative with respect to change in the underlying forward price for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Trigger dependency tracking trigger
qlBlackCalculatorItmAssetProbability
- Description:
returns the probability of being in the money in the asset martingale measure for the given BlackCalculator object. It is a risk-neutral probability, not the real world probability.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Trigger dependency tracking trigger
qlBlackCalculatorItmCashProbability
- Description:
returns the probability of being in the money in the bond martingale measure for the given BlackCalculator object. It is a risk-neutral probability, not the real world probability.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Trigger dependency tracking trigger
- Description:
returns the sensitivity to discounting rate for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object TimeToMaturity time to maturity in years. Trigger dependency tracking trigger
qlBlackCalculatorStrikeSensitivity
- Description:
returns the sensitivity to strike for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Trigger dependency tracking trigger
- Description:
returns the sensitivity to time to maturity for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Spot spot value. TimeToMaturity time to maturity in years. Trigger dependency tracking trigger
- Description:
returns the sensitivity to time to maturity per day, assuming 365 days per year, for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Spot spot value. TimeToMaturity time to maturity in years. Trigger dependency tracking trigger
- Description:
returns the option value for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object Trigger dependency tracking trigger
- Description:
returns the sensitivity to volatility for the given BlackCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackCalculator object TimeToMaturity time to maturity in years. Trigger dependency tracking trigger
- Description:
Construct an object of class BlackCapFloorEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created YieldCurve discounting YieldTermStructure object ID. VolTS OptionletVolatilityStructure object ID. Displacement displacement in a displaced diffusion model. Default value = 0.0. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class BlackCapFloorEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created YieldCurve discounting YieldTermStructure object ID. Vol Term (i.e. flat) volatility. Displacement displacement in a displaced diffusion model. Default value = 0.0. DayCounter DayCounter ID. Default value = Actual/365 (Fixed). Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Black 1976 formula for option pricing, using displacement.
- Supported Platforms:
Excel
- Parameters
-
OptionType option type (i.e. Call or Put). Strike option strike. AtmForwardValue underlying asset at-the-money forward value. StdDev standard deviation, i.e. annualized percentage volatility times the square root of time to option expiry. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Displacement displacement in a displaced diffusion model. Default value = 0.0. Trigger dependency tracking trigger
- Description:
Black 1976 formula for option pricing with displacement. It uses a PlainVanillaPayoff object as input.
- Supported Platforms:
Excel
- Parameters
-
Payoff PlainVanillaPayoff object ID. AtmForwardValue underlying asset at-the-money forward value. StdDev standard deviation, i.e. annualized percentage volatility times the square root of time to option expiry. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Displacement displacement in a displaced diffusion model. Default value = 0.0. Trigger dependency tracking trigger
qlBlackFormulaCashItmProbability
- Description:
Black 1976 probability of being in the money (in the bond martingale measure), i.e. N(d2). It is a risk-neutral probability, not the real world one.
- Supported Platforms:
Excel
- Parameters
-
OptionType option type (i.e. Call or Put). Strike option strike. AtmForwardValue underlying asset at-the-money forward value. StdDev standard deviation, i.e. annualized percentage volatility times the square root of time to option expiry. Displacement displacement in a displaced diffusion model. Default value = 0.0. Trigger dependency tracking trigger
qlBlackFormulaCashItmProbability2
- Description:
Black 1976 probability of being in the money (in the bond martingale measure), i.e. N(d2). It is a risk-neutral probability, not the real world one. It uses a PlainVanillaPayoff object as input.
- Supported Platforms:
Excel
- Parameters
-
Payoff PlainVanillaPayoff object ID. AtmForwardValue underlying asset at-the-money forward value. StdDev standard deviation, i.e. annualized percentage volatility times the square root of time to option expiry. Displacement displacement in a displaced diffusion model. Default value = 0.0. Trigger dependency tracking trigger
- Description:
Standard deviation (annualized percentage volatility times the square root of time to option expiry) implied by the Black 1976 formula with displacement.
- Supported Platforms:
Excel
- Parameters
-
OptionType option type (i.e. Call or Put). Strike option strike. AtmForwardValue underlying asset at-the-money forward value. OptionPrice option price. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Displacement displacement in a displaced diffusion model. Default value = 0.0. Guess standard deviation guess. Default value = QuantLib::Null<QuantLib::Real>(). Accuracy solver accuracy. Default value = 1.0e-6. MaxIter solver max iterations. Default value = 100. Trigger dependency tracking trigger
- Description:
Standard deviation (annualized percentage volatility times the square root of time to option expiry) implied by the Black 1976 formula. It uses a PlainVanillaPayoff object as input.
- Supported Platforms:
Excel
- Parameters
-
PayoffID PlainVanillaPayoff object ID. AtmForwardValue underlying asset at-the-money forward value. OptionPrice option price. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Displacement displacement in a displaced diffusion model. Default value = 0.0. Guess standard deviation guess. Default value = QuantLib::Null<QuantLib::Real>(). Accuracy standard deviation accuracy. Default value = 1.0e-6. MaxIter solver max iterations. Default value = 100. Trigger dependency tracking trigger
qlBlackFormulaImpliedStdDevApproximation
- Description:
Approximation for the standard deviation (annualized percentage volatility times the square root of time to option expiry) implied by the Black 1976 formula.
- Supported Platforms:
Excel
- Parameters
-
OptionType option type (i.e. Call or Put). Strike option strike. AtmForwardValue underlying asset at-the-money forward value. OptionPrice option price. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Displacement displacement in a displaced diffusion model. Default value = 0.0. Trigger dependency tracking trigger
qlBlackFormulaImpliedStdDevApproximation2
- Description:
Approximation for the standard deviation (annualized percentage volatility times the square root of time to option expiry) implied by the Black 1976 formula. It uses a PlainVanillaPayoff object as input.
- Supported Platforms:
Excel
- Parameters
-
Payoff PlainVanillaPayoff object ID. AtmForwardValue underlying asset at-the-money forward value. OptionPrice option price. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Displacement displacement in a displaced diffusion model. Default value = 0.0. Trigger dependency tracking trigger
qlBlackFormulaStdDevDerivative
- Description:
Black 1976 formula for the derivative with respect to the standard deviation (annualized percentage volatility times the square root of time to option expiry), with displacement.
- Supported Platforms:
Excel
- Parameters
-
Strike option strike. AtmForwardValue underlying asset at-the-money forward value. StdDev standard deviation, i.e. annualized percentage volatility times the square root of time to option expiry. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Displacement displacement in a displaced diffusion model. Default value = 0.0. Trigger dependency tracking trigger
qlBlackFormulaStdDevDerivative2
- Description:
Black 1976 formula for the derivative with respect to the standard deviation (annualized percentage volatility times the square root of time to option expiry). It uses a PlainVanillaPayoff object as input.
- Supported Platforms:
Excel
- Parameters
-
PayoffID PlainVanillaPayoff object ID. AtmForwardValue underlying asset at-the-money forward value. StdDev standard deviation, i.e. annualized percentage volatility times the square root of time to option expiry. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Displacement displacement in a displaced diffusion model. Default value = 0.0. Trigger dependency tracking trigger
- Description:
Construct an object of class BlackScholesCalculator and return its id
- Supported Platforms:
Excel, C++
- Parameters
-
ObjectId id of object to be created OptionType option type (i.e. Call or Put). Strike option strike. Spot spot value. Growth growth discount factor. Default value = 1.0. StdDev standard deviation, i.e. annualized percentage volatility times the square root of time to option expiry. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class BlackScholesCalculator and return its id
- Supported Platforms:
Excel, C++
- Parameters
-
ObjectId id of object to be created PayoffID StrikedTypePayoff ID. Spot spot value. Growth growth discount factor. Default value = 1.0. StdDev standard deviation, i.e. annualized percentage volatility times the square root of time to option expiry. Deflator Deflator (usually the discount factor, or the annuity, etc.). Default value = 1.0. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
returns the sensitivity to change in the underlying spot price for the given BlackScholesCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackScholesCalculator object Trigger dependency tracking trigger
qlBlackScholesCalculatorElasticity
- Description:
returns the sensitivity in percent to a percent change in the underlying spot price for the given BlackScholesCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackScholesCalculator object Trigger dependency tracking trigger
- Description:
returns the second order derivative with respect to change in the underlying spot price for the given BlackScholesCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackScholesCalculator object Trigger dependency tracking trigger
- Description:
returns the sensitivity to time to maturity for the given BlackScholesCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackScholesCalculator object TimeToMaturity time to maturity in years. Trigger dependency tracking trigger
qlBlackScholesCalculatorThetaPerDay
- Description:
returns the sensitivity to time to maturity per day, assuming 365 days per year, for the given BlackScholesCalculator object.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackScholesCalculator object TimeToMaturity time to maturity in years. Trigger dependency tracking trigger
- Description:
Construct an object of class BlackSwaptionEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created YieldCurve discounting yield term structure object ID. VolTS SwaptionVolatilityStructure object ID. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class BlackSwaptionEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created YieldCurve discounting yield term structure object ID. Vol swaption Black volatility. Displacement displacement in a displaced diffusion model. Default value = 0.0. DayCounter DayCounter ID. Default value = Actual/365 (Fixed). Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class BondEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created YieldCurve discounting yield term structure object ID. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class DiscountingSwapEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created YieldCurve discounting yield term structure object ID. IncludeSettlDate TRUE if cashflows paid at the settlement date must be taken into account. Default value = true. SettlementDate cashflows before this date are not taken into account. If missing it is assumed equal to the discounting yield term structure's reference date. Default value = QuantLib::Date(). NpvDate all cashflows are discounted to this date. If missing it is assumed equal to the discounting yield term structure's reference date. Default value = QuantLib::Date(). Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class JamshidianSwaptionEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created Model Model object ID. YieldCurve yield term structure object ID. Default value = . Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class G2SwaptionEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created Model G2 Model object ID. Range Range. Intervals Intervals. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class PricingEngine and return its id
- Supported Platforms:
Excel, C, Calc, Guile, C++
- Parameters
-
ObjectId id of object to be created EngineID engine type. ProcessID GeneralizedBlackScholesProcess object ID. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Construct an object of class TreeSwaptionEngine and return its id
- Supported Platforms:
Excel, Calc, C++
- Parameters
-
ObjectId id of object to be created Model Model object ID. Nsteps Number of time steps. YieldCurve yield term structure object ID. Default value = . Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag