<kiyosi/instruments/autocallable/snowball.hpp>
#include <kiyosi/instruments/autocallable/snowball.hpp>make_snowball_option
Result<SnowballOption> kiyosi::make_snowball_option(SnowballTerms terms)Creates a validated Snowball product, owning its supplied terms. 返回值: The option, or an input-validation error with a stable category.
make_ternary_snowball_option
Result<TernarySnowballOption> kiyosi::make_ternary_snowball_option(TernarySnowballTerms terms)Creates a validated TernarySnowball product, owning its supplied terms. 返回值: The option, or an input-validation error with a stable category.
make_binary_snowball_option
Result<BinarySnowballOption> kiyosi::make_binary_snowball_option(BinarySnowballTerms terms)Creates a validated BinarySnowball product, owning its supplied terms. 返回值: The option, or an input-validation error with a stable category.
kiyosi::BinarySnowballTerms
struct kiyosi::BinarySnowballTermsInput terms used to construct a BinarySnowballOption.
成员
maturity_coupon_rate
double kiyosi::BinarySnowballTerms::maturity_coupon_rateFinite flat maturity coupon.
barrier_state
std::optional<AutocallableBarrierState> kiyosi::BinarySnowballTerms::barrier_statePrior barrier state; required after monitoring begins.
principal_ratio
double kiyosi::BinarySnowballTerms::principal_ratioNormalized principal repayment component.
effective_date
Date kiyosi::BinarySnowballTerms::effective_dateFirst date of the note life.
expiry_date
Date kiyosi::BinarySnowballTerms::expiry_dateFinal date of the note life.
observations
std::vector<AutocallableObservation> kiyosi::BinarySnowballTerms::observationsComplete contractual observations, with each date and its terms associated.
kiyosi::SnowballTerms
struct kiyosi::SnowballTermsInput terms used to construct a SnowballOption.
成员
maturity_coupon_rate
double kiyosi::SnowballTerms::maturity_coupon_rateFinite coupon paid at maturity when applicable.
initial_spot
double kiyosi::SnowballTerms::initial_spotPositive reference spot.
knock_in_level
double kiyosi::SnowballTerms::knock_in_levelPositive downside knock-in level.
upper_strike
double kiyosi::SnowballTerms::upper_strikePositive upper settlement strike.
lower_strike
double kiyosi::SnowballTerms::lower_strikeNon-negative lower settlement strike.
knock_in_observation_mode
KnockInObservationMode kiyosi::SnowballTerms::knock_in_observation_modeKnock-in monitoring frequency.
barrier_state
std::optional<AutocallableBarrierState> kiyosi::SnowballTerms::barrier_statePrior barrier state; required after monitoring begins.
principal_ratio
double kiyosi::SnowballTerms::principal_ratioNormalized principal repayment component.
effective_date
Date kiyosi::SnowballTerms::effective_dateFirst date of the note life.
expiry_date
Date kiyosi::SnowballTerms::expiry_dateFinal date of the note life.
observations
std::vector<AutocallableObservation> kiyosi::SnowballTerms::observationsComplete contractual observations, with each date and its terms associated.
kiyosi::TernarySnowballTerms
struct kiyosi::TernarySnowballTermsInput terms used to construct a TernarySnowballOption.
成员
maturity_coupon_rate
double kiyosi::TernarySnowballTerms::maturity_coupon_rateFinite coupon paid at maturity before knock-in adjustment.
minimum_coupon_rate
double kiyosi::TernarySnowballTerms::minimum_coupon_rateFinite maturity-coupon floor after knock-in.
knock_in_level
double kiyosi::TernarySnowballTerms::knock_in_levelPositive downside knock-in level.
knock_in_observation_mode
KnockInObservationMode kiyosi::TernarySnowballTerms::knock_in_observation_modeKnock-in monitoring frequency.
barrier_state
std::optional<AutocallableBarrierState> kiyosi::TernarySnowballTerms::barrier_statePrior barrier state; required after monitoring begins.
principal_ratio
double kiyosi::TernarySnowballTerms::principal_ratioNormalized principal repayment component.
effective_date
Date kiyosi::TernarySnowballTerms::effective_dateFirst date of the note life.
expiry_date
Date kiyosi::TernarySnowballTerms::expiry_dateFinal date of the note life.
observations
std::vector<AutocallableObservation> kiyosi::TernarySnowballTerms::observationsComplete contractual observations, with each date and its terms associated.