Class ContinuousAveragingAsianOption
- Namespace
- NanoQL.Instruments
- Assembly
- NanoQL.dll
A continuous-averaging Asian option: its payoff reads the arithmetic or geometric average of the underlying over the averaging period.
public sealed class ContinuousAveragingAsianOption : OneAssetOption
- Inheritance
-
ContinuousAveragingAsianOption
- Inherited Members
Remarks
Immutable. The unseasoned option averages from the evaluation date; the seasoned one names the date its averaging began, the current average being market data an engine takes.
Constructors
ContinuousAveragingAsianOption(AverageType, StrikedTypePayoff, Exercise)
Initializes a new instance of the ContinuousAveragingAsianOption class for an unseasoned option, whose averaging hasn't started.
public ContinuousAveragingAsianOption(AverageType averageType, StrikedTypePayoff payoff, Exercise exercise)
Parameters
averageTypeAverageTypeThe averaging type.
payoffStrikedTypePayoffThe striked payoff.
exerciseExerciseThe exercise.
Exceptions
- ArgumentNullException
payofforexerciseis null.- ArgumentOutOfRangeException
averageTypeisn't a member of its type.
ContinuousAveragingAsianOption(AverageType, Date, StrikedTypePayoff, Exercise)
Initializes a new instance of the ContinuousAveragingAsianOption class for a seasoned option, whose averaging began on a date.
public ContinuousAveragingAsianOption(AverageType averageType, Date startDate, StrikedTypePayoff payoff, Exercise exercise)
Parameters
averageTypeAverageTypeThe averaging type.
startDateDateThe date the averaging began.
payoffStrikedTypePayoffThe striked payoff.
exerciseExerciseThe exercise.
Exceptions
- ArgumentNullException
payofforexerciseis null.- ArgumentOutOfRangeException
averageTypeisn't a member of its type, orstartDateis the default date.
Properties
AverageType
Gets the averaging type.
public AverageType AverageType { get; }
Property Value
StartDate
Gets the date the averaging began; null for an unseasoned option.
public Date? StartDate { get; }
Property Value
- Date?