pub enum TradeSlotState {
Vacant,
Pending {
side: Side,
requested_price: Option<f64>,
stoploss: Option<f64>,
},
Open {
side: Side,
entry_price: f64,
remaining_size: f64,
stoploss: Option<f64>,
opened_at: NaiveDateTime,
favorable_excursion: Option<f64>,
adverse_excursion: Option<f64>,
initial_risk: Option<f64>,
},
}Variants§
Vacant
Pending
Open
Fields
§
opened_at: NaiveDateTimeAuthoritative time of the committed entry fill.
§
favorable_excursion: Option<f64>Best campaign profit and loss since entry in the adapter’s account currency, never below zero, or missing when the adapter cannot price the position yet.
Trait Implementations§
Source§impl Clone for TradeSlotState
impl Clone for TradeSlotState
Source§impl Debug for TradeSlotState
impl Debug for TradeSlotState
Source§impl PartialEq for TradeSlotState
impl PartialEq for TradeSlotState
impl StructuralPartialEq for TradeSlotState
Auto Trait Implementations§
impl Freeze for TradeSlotState
impl RefUnwindSafe for TradeSlotState
impl Send for TradeSlotState
impl Sync for TradeSlotState
impl Unpin for TradeSlotState
impl UnsafeUnpin for TradeSlotState
impl UnwindSafe for TradeSlotState
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