Enum CallPrice
#[non_exhaustive]pub enum CallPrice {
Clean(f64),
Dirty(f64),
MakeWhole {
benchmark: String,
spread_bp: f64,
},
}Expand description
The price at which an embedded option redeems, per 100 face. Clean excludes
accrued interest (the common quoting form, e.g. a 101 call); Dirty includes
it. MakeWhole is a price function of a benchmark + spread, resolvable only
against a curve: it is reference data here, excluded from the curve-free yield
analytics and non-exercisable in pricing until model support lands.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Clean(f64)
Clean price per 100 face (accrued added on the exercise date).
Dirty(f64)
Dirty (all-in) price per 100 face.
MakeWhole
A make-whole redemption: the remaining flows discounted at the benchmark
yield plus spread_bp, resolved at exercise time against the referenced
benchmark curve.
Implementations§
§impl CallPrice
impl CallPrice
pub fn is_make_whole(&self) -> bool
pub fn is_make_whole(&self) -> bool
Whether this is a make-whole entry (curve-dependent redemption amount).
Trait Implementations§
impl StructuralPartialEq for CallPrice
Auto Trait Implementations§
impl Freeze for CallPrice
impl RefUnwindSafe for CallPrice
impl Send for CallPrice
impl Sync for CallPrice
impl Unpin for CallPrice
impl UnsafeUnpin for CallPrice
impl UnwindSafe for CallPrice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more