pub struct ConservativeParams {
pub adverse_selection_prob: f64,
pub hidden_liquidity_ratio: f64,
pub front_run_probability: f64,
pub queue_position_penalty: f64,
pub slippage_bias_bps: f64,
}Expand description
Conservative execution parameters
Fields§
§adverse_selection_prob: f64Adverse selection probability (0.0 to 1.0)
Hidden liquidity ratio (fraction that trades before visible)
front_run_probability: f64Front-running probability for retail orders
queue_position_penalty: f64Worst-case queue position bias
slippage_bias_bps: f64Slippage bias in basis points
Implementations§
Source§impl ConservativeParams
impl ConservativeParams
Sourcepub const fn non_conservative() -> Self
pub const fn non_conservative() -> Self
Create non-conservative params (all zeros)
Trait Implementations§
Source§impl Clone for ConservativeParams
impl Clone for ConservativeParams
Source§fn clone(&self) -> ConservativeParams
fn clone(&self) -> ConservativeParams
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConservativeParams
impl Debug for ConservativeParams
Auto Trait Implementations§
impl Freeze for ConservativeParams
impl RefUnwindSafe for ConservativeParams
impl Send for ConservativeParams
impl Sync for ConservativeParams
impl Unpin for ConservativeParams
impl UnwindSafe for ConservativeParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more