pub struct StopOrTP {
pub symbol: Arc<str>,
pub is_above: bool,
pub size: f64,
pub threshold: f64,
pub limit: Option<f64>,
pub meta: ActionMeta,
}Expand description
Information for either a Stop or Take-Profit Order
Fields§
§symbol: Arc<str>Which Instrument
is_above: boolIndicates whether above or below threshold to trigger
size: f64Size to be done if triggered
threshold: f64Trigger threshold
limit: Option<f64>Optional limit px if will trigger a limit order
meta: ActionMetaTrait Implementations§
Source§impl<'de> Deserialize<'de> for StopOrTP
impl<'de> Deserialize<'de> for StopOrTP
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 StopOrTP
impl RefUnwindSafe for StopOrTP
impl Send for StopOrTP
impl Sync for StopOrTP
impl Unpin for StopOrTP
impl UnsafeUnpin for StopOrTP
impl UnwindSafe for StopOrTP
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