Struct NormalizedSurfaceQuote
pub struct NormalizedSurfaceQuote { /* private fields */ }Implementations§
§impl NormalizedSurfaceQuote
impl NormalizedSurfaceQuote
pub fn new(
contract_id: ChainContractId,
option_type: OptionType,
exercise_style: ExerciseStyle,
coordinate: SurfaceQuoteCoordinate,
observation: SurfaceQuoteObservation,
weight: SurfaceQuoteWeight,
provenance: SurfaceQuoteProvenance,
) -> Result<Self, FerroRiskError>
pub fn new( contract_id: ChainContractId, option_type: OptionType, exercise_style: ExerciseStyle, coordinate: SurfaceQuoteCoordinate, observation: SurfaceQuoteObservation, weight: SurfaceQuoteWeight, provenance: SurfaceQuoteProvenance, ) -> Result<Self, FerroRiskError>
pub const fn contract_id(&self) -> ChainContractId
pub const fn option_type(&self) -> OptionType
pub const fn exercise_style(&self) -> ExerciseStyle
pub const fn coordinate(&self) -> SurfaceQuoteCoordinate
pub const fn forward(&self) -> f64
pub const fn discount_factor(&self) -> f64
pub const fn reference_price(&self) -> f64
pub const fn implied_volatility(&self) -> f64
pub const fn observation(&self) -> SurfaceQuoteObservation
pub const fn weight(&self) -> SurfaceQuoteWeight
pub const fn provenance(&self) -> SurfaceQuoteProvenance
pub fn total_variance(&self) -> f64
pub fn total_variance(&self) -> f64
pub fn with_bid_ask_prices(
self,
bid: f64,
ask: f64,
) -> Result<Self, FerroRiskError>
pub fn with_bid_ask_prices( self, bid: f64, ask: f64, ) -> Result<Self, FerroRiskError>
pub fn with_bid_ask_prices_and_sizes(
self,
bid: f64,
ask: f64,
bid_size: Option<f64>,
ask_size: Option<f64>,
) -> Result<Self, FerroRiskError>
pub fn with_bid_ask_prices_and_sizes( self, bid: f64, ask: f64, bid_size: Option<f64>, ask_size: Option<f64>, ) -> Result<Self, FerroRiskError>
pub const fn bid_ask_prices(&self) -> Option<&BidAskPrices>
pub fn bid_ask_iv_bounds(
&self,
) -> Result<Option<BidAskIvBounds>, BidAskInversionError>
pub fn bid_ask_iv_bounds( &self, ) -> Result<Option<BidAskIvBounds>, BidAskInversionError>
Trait Implementations§
§impl Clone for NormalizedSurfaceQuote
impl Clone for NormalizedSurfaceQuote
§fn clone(&self) -> NormalizedSurfaceQuote
fn clone(&self) -> NormalizedSurfaceQuote
1.0.0 (const: )§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
§impl PartialEq for NormalizedSurfaceQuote
impl PartialEq for NormalizedSurfaceQuote
impl StructuralPartialEq for NormalizedSurfaceQuote
Auto Trait Implementations§
impl Freeze for NormalizedSurfaceQuote
impl RefUnwindSafe for NormalizedSurfaceQuote
impl Send for NormalizedSurfaceQuote
impl Sync for NormalizedSurfaceQuote
impl Unpin for NormalizedSurfaceQuote
impl UnsafeUnpin for NormalizedSurfaceQuote
impl UnwindSafe for NormalizedSurfaceQuote
Blanket Implementations§
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)