pub enum AlgoStrategy {
VWAP {
start_time: String,
end_time: String,
},
TWAP {
start_time: String,
end_time: String,
},
PercentOfVolume {
participation_rate: f64,
},
}Expand description
Algorithmic order strategy
Variants§
VWAP
Volume-weighted average price
TWAP
Time-weighted average price
PercentOfVolume
Percentage of volume
Trait Implementations§
Source§impl Clone for AlgoStrategy
impl Clone for AlgoStrategy
Source§fn clone(&self) -> AlgoStrategy
fn clone(&self) -> AlgoStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlgoStrategy
impl Debug for AlgoStrategy
Source§impl<'de> Deserialize<'de> for AlgoStrategy
impl<'de> Deserialize<'de> for AlgoStrategy
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 AlgoStrategy
impl RefUnwindSafe for AlgoStrategy
impl Send for AlgoStrategy
impl Sync for AlgoStrategy
impl Unpin for AlgoStrategy
impl UnwindSafe for AlgoStrategy
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