pub struct TakeProfitDetails {
pub price: Option<Decimal>,
pub time_in_force: Option<TimeInForce>,
pub gtd_time: Option<Timestamp>,
pub client_extensions: Option<ClientExtensions>,
}Expand description
TakeProfitDetails specifies the details of a Take Profit Order to be created on behalf of a client. This may happen when an Order is filled that opens a Trade requiring a Take Profit, or when a Trade’s dependent Take Profit Order is modified directly through the Trade.
Fields§
§price: Option<Decimal>The price that the Take Profit Order will be triggered at. Only one of the price and distance fields may be specified.
time_in_force: Option<TimeInForce>The time in force for the created Take Profit Order. This may only be GTC, GTD or GFD.
gtd_time: Option<Timestamp>The date when the Take Profit Order will be cancelled on if timeInForce is GTD.
client_extensions: Option<ClientExtensions>The Client Extensions to add to the Take Profit Order when created.
Trait Implementations§
Source§impl Clone for TakeProfitDetails
impl Clone for TakeProfitDetails
Source§impl Debug for TakeProfitDetails
impl Debug for TakeProfitDetails
Source§impl<'de> Deserialize<'de> for TakeProfitDetails
impl<'de> Deserialize<'de> for TakeProfitDetails
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 TakeProfitDetails
impl PartialEq for TakeProfitDetails
Source§impl Serialize for TakeProfitDetails
impl Serialize for TakeProfitDetails
impl StructuralPartialEq for TakeProfitDetails
Auto Trait Implementations§
impl Freeze for TakeProfitDetails
impl RefUnwindSafe for TakeProfitDetails
impl Send for TakeProfitDetails
impl Sync for TakeProfitDetails
impl Unpin for TakeProfitDetails
impl UnsafeUnpin for TakeProfitDetails
impl UnwindSafe for TakeProfitDetails
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