pub struct RiskLeg {
pub trigger_price: Price,
pub trigger_price_source: Option<TriggerPriceSourceKind>,
pub order_type: Option<CreateOrderType>,
pub limit_price: Option<Price>,
}Expand description
Take-profit or stop-loss leg (trigger + optional LIMIT child).
Fields§
§trigger_price: Price§trigger_price_source: Option<TriggerPriceSourceKind>👎Deprecated:
attached risk always uses last trade; supplying trigger_price_source is rejected
Deprecated for attached risk: any supplied value is rejected because the wire contract always evaluates against last trade.
order_type: Option<CreateOrderType>§limit_price: Option<Price>Trait Implementations§
impl Eq for RiskLeg
impl StructuralPartialEq for RiskLeg
Auto Trait Implementations§
impl Freeze for RiskLeg
impl RefUnwindSafe for RiskLeg
impl Send for RiskLeg
impl Sync for RiskLeg
impl Unpin for RiskLeg
impl UnsafeUnpin for RiskLeg
impl UnwindSafe for RiskLeg
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.