<kiyosi/instruments/exercise_based_option.hpp>
cpp
#include <kiyosi/instruments/exercise_based_option.hpp>kiyosi::ExerciseBasedOption
cpp
template <OptionPayoff Payoff, OptionExercise Exercise>
class kiyosi::ExerciseBasedOptionAn option built from an independent payoff and exercise style over shared option terms. 模板参数
Payoff— Copyable payoff tag satisfyingOptionPayoff.Exercise— Copyable exercise-style tag satisfyingOptionExercise.
成员
option_type
cpp
OptionType kiyosi::ExerciseBasedOption<Payoff, Exercise>::option_type() const noexceptReturns the call-or-put direction.
strike
cpp
double kiyosi::ExerciseBasedOption<Payoff, Exercise>::strike() const noexceptReturns the positive strike price.
effective_date
cpp
Date kiyosi::ExerciseBasedOption<Payoff, Exercise>::effective_date() const noexceptReturns the first date of the option life.
expiry_date
cpp
Date kiyosi::ExerciseBasedOption<Payoff, Exercise>::expiry_date() const noexceptReturns the option expiry date.
terms
cpp
const OptionTerms & kiyosi::ExerciseBasedOption<Payoff, Exercise>::terms() const noexceptReturns the validated contractual terms.
payoff
cpp
const Payoff & kiyosi::ExerciseBasedOption<Payoff, Exercise>::payoff() const noexceptReturns the payoff tag.
exercise
cpp
const Exercise & kiyosi::ExerciseBasedOption<Payoff, Exercise>::exercise() const noexceptReturns the exercise-style tag.
payout
cpp
double kiyosi::ExerciseBasedOption<Payoff, Exercise>::payout() const noexceptReturns the fixed payout when the payoff type provides one.