Skip to main content

Module market

Module market 

Source
Expand description

§Market Command

Reports peg and order book health for stablecoin markets. Fetches level-2 depth from CEX (Binance, Biconomy) or DEX (Ethereum, Solana) venues and runs configurable health checks including volume and execution estimates. Supports one-shot or repeated runs with configurable frequency and duration.

Structs§

OhlcArgs
Arguments for scope market ohlc.
SummaryArgs
Arguments for scope market summary.
TradesArgs
Arguments for scope market trades.

Enums§

MarketCommands
Market subcommands.
OhlcFormat
Output format for market data commands.
SummaryFormat

Constants§

DEFAULT_DURATION_SECS
Default total duration when in repeat mode (1 hour).
DEFAULT_EVERY_SECS
Default interval between summary runs when in repeat mode (60 seconds).

Functions§

run
Run the market command.