pub struct AttachedAlgoOrderRequest { /* private fields */ }Expand description
One attached take-profit/stop-loss definition for an algo order.
Implementations§
Source§impl AttachedAlgoOrderRequest
impl AttachedAlgoOrderRequest
Sourcepub fn client_algo_order_id(self, value: impl Into<String>) -> Self
pub fn client_algo_order_id(self, value: impl Into<String>) -> Self
Set the client-supplied attached algo ID.
Sourcepub fn take_profit(
self,
trigger_px: impl Into<String>,
order_px: impl Into<String>,
) -> Self
pub fn take_profit( self, trigger_px: impl Into<String>, order_px: impl Into<String>, ) -> Self
Configure take profit using a trigger price.
Sourcepub fn take_profit_ratio(
self,
trigger_ratio: impl Into<String>,
order_px: impl Into<String>,
) -> Self
pub fn take_profit_ratio( self, trigger_ratio: impl Into<String>, order_px: impl Into<String>, ) -> Self
Configure take profit using a trigger ratio.
Sourcepub fn take_profit_price_type(self, value: impl Into<String>) -> Self
pub fn take_profit_price_type(self, value: impl Into<String>) -> Self
Set the take-profit trigger price source.
Sourcepub fn stop_loss(
self,
trigger_px: impl Into<String>,
order_px: impl Into<String>,
) -> Self
pub fn stop_loss( self, trigger_px: impl Into<String>, order_px: impl Into<String>, ) -> Self
Configure stop loss using a trigger price.
Sourcepub fn stop_loss_ratio(
self,
trigger_ratio: impl Into<String>,
order_px: impl Into<String>,
) -> Self
pub fn stop_loss_ratio( self, trigger_ratio: impl Into<String>, order_px: impl Into<String>, ) -> Self
Configure stop loss using a trigger ratio.
Sourcepub fn stop_loss_price_type(self, value: impl Into<String>) -> Self
pub fn stop_loss_price_type(self, value: impl Into<String>) -> Self
Set the stop-loss trigger price source.
Trait Implementations§
Source§impl Clone for AttachedAlgoOrderRequest
impl Clone for AttachedAlgoOrderRequest
Source§fn clone(&self) -> AttachedAlgoOrderRequest
fn clone(&self) -> AttachedAlgoOrderRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttachedAlgoOrderRequest
impl Debug for AttachedAlgoOrderRequest
Source§impl Default for AttachedAlgoOrderRequest
impl Default for AttachedAlgoOrderRequest
Source§fn default() -> AttachedAlgoOrderRequest
fn default() -> AttachedAlgoOrderRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AttachedAlgoOrderRequest
impl RefUnwindSafe for AttachedAlgoOrderRequest
impl Send for AttachedAlgoOrderRequest
impl Sync for AttachedAlgoOrderRequest
impl Unpin for AttachedAlgoOrderRequest
impl UnsafeUnpin for AttachedAlgoOrderRequest
impl UnwindSafe for AttachedAlgoOrderRequest
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