pub struct HealthThresholds {
pub peg_target: f64,
pub peg_range: f64,
pub min_levels: usize,
pub min_depth: f64,
pub min_bid_ask_ratio: f64,
pub max_bid_ask_ratio: f64,
}Expand description
Health check thresholds for order book validation.
Default values (min_levels=6, min_depth=3000, peg_range=0.001) originated from
the PUSD Hummingbot market-making config. Override via CLI (--min-levels,
--min-depth, --peg-range, --min-bid-ask-ratio, --max-bid-ask-ratio).
Fields§
§peg_target: f64Peg target (e.g., 1.0 for USD stablecoins).
peg_range: f64Price range for “near peg” orders (outliers excluded outside peg ± range×5).
min_levels: usizeMinimum levels per side.
min_depth: f64Minimum depth per side in quote terms (e.g., USDT).
min_bid_ask_ratio: f64Bid/ask ratio below which to warn (bid side thin).
max_bid_ask_ratio: f64Bid/ask ratio above which to warn (ask side thin).
Trait Implementations§
Source§impl Clone for HealthThresholds
impl Clone for HealthThresholds
Source§fn clone(&self) -> HealthThresholds
fn clone(&self) -> HealthThresholds
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 HealthThresholds
impl Debug for HealthThresholds
Auto Trait Implementations§
impl Freeze for HealthThresholds
impl RefUnwindSafe for HealthThresholds
impl Send for HealthThresholds
impl Sync for HealthThresholds
impl Unpin for HealthThresholds
impl UnwindSafe for HealthThresholds
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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