pub struct SpreaderParams {Show 18 fields
pub dir: Dir,
pub quantity: Decimal,
pub limit_price: Decimal,
pub order_lockout: HumanDuration,
pub leg1_symbol: String,
pub leg1_account: Option<AccountIdOrName>,
pub leg1_marketdata_venue: MarketdataVenue,
pub leg1_execution_venue: Option<ExecutionVenue>,
pub leg1_price_ratio: Decimal,
pub leg1_price_offset: Decimal,
pub leg1_quantity_ratio: Decimal,
pub leg2_symbol: String,
pub leg2_account: Option<AccountIdOrName>,
pub leg2_marketdata_venue: MarketdataVenue,
pub leg2_execution_venue: Option<ExecutionVenue>,
pub leg2_price_ratio: Decimal,
pub leg2_price_offset: Decimal,
pub leg2_quantity_ratio: Decimal,
}
Fields§
§dir: Dir
§quantity: Decimal
§limit_price: Decimal
§order_lockout: HumanDuration
§leg1_symbol: String
§leg1_account: Option<AccountIdOrName>
§leg1_marketdata_venue: MarketdataVenue
§leg1_execution_venue: Option<ExecutionVenue>
§leg1_price_ratio: Decimal
§leg1_price_offset: Decimal
§leg1_quantity_ratio: Decimal
§leg2_symbol: String
§leg2_account: Option<AccountIdOrName>
§leg2_marketdata_venue: MarketdataVenue
§leg2_execution_venue: Option<ExecutionVenue>
§leg2_price_ratio: Decimal
§leg2_price_offset: Decimal
§leg2_quantity_ratio: Decimal
Trait Implementations§
Source§impl Clone for SpreaderParams
impl Clone for SpreaderParams
Source§fn clone(&self) -> SpreaderParams
fn clone(&self) -> SpreaderParams
Returns a duplicate of the value. Read more
1.0.0 · 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 SpreaderParams
impl Debug for SpreaderParams
Source§impl<'de> Deserialize<'de> for SpreaderParams
impl<'de> Deserialize<'de> for SpreaderParams
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 DisplaySymbols for SpreaderParams
impl DisplaySymbols for SpreaderParams
Source§impl JsonSchema for SpreaderParams
impl JsonSchema for SpreaderParams
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Serialize for SpreaderParams
impl Serialize for SpreaderParams
Auto Trait Implementations§
impl Freeze for SpreaderParams
impl RefUnwindSafe for SpreaderParams
impl Send for SpreaderParams
impl Sync for SpreaderParams
impl Unpin for SpreaderParams
impl UnwindSafe for SpreaderParams
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