pub enum StrategyType {
Balancer,
Hold,
Scalper,
Dca,
Custom(String),
}Expand description
The type of allocation strategy.
Variants§
Balancer
Balancer strategy - maintains target allocations across sub-allocations.
Hold
Hold strategy - maintains a position in a single ticker.
Scalper
Scalper strategy - buy-low/sell-high with FIFO tracking.
Dca
DCA (Dollar Cost Average) strategy - regular purchases.
Custom(String)
Custom strategy with a name.
Implementations§
Trait Implementations§
Source§impl Clone for StrategyType
impl Clone for StrategyType
Source§impl Debug for StrategyType
impl Debug for StrategyType
Source§impl Default for StrategyType
impl Default for StrategyType
Source§impl<'de> Deserialize<'de> for StrategyType
impl<'de> Deserialize<'de> for StrategyType
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
impl Eq for StrategyType
Source§impl PartialEq for StrategyType
impl PartialEq for StrategyType
Source§impl Serialize for StrategyType
impl Serialize for StrategyType
impl StructuralPartialEq for StrategyType
Auto Trait Implementations§
impl Forget for StrategyType
impl Freeze for StrategyType
impl Move for StrategyType
impl RefUnwindSafe for StrategyType
impl Send for StrategyType
impl Sync for StrategyType
impl Unpin for StrategyType
impl UnsafeUnpin for StrategyType
impl UnwindSafe for StrategyType
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