pub struct TrailingStopLossDetails {
pub distance: Option<Decimal>,
pub time_in_force: Option<TimeInForce>,
pub gtd_time: Option<Timestamp>,
pub client_extensions: Option<ClientExtensions>,
}Expand description
TrailingStopLossDetails specifies the details of a Trailing 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 Trailing Stop Loss, or when a Trade’s dependent Trailing Stop Loss Order is modified directly through the Trade.
Fields§
§distance: Option<Decimal>The distance (in price units) from the Trade’s fill price that the Trailing Stop Loss Order will be triggered at.
time_in_force: Option<TimeInForce>The time in force for the created Trailing Stop Loss Order. This may only be GTC, GTD or GFD.
gtd_time: Option<Timestamp>The date when the Trailing Stop Loss Order will be cancelled on if timeInForce is GTD.
client_extensions: Option<ClientExtensions>The Client Extensions to add to the Trailing Stop Loss Order when created.
Trait Implementations§
Source§impl Clone for TrailingStopLossDetails
impl Clone for TrailingStopLossDetails
Source§impl Debug for TrailingStopLossDetails
impl Debug for TrailingStopLossDetails
Source§impl<'de> Deserialize<'de> for TrailingStopLossDetails
impl<'de> Deserialize<'de> for TrailingStopLossDetails
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 PartialEq for TrailingStopLossDetails
impl PartialEq for TrailingStopLossDetails
Source§impl Serialize for TrailingStopLossDetails
impl Serialize for TrailingStopLossDetails
impl StructuralPartialEq for TrailingStopLossDetails
Auto Trait Implementations§
impl Freeze for TrailingStopLossDetails
impl RefUnwindSafe for TrailingStopLossDetails
impl Send for TrailingStopLossDetails
impl Sync for TrailingStopLossDetails
impl Unpin for TrailingStopLossDetails
impl UnsafeUnpin for TrailingStopLossDetails
impl UnwindSafe for TrailingStopLossDetails
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