Class AmericanExercise
- Namespace
- NanoQL
- Assembly
- NanoQL.dll
American exercise: the option can be exercised at any time between two predefined dates. The first date might be omitted, in which case the option can be exercised at any time before the expiry.
public sealed class AmericanExercise : EarlyExercise
- Inheritance
-
AmericanExercise
- Inherited Members
Remarks
Its dates are the earliest and the latest exercise dates, in that order. The inherited Date(int)
is a method, so inside this class the Date type is written NanoQL.Time.Date wherever an expression
needs it.
Constructors
AmericanExercise(Date, Date, bool)
Initializes a new instance of the AmericanExercise class between two dates.
public AmericanExercise(Date earliestDate, Date latestDate, bool payoffAtExpiry = false)
Parameters
earliestDateDateThe earliest exercise date.
latestDateDateThe latest exercise date.
payoffAtExpiryboolWhether the payoff is paid at expiry rather than at exercise.
Exceptions
- ArgumentException
earliestDateis afterlatestDate, or a date isdefault(Date).
AmericanExercise(Date, bool)
Initializes a new instance of the AmericanExercise class up to a date: its earliest date is MinDate.
public AmericanExercise(Date latestDate, bool payoffAtExpiry = false)
Parameters
latestDateDateThe latest exercise date.
payoffAtExpiryboolWhether the payoff is paid at expiry rather than at exercise.
Exceptions
- ArgumentException
latestDateisdefault(Date).