<kiyosi/instruments/option_terms.hpp>
cpp
#include <kiyosi/instruments/option_terms.hpp>OptionType
cpp
enum class OptionTypeDirection of an option payoff.
枚举值
call— Right to benefit from prices above the strike.put— Right to benefit from prices below the strike.
kiyosi::OptionTerms
cpp
class kiyosi::OptionTermsContractual essentials shared by every strike-and-life option: option_type, strike, and life dates.
成员
option_type
cpp
OptionType kiyosi::OptionTerms::option_type() const noexceptReturns the call-or-put direction.
strike
cpp
double kiyosi::OptionTerms::strike() const noexceptReturns the positive strike price.
effective_date
cpp
Date kiyosi::OptionTerms::effective_date() const noexceptReturns the first date of the contract life.
expiry_date
cpp
Date kiyosi::OptionTerms::expiry_date() const noexceptReturns the final date of the contract life.