pub struct TrailingStop {
pub distance: TrailingDistance,
pub activation_price: Option<Price>,
pub trigger_price_source: Option<TriggerPriceSourceKind>,
pub order_type: Option<CreateOrderType>,
pub max_slippage: Option<MaxSlippage>,
}Expand description
Trailing-stop attached-risk leg.
Distance and optional max slippage must be positive. The child is always a
market-IOC execution evaluated against last trade; supplying
trigger_price_source or
order_type is rejected.
Fields§
§distance: TrailingDistance§activation_price: Option<Price>§trigger_price_source: Option<TriggerPriceSourceKind>👎Deprecated:
attached trailing always uses last trade; supplying trigger_price_source is rejected
Deprecated for attached trailing: any supplied value is rejected because the wire contract always evaluates against last trade.
order_type: Option<CreateOrderType>👎Deprecated:
attached trailing child is always market; supplying order_type is rejected
Deprecated for attached trailing: any supplied value is rejected because the child is always an implicit market execution.
max_slippage: Option<MaxSlippage>Trait Implementations§
Source§impl Clone for TrailingStop
impl Clone for TrailingStop
Source§fn clone(&self) -> TrailingStop
fn clone(&self) -> TrailingStop
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 TrailingStop
impl Debug for TrailingStop
impl Eq for TrailingStop
Source§impl PartialEq for TrailingStop
impl PartialEq for TrailingStop
impl StructuralPartialEq for TrailingStop
Auto Trait Implementations§
impl Freeze for TrailingStop
impl RefUnwindSafe for TrailingStop
impl Send for TrailingStop
impl Sync for TrailingStop
impl Unpin for TrailingStop
impl UnsafeUnpin for TrailingStop
impl UnwindSafe for TrailingStop
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.