Enum YieldQuoteMethod
#[non_exhaustive]pub enum YieldQuoteMethod {
Compound,
JapaneseSimple,
TurkishSimple,
SimpleInterest,
}Expand description
The market’s primary yield quote convention.
This is the name a market gives its quote; YieldKernel is the
arithmetic it resolves to, via YieldQuoteMethod::kernel.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Compound
Periodic compounding, at whatever frequency the bond’s
YieldConvention quotes on.
JapaneseSimple
The Japanese simple yield (JGBs, code 51): a closed form in the clean price, not a discounting relationship.
TurkishSimple
The Turkish simple yield (ISE definition, code 1014): periodic compounding except in the last coupon period, where it is simple interest on ACT/365.
SimpleInterest
Money-market simple interest — the zero-coupon / interest-at-maturity families (990, 994).
Implementations§
§impl YieldQuoteMethod
impl YieldQuoteMethod
pub fn kernel(
self,
bond_frequency: Frequency,
convention: YieldConvention,
) -> YieldKernel
pub fn kernel( self, bond_frequency: Frequency, convention: YieldConvention, ) -> YieldKernel
The kernel this quote method evaluates through, for a bond paying at
bond_frequency and quoting under convention.
convention is read only by Self::Compound: the street conventions
vary the compounding frequency, which is meaningless once a method has
chosen simple interest or abandoned discounting altogether.
Trait Implementations§
§impl Clone for YieldQuoteMethod
impl Clone for YieldQuoteMethod
§fn clone(&self) -> YieldQuoteMethod
fn clone(&self) -> YieldQuoteMethod
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for YieldQuoteMethod
§impl Debug for YieldQuoteMethod
impl Debug for YieldQuoteMethod
impl Eq for YieldQuoteMethod
§impl Hash for YieldQuoteMethod
impl Hash for YieldQuoteMethod
§impl PartialEq for YieldQuoteMethod
impl PartialEq for YieldQuoteMethod
§fn eq(&self, other: &YieldQuoteMethod) -> bool
fn eq(&self, other: &YieldQuoteMethod) -> bool
self and other values to be equal, and is used by ==.