Class DeltaVolQuote
A volatility quoted against an FX delta, or at the money: the volatility, its delta and delta convention, its maturity, and its at-the-money convention.
public sealed class DeltaVolQuote
- Inheritance
-
DeltaVolQuote
- Inherited Members
Remarks
Immutable; its volatility is a value where QuantLib's is a quote handle, so it has no validity of its own
(QuantLib's isValid reports the handle's). An at-the-money quote has no delta, which QuantLib's constructor
leaves uninitialized: its Delta is null.
Constructors
DeltaVolQuote(double, DeltaVolQuoteDeltaType, double, DeltaVolQuoteAtmType)
Initializes a new instance of the DeltaVolQuote class: an at-the-money volatility.
public DeltaVolQuote(double vol, DeltaVolQuoteDeltaType deltaType, double maturity, DeltaVolQuoteAtmType atmType)
Parameters
voldoubleThe volatility.
deltaTypeDeltaVolQuoteDeltaTypeThe delta convention.
maturitydoubleThe maturity, a time.
atmTypeDeltaVolQuoteAtmTypeThe at-the-money convention.
Exceptions
- ArgumentOutOfRangeException
deltaTypeoratmTypeisn't a member of its type.
DeltaVolQuote(double, double, double, DeltaVolQuoteDeltaType)
Initializes a new instance of the DeltaVolQuote class: a volatility at a delta.
public DeltaVolQuote(double delta, double vol, double maturity, DeltaVolQuoteDeltaType deltaType)
Parameters
deltadoubleThe delta.
voldoubleThe volatility.
maturitydoubleThe maturity, a time.
deltaTypeDeltaVolQuoteDeltaTypeThe delta convention.
Exceptions
- ArgumentOutOfRangeException
deltaTypeisn't a member of its type.
Properties
AtmType
Gets the at-the-money convention; AtmNull for a delta quote.
public DeltaVolQuoteAtmType AtmType { get; }
Property Value
Delta
Gets the delta; null for an at-the-money quote.
public double? Delta { get; }
Property Value
DeltaType
Gets the delta convention.
public DeltaVolQuoteDeltaType DeltaType { get; }
Property Value
Maturity
Gets the maturity, a time.
public double Maturity { get; }
Property Value
Value
Gets the volatility.
public double Value { get; }