[][src]Struct options_math::OptionsByExpiryDate

pub struct OptionsByExpiryDate { /* fields omitted */ }

Methods

impl OptionsByExpiryDate[src]

pub fn minutes_to_expiration(&self, now: NaiveDateTime) -> Percentage[src]

Computes the number of minutes until the option's expiration.

pub fn time_to_expiration(&self, now: NaiveDateTime) -> Percentage[src]

Computes the time to the option's expiration as a percentage of the remaining year.

pub fn forward_price(&self, risk_free_rate: f64, now: NaiveDateTime) -> Cents[src]

Computes the implied forward price.

pub fn variance(&self, risk_free_rate: f64, now: NaiveDateTime) -> Percentage[src]

\sigma^2 from the VIX whitepaper

Trait Implementations

impl Clone for OptionsByExpiryDate[src]

impl Debug for OptionsByExpiryDate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.