pub struct Black76Params {
pub forward: f64,
pub strike: f64,
pub time_years: f64,
pub rate: f64,
pub vol: f64,
}Expand description
Black ’76 inputs (European option on a forward).
Fields§
§forward: f64Forward / futures price (F).
strike: f64§time_years: f64§rate: f64Continuous discount rate (funding of the option premium).
vol: f64Implementations§
Source§impl Black76Params
impl Black76Params
pub const fn atm_one_year(forward: f64, rate: f64, vol: f64) -> Self
pub fn with_days_365_25( forward: f64, strike: f64, days: f64, rate: f64, vol: f64, ) -> Self
Sourcepub fn to_bsm_equiv(self) -> BsmParams
pub fn to_bsm_equiv(self) -> BsmParams
Map to BSM with (S=F), (q=r) (same prices and most Greeks).
Trait Implementations§
Source§impl Clone for Black76Params
impl Clone for Black76Params
Source§fn clone(&self) -> Black76Params
fn clone(&self) -> Black76Params
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 Black76Params
Source§impl Debug for Black76Params
impl Debug for Black76Params
Source§impl PartialEq for Black76Params
impl PartialEq for Black76Params
impl StructuralPartialEq for Black76Params
Auto Trait Implementations§
impl Freeze for Black76Params
impl RefUnwindSafe for Black76Params
impl Send for Black76Params
impl Sync for Black76Params
impl Unpin for Black76Params
impl UnsafeUnpin for Black76Params
impl UnwindSafe for Black76Params
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more