pub struct ContractOutput {}Fields§
§pv: f64§delta: f64§gamma: f64§vega: f64§theta: f64§rho: f64§vanna: f64Change in delta per unit change in implied volatility.
charm: f64Change in delta per year of calendar time.
gamma_p: f64Delta elasticity, S * gamma / delta.
zomma: f64Change in gamma per unit change in implied volatility.
std_err: Option<f64>Monte Carlo standard error of pv (None for deterministic engines).
deltas: Option<Vec<f64>>Per-asset deltas for multi-asset (rainbow) products.
vegas: Option<Vec<f64>>Per-asset vegas for multi-asset (rainbow) products.
error: Option<String>Implementations§
Source§impl ContractOutput
impl ContractOutput
Sourcepub fn from_error(message: String) -> Self
pub fn from_error(message: String) -> Self
Output for a contract that could not be priced: all figures zero,
with the failure recorded in error.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContractOutput
impl<'de> Deserialize<'de> for ContractOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PricingResult> for ContractOutput
impl From<PricingResult> for ContractOutput
Source§fn from(r: PricingResult) -> Self
fn from(r: PricingResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContractOutput
impl RefUnwindSafe for ContractOutput
impl Send for ContractOutput
impl Sync for ContractOutput
impl Unpin for ContractOutput
impl UnsafeUnpin for ContractOutput
impl UnwindSafe for ContractOutput
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