Overview
functions to construct and use volatility objects.
Function List
qlAbcdAtmVolCurve ()
qlAbcdAtmVolCurveA ()
qlAbcdAtmVolCurveB ()
qlAbcdAtmVolCurveC ()
qlAbcdAtmVolCurveD ()
qlAbcdAtmVolCurveK ()
qlAbcdAtmVolCurveKatOptionTenors ()
qlAbcdAtmVolCurveMaxError ()
qlAbcdAtmVolCurveOptionDates ()
qlAbcdAtmVolCurveOptionTenors ()
qlAbcdAtmVolCurveOptionTenorsInInterpolation ()
qlAbcdAtmVolCurveOptionTimes ()
qlAbcdAtmVolCurveRmsError ()
qlAtmCurve ()
qlBlackAtmVolCurveAtmVariance ()
qlBlackAtmVolCurveAtmVariance2 ()
qlBlackAtmVolCurveAtmVariance3 ()
qlBlackAtmVolCurveAtmVol ()
qlBlackAtmVolCurveAtmVol2 ()
qlBlackAtmVolCurveAtmVol3 ()
qlBlackConstantVol ()
qlBlackVarianceSurface ()
qlBlackVolTermStructureBlackForwardVariance ()
qlBlackVolTermStructureBlackForwardVol ()
qlBlackVolTermStructureBlackVariance ()
qlBlackVolTermStructureBlackVol ()
qlSabrVolSurface ()
qlSabrVolatility ()
qlVolatilitySpreads ()
qlVolatilitySpreads2 ()
qlVolatilityTermStructureBusinessDayConvention ()
qlVolatilityTermStructureMaxStrike ()
qlVolatilityTermStructureMinStrike ()
qlVolatilityTermStructureOptionDateFromTenor ()
Function Documentation
- Description:
Construct an object of class AbcdAtmVolCurve and return its id
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of object to be created SettlementDays settlement days. Calendar holiday calendar (e.g. TARGET). OptionTenors options tenors. VolatilitiesQuotes volatilities quotes. InclusionInInterpolation inclusion flags. If omitted, all volatilities are interpolated. Convention business day convention (e.g. Following). DayCounter DayCounter ID. Default value = Actual/365 (Fixed). Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Returns the a coefficient in the abcd vol parametrization.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
- Description:
Returns the b coefficient in the abcd vol parametrization.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
- Description:
Returns the c coefficient in the abcd vol parametrization.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
- Description:
Returns the d coefficient in the abcd vol parametrization.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
- Description:
Returns the k adjustments factors needed to match the input Black vols at a given time.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Time time. Trigger dependency tracking trigger
qlAbcdAtmVolCurveKatOptionTenors
- Description:
Returns the k adjustments factors needed to match the input Black vols.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
- Description:
Returns the max error between the abcd implied Black vols and the given Black vols vector.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
- Description:
Returns the options dates of the atm volatility curve.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
- Description:
Returns the options tenors of the atm volatility curve.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
qlAbcdAtmVolCurveOptionTenorsInInterpolation
- Description:
Returns the options tenors used in the fitting of the atm volatility curve.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
- Description:
Returns the options times to maturity of the atm volatility curve.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
- Description:
Returns the root mean squared error between the abcd implied Black vols and the given Black vols vector.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::AbcdAtmVolCurve object Trigger dependency tracking trigger
- Description:
Returns the Atm volatility curve.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLibAddin::SabrVolSurface object Trigger dependency tracking trigger
- Description:
Returns the spot at-the-money (no-smile) variance at a given option date.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackAtmVolCurve object OptionDate The date at which the volatility is evaluated. AllowExtrapolation Extrapolation Flag (TRUE allows extrapolation). Default value = false. Trigger dependency tracking trigger
qlBlackAtmVolCurveAtmVariance2
- Description:
Returns the spot at-the-money (no-smile) variance at a given option tenor.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackAtmVolCurve object OptionTenor The tenor at which the volatility is evaluated. AllowExtrapolation Extrapolation Flag (TRUE allows extrapolation). Default value = false. Trigger dependency tracking trigger
qlBlackAtmVolCurveAtmVariance3
- Description:
Returns the spot at-the-money (no-smile) variance at a given option time.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackAtmVolCurve object OptionTime The time at which the volatility is evaluated. AllowExtrapolation Extrapolation Flag (TRUE allows extrapolation). Default value = false. Trigger dependency tracking trigger
- Description:
Returns the spot at-the-money (no-smile) volatility at a given option date.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackAtmVolCurve object OptionDate The date at which the volatility is evaluated. AllowExtrapolation Extrapolation Flag (TRUE allows extrapolation). Default value = false. Trigger dependency tracking trigger
- Description:
Returns the spot at-the-money (no-smile) volatility at a given option tenor.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackAtmVolCurve object OptionTenor The time at which the volatility is evaluated. AllowExtrapolation Extrapolation Flag (TRUE allows extrapolation). Default value = false. Trigger dependency tracking trigger
- Description:
Returns the spot at-the-money (no-smile) volatility at a given option time.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackAtmVolCurve object OptionTime The time at which the volatility is evaluated. AllowExtrapolation Extrapolation Flag (TRUE allows extrapolation). Default value = false. Trigger dependency tracking trigger
- Description:
Construct an object of class BlackConstantVol and return its id
- Supported Platforms:
Excel, C, Calc, Guile, C++
- Parameters
-
ObjectId id of object to be created SettlementDate settlement date. Calendar holiday calendar (e.g. TARGET). Volatility 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 BlackVarianceSurface and return its id
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of object to be created SettlementDate settlement date. Calendar holiday calendar (e.g. TARGET). Dates dates. Strikes strikes. Volatilities volatilities. DayCounter DayCounter ID. Default value = Actual/365 (Fixed). Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
qlBlackVolTermStructureBlackForwardVariance
- Description:
Returns the black forward (at-the-money) variance at a given option date and strike.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackVolTermStructure object ForwardDate The forward date at which the volatility is evaluated. OptionDate The date at which the variance is evaluated. Strike The strike at which the variance is evaluated. AllowExtrapolation Extrapolation Flag (TRUE allows extrapolation). Default value = false. Trigger dependency tracking trigger
qlBlackVolTermStructureBlackForwardVol
- Description:
Returns the black forward (at-the-money) volatility at a given option date and strike.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackVolTermStructure object ForwardDate The forward date at which the volatility is evaluated. OptionDate The option date at which the volatility is evaluated. Strike The strike at which the volatility is evaluated. AllowExtrapolation Extrapolation Flag (TRUE allows extrapolation). Default value = false. Trigger dependency tracking trigger
qlBlackVolTermStructureBlackVariance
- Description:
Returns the black spot variance at a given option date and strike.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackVolTermStructure object OptionDate The date at which the variance is evaluated. Strike The strike at which the variance is evaluated. AllowExtrapolation Extrapolation Flag (TRUE allows extrapolation). Default value = false. Trigger dependency tracking trigger
qlBlackVolTermStructureBlackVol
- Description:
Returns the black spot volatility at a given option date and strike.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::BlackVolTermStructure object OptionDate The date at which the volatility is evaluated. Strike The strike at which the volatility is evaluated. AllowExtrapolation Extrapolation Flag (TRUE allows extrapolation). Default value = false. Trigger dependency tracking trigger
- Description:
Construct an object of class SabrVolSurface and return its id
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of object to be created InterestRateIndex interest rate index object ID. BlackAtmVolCurve the atm volatility curve. OptionTenors options tenors. AtmRateSpreads spreads. VolatilitiesQuotes volatilities quotes. Permanent object permanent/nonpermanent Trigger dependency tracking trigger Overwrite overwrite flag
- Description:
Sabr formula for smile volatility.
- Supported Platforms:
Excel
- Parameters
-
Strike option strike. Forward underlying forward value. ExpTime expiry time (in years). Alpha alpha. Beta beta. Nu nu. Rho rho. Trigger dependency tracking trigger
- Description:
Returns the volatilities spread at a given date.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::SabrVolSurface object OptionDate The date at which the volatility is evaluated. Trigger dependency tracking trigger
- Description:
Returns the volatilities spread at a given date.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::SabrVolSurface object OptionTenor The tenor at which the volatility is evaluated. Trigger dependency tracking trigger
qlVolatilityTermStructureBusinessDayConvention
- Description:
Returns the business day convention used in tenor to date conversion.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::VolatilityTermStructure object Trigger dependency tracking trigger
qlVolatilityTermStructureMaxStrike
- Description:
Returns the maximum strike for which the given VolatilityTermStructure can return vols.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::VolatilityTermStructure object Trigger dependency tracking trigger
qlVolatilityTermStructureMinStrike
- Description:
Returns the minimum strike for which the given VolatilityTermStructure can return vols.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::VolatilityTermStructure object Trigger dependency tracking trigger
qlVolatilityTermStructureOptionDateFromTenor
- Description:
Returns the option date corrisponding to a given option tenor.
- Supported Platforms:
Excel
- Parameters
-
ObjectId id of existing QuantLib::VolatilityTermStructure object Tenor option tenor. Trigger dependency tracking trigger