pub struct RainbowOptionData {Show 15 fields
pub symbol: String,
pub rainbow_type: String,
pub put_or_call: Option<String>,
pub assets: Vec<RainbowAssetData>,
pub correlations: Vec<Vec<f64>>,
pub strike_price: Option<f64>,
pub weights: Option<Vec<f64>>,
pub maturity: String,
pub risk_free_rate: Option<f64>,
pub discount_curve: Option<CurveInput>,
pub pricer: Option<String>,
pub simulation: Option<u64>,
pub mc_sampler: Option<String>,
pub mc_seed: Option<u64>,
pub valuation_date: Option<String>,
}Fields§
§symbol: String§rainbow_type: String“best_of” | “worst_of” | “spread” | “basket” | “exchange”
put_or_call: Option<String>§assets: Vec<RainbowAssetData>§correlations: Vec<Vec<f64>>Full correlation matrix, n x n.
strike_price: Option<f64>§weights: Option<Vec<f64>>Basket weights (defaults to equal weights).
maturity: String§risk_free_rate: Option<f64>§discount_curve: Option<CurveInput>§pricer: Option<String>§simulation: Option<u64>§mc_sampler: Option<String>§mc_seed: Option<u64>§valuation_date: Option<String>Pricing as-of date (YYYY-MM-DD); defaults to today.
Trait Implementations§
Source§impl Clone for RainbowOptionData
impl Clone for RainbowOptionData
Source§fn clone(&self) -> RainbowOptionData
fn clone(&self) -> RainbowOptionData
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 moreSource§impl Debug for RainbowOptionData
impl Debug for RainbowOptionData
Source§impl<'de> Deserialize<'de> for RainbowOptionData
impl<'de> Deserialize<'de> for RainbowOptionData
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
Auto Trait Implementations§
impl Freeze for RainbowOptionData
impl RefUnwindSafe for RainbowOptionData
impl Send for RainbowOptionData
impl Sync for RainbowOptionData
impl Unpin for RainbowOptionData
impl UnsafeUnpin for RainbowOptionData
impl UnwindSafe for RainbowOptionData
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