Skip to main content

DeliverableAnalysis

Struct DeliverableAnalysis 

pub struct DeliverableAnalysis {
    pub key: String,
    pub conversion_factor: f64,
    pub spot_clean: f64,
    pub forward_clean: f64,
    pub carry_tier: Option<RepoTier>,
    pub gross_basis: f64,
    pub net_basis: f64,
    pub interim_coupons: f64,
    pub repo_day_count: DayCountFraction,
    pub implied_repo: f64,
}
Expand description

One deliverable’s analytics at a quoted futures price.

Fields§

§key: String

The row’s name — its deliverable’s key, which is the ISIN on the security-master path.

§conversion_factor: f64

Its exchange-published conversion factor.

§spot_clean: f64

Spot clean price per 100, settling on the valuation date.

§forward_clean: f64

Forward clean price per 100 at delivery, carried on its repo curve — on the discount curve when none resolves.

§carry_tier: Option<RepoTier>

The tier that supplied the carry curve, or None for the discount-curve fallback.

§gross_basis: f64

spot_clean − F·CF.

§net_basis: f64

forward_clean − F·CF.

§interim_coupons: f64

Coupons per 100 the deliverable pays after the valuation date and on or before delivery: Σcᵢ.

§repo_day_count: DayCountFraction

The day count implied_repo is quoted on.

§implied_repo: f64

The simple financing rate the invoice implies, each interim coupon reinvested to delivery at the same rate: (I + Σcᵢ − P) / (P·τ − Σcᵢ·τᵢ), with I = F·CF + accrued(delivery), P the spot dirty price, τ valuation to delivery and τᵢ coupon payment to delivery, on repo_day_count.

Trait Implementations§

§

impl Clone for DeliverableAnalysis

§

fn clone(&self) -> DeliverableAnalysis

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for DeliverableAnalysis

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl PartialEq for DeliverableAnalysis

§

fn eq(&self, other: &DeliverableAnalysis) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl StructuralPartialEq for DeliverableAnalysis

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.