pub struct SummaryArgs {
pub pair: String,
pub venue: String,
pub token_contract: Option<String>,
pub chain: Option<String>,
pub health: HealthArgs,
pub format: SummaryFormat,
pub every: Option<String>,
pub duration: Option<String>,
pub report: Option<PathBuf>,
pub csv: Option<PathBuf>,
}Expand description
Arguments for scope market summary.
Default thresholds (min_levels, min_depth, peg_range) originated from stablecoin market-making defaults and are tunable for other markets.
Fields§
§pair: String§venue: String§token_contract: Option<String>The base token’s contract: use it and skip the lookup and the venue check.
chain: Option<String>Chain for a DEX venue. The venue already names its chain, so this is only a check: a different chain is an error. Ignored for CEX venues.
health: HealthArgsHealth threshold overrides (flag > config market.health > default).
format: SummaryFormatOutput format.
every: Option<String>Run repeatedly at this interval (e.g., 30s, 5m, 1h). Default when in repeat mode: 60s.
duration: Option<String>Run for this total duration (e.g., 10m, 1h, 24h), or forever
(also inf) to run until Esc or Ctrl-C.
Default when in repeat mode: 1h.
report: Option<PathBuf>Save markdown report to file (one-shot mode) or final report (repeat mode).
csv: Option<PathBuf>Append time-series CSV of peg/spread/depth to this path (repeat mode only).
Trait Implementations§
Source§impl Args for SummaryArgs
impl Args for SummaryArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for SummaryArgs
impl Debug for SummaryArgs
Source§impl FromArgMatches for SummaryArgs
impl FromArgMatches for SummaryArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for SummaryArgs
impl RefUnwindSafe for SummaryArgs
impl Send for SummaryArgs
impl Sync for SummaryArgs
impl Unpin for SummaryArgs
impl UnsafeUnpin for SummaryArgs
impl UnwindSafe for SummaryArgs
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
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> ⓘ
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> ⓘ
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