pub struct EquityInstrumentBase {
pub symbol: String,
pub currency: Option<String>,
pub exchange: Option<String>,
pub name: Option<String>,
pub cusip: Option<String>,
pub isin: Option<String>,
pub underlying_price: f64,
pub long_short: Option<i32>,
pub risk_free_rate: Option<f64>,
pub borrow_cost: Option<f64>,
pub settlement_type: Option<String>,
pub valuation_date: Option<String>,
}Fields§
§symbol: String§currency: Option<String>§exchange: Option<String>§name: Option<String>§cusip: Option<String>§isin: Option<String>§underlying_price: f64§long_short: Option<i32>§risk_free_rate: Option<f64>§borrow_cost: Option<f64>Continuous stock borrow (repo) cost; enters the carry like an additional dividend yield (hard-to-borrow lowers the forward).
settlement_type: Option<String>§valuation_date: Option<String>Pricing as-of date (YYYY-MM-DD). Defaults to today, but setting
it makes the contract price reproducibly and allows re-marking a
book as of any date.
Trait Implementations§
Source§impl Clone for EquityInstrumentBase
impl Clone for EquityInstrumentBase
Source§fn clone(&self) -> EquityInstrumentBase
fn clone(&self) -> EquityInstrumentBase
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 EquityInstrumentBase
impl Debug for EquityInstrumentBase
Source§impl<'de> Deserialize<'de> for EquityInstrumentBase
impl<'de> Deserialize<'de> for EquityInstrumentBase
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 EquityInstrumentBase
impl RefUnwindSafe for EquityInstrumentBase
impl Send for EquityInstrumentBase
impl Sync for EquityInstrumentBase
impl Unpin for EquityInstrumentBase
impl UnsafeUnpin for EquityInstrumentBase
impl UnwindSafe for EquityInstrumentBase
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