pub struct StopLossDetails {
pub price: Option<Decimal>,
pub distance: Option<Decimal>,
pub time_in_force: Option<TimeInForce>,
pub gtd_time: Option<Timestamp>,
pub client_extensions: Option<ClientExtensions>,
pub guaranteed: Option<bool>,
}Expand description
StopLossDetails specifies the details of a Stop Loss Order to be created on behalf of a client. This may happen when an Order is filled that opens a Trade requiring a Stop Loss, or when a Trade’s dependent Stop Loss Order is modified directly through the Trade.
Fields§
§price: Option<Decimal>The price that the Stop Loss Order will be triggered at. Only one of the price and distance fields may be specified.
distance: Option<Decimal>Specifies the distance (in price units) from the Trade’s open price to use as the Stop Loss Order price. Only one of the distance and price fields may be specified.
time_in_force: Option<TimeInForce>The time in force for the created Stop Loss Order. This may only be GTC, GTD or GFD.
gtd_time: Option<Timestamp>The date when the Stop Loss Order will be cancelled on if timeInForce is GTD.
client_extensions: Option<ClientExtensions>The Client Extensions to add to the Stop Loss Order when created.
guaranteed: Option<bool>Flag indicating that the price for the Stop Loss Order is guaranteed. The default value depends on the GuaranteedStopLossOrderMode of the account, if it is REQUIRED, the default will be true, for DISABLED or ENABLED the default is false. Deprecated: Will be removed in a future API update.