pub enum AlertKind {
Stoploss,
TakeProfit {
close_ratio: f64,
},
BreakevenTrigger,
PendingFill {
order_type: OrderType,
side: Side,
},
}Expand description
The type of alert — determines what effect to produce when triggered.
Variants§
Stoploss
Close the position fully (fixed stoploss hit).
TakeProfit
Partial or full close at this take-profit level.
BreakevenTrigger
Move stoploss to entry price (breakeven trigger).
PendingFill
Fill a pending order.
Trait Implementations§
impl StructuralPartialEq for AlertKind
Auto Trait Implementations§
impl Freeze for AlertKind
impl RefUnwindSafe for AlertKind
impl Send for AlertKind
impl Sync for AlertKind
impl Unpin for AlertKind
impl UnsafeUnpin for AlertKind
impl UnwindSafe for AlertKind
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