pub struct Range {
pub symbol: Arc<str>,
pub is_buy: bool,
pub size: f64,
pub collar_min: f64,
pub collar_max: f64,
pub limit_min: Option<f64>,
pub limit_max: Option<f64>,
pub meta: ActionMeta,
}Expand description
A combined take-profit + stop operating in a collar
Fields§
§symbol: Arc<str>Which Instrument
is_buy: boolIndicates whether the underlying position is buy or sell
size: f64Size to be done if triggered
collar_min: f64Trigger threshold (low)
collar_max: f64Trigger threshold (high)
limit_min: Option<f64>Limit price for low trigger (or none)
limit_max: Option<f64>Limit price for low trigger (or none)
meta: ActionMetaTrait Implementations§
Source§impl<'de> Deserialize<'de> for Range
impl<'de> Deserialize<'de> for Range
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
Auto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnsafeUnpin for Range
impl UnwindSafe for Range
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