pub struct AccumulatorData {Show 16 fields
pub symbol: String,
pub side: String,
pub underlying_price: f64,
pub strike: f64,
pub barrier: f64,
pub observations: usize,
pub maturity: String,
pub shares_per_day: Option<f64>,
pub gearing: Option<f64>,
pub risk_free_rate: f64,
pub dividend: Option<f64>,
pub volatility: f64,
pub pricer: Option<String>,
pub simulation: Option<u64>,
pub mc_seed: Option<u64>,
pub valuation_date: Option<String>,
}Expand description
JSON contract data ("product_type": "accumulator").
Fields§
§symbol: String§side: String“accumulator” | “decumulator”.
underlying_price: f64§strike: f64Contractual trade price (below spot for accumulators).
barrier: f64Knock-out level (above spot for accumulators, below for decumulators).
observations: usizeNumber of equally spaced observation days (last = maturity).
maturity: StringMaturity date, YYYY-MM-DD.
Shares traded per observation (default 1).
gearing: Option<f64>Quantity multiplier on the adverse side (default 2 = double-up).
risk_free_rate: f64§dividend: Option<f64>§volatility: f64§pricer: Option<String>§simulation: Option<u64>§mc_seed: Option<u64>§valuation_date: Option<String>Pricing as-of date (YYYY-MM-DD); defaults to today.
Trait Implementations§
Source§impl Clone for AccumulatorData
impl Clone for AccumulatorData
Source§fn clone(&self) -> AccumulatorData
fn clone(&self) -> AccumulatorData
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 AccumulatorData
impl Debug for AccumulatorData
Source§impl<'de> Deserialize<'de> for AccumulatorData
impl<'de> Deserialize<'de> for AccumulatorData
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 AccumulatorData
impl RefUnwindSafe for AccumulatorData
impl Send for AccumulatorData
impl Sync for AccumulatorData
impl Unpin for AccumulatorData
impl UnsafeUnpin for AccumulatorData
impl UnwindSafe for AccumulatorData
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