Enum DeltaConvention
pub enum DeltaConvention {
Spot,
Fwd,
PaSpot,
PaFwd,
}Expand description
The four market delta conventions: spot or forward, plain or premium-adjusted (Pa). A call is a
call on the base currency, premium in the quote currency; a
premium-adjusted delta subtracts the base-currency premium.
Variants§
Spot
Unadjusted spot delta ω·DF_base·N(ω d₁).
Fwd
Unadjusted forward delta ω·N(ω d₁).
PaSpot
Premium-adjusted spot delta ω·DF_base·(K/F)·N(ω d₂).
PaFwd
Premium-adjusted forward delta ω·(K/F)·N(ω d₂).
Implementations§
§impl DeltaConvention
impl DeltaConvention
§impl DeltaConvention
impl DeltaConvention
Trait Implementations§
§impl Clone for DeltaConvention
impl Clone for DeltaConvention
§fn clone(&self) -> DeltaConvention
fn clone(&self) -> DeltaConvention
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeltaConvention
§impl Debug for DeltaConvention
impl Debug for DeltaConvention
impl Eq for DeltaConvention
§impl FromStr for DeltaConvention
impl FromStr for DeltaConvention
§impl Hash for DeltaConvention
impl Hash for DeltaConvention
§impl PartialEq for DeltaConvention
impl PartialEq for DeltaConvention
impl StructuralPartialEq for DeltaConvention
Auto Trait Implementations§
impl Freeze for DeltaConvention
impl RefUnwindSafe for DeltaConvention
impl Send for DeltaConvention
impl Sync for DeltaConvention
impl Unpin for DeltaConvention
impl UnsafeUnpin for DeltaConvention
impl UnwindSafe for DeltaConvention
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