pub struct GuaranteedStopLossOrderEntryData {
pub level_restriction: Option<GuaranteedStopLossOrderLevelRestriction>,
pub minimum_distance: Option<f32>,
pub premium: Option<f32>,
}
Fields§
§level_restriction: Option<GuaranteedStopLossOrderLevelRestriction>
A GuaranteedStopLossOrderLevelRestriction represents the total position size that can exist within a given price window for Trades with guaranteed Stop Loss Orders attached for a specific Instrument.
minimum_distance: Option<f32>
The minimum distance allowed between the Trade’s fill price and the configured price for guaranteed Stop Loss Orders created for this instrument. Specified in price units. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
The amount that is charged to the account if a guaranteed Stop Loss Order is triggered and filled. The value is in price units and is charged for each unit of the Trade. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
Implementations§
source§impl GuaranteedStopLossOrderEntryData
impl GuaranteedStopLossOrderEntryData
pub fn new() -> GuaranteedStopLossOrderEntryData
sourcepub fn with_level_restriction(
self,
x: GuaranteedStopLossOrderLevelRestriction
) -> Self
pub fn with_level_restriction( self, x: GuaranteedStopLossOrderLevelRestriction ) -> Self
A GuaranteedStopLossOrderLevelRestriction represents the total position size that can exist within a given price window for Trades with guaranteed Stop Loss Orders attached for a specific Instrument.
- param GuaranteedStopLossOrderLevelRestriction
- return GuaranteedStopLossOrderEntryData
sourcepub fn with_minimum_distance(self, x: f32) -> Self
pub fn with_minimum_distance(self, x: f32) -> Self
The minimum distance allowed between the Trade’s fill price and the configured price for guaranteed Stop Loss Orders created for this instrument. Specified in price units. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
- param f32
- return GuaranteedStopLossOrderEntryData
The amount that is charged to the account if a guaranteed Stop Loss Order is triggered and filled. The value is in price units and is charged for each unit of the Trade. format: A decimal number encoded as a string. The amount of precision provided depends on what the number represents.
- param f32
- return GuaranteedStopLossOrderEntryData