MarketLab Docs

CLI Reference

High-level command map for the current Market Lab CLI surface.

CLI Reference

Current top-level commands:

  • inspect
  • replay
  • source
  • study
  • strategy
  • health

Inspect

Historical or reconstructed market-state inspection.

Example:

cargo run -- inspect --provider mmt --exchange binancef --symbol BTC/USDT --at 1779399687271 --depth 20 --output terminal

Source

Raw provider-facing commands.

Current source commands:

  • source orderbook
  • source candles
  • source vd

Examples:

cargo run -- source orderbook --provider mmt --exchange bybitf --symbol BTC/USDT --depth 100 --output json
cargo run -- source candles --provider mmt --exchange binancef --symbol BTC/USDT --timeframe 60 --from 1779880000000 --to 1779883600000 --output json
cargo run -- source vd --provider mmt --exchange bybitf --symbol BTC/USDT --timeframe 60 --from 1779620400000 --to 1779624000000 --bucket 1 --output json

Study

Derived metrics and calculations.

Current study commands:

  • study spread
  • study depth
  • study imbalance
  • study slippage
  • study vamp
  • study cvd

Examples:

cargo run -- study spread --provider mmt --exchange bybitf --symbol BTC/USDT --depth 20 --output json
cargo run -- study slippage --provider mmt --exchange bybitf --symbol BTC/USDT --side buy --notional 100000 --depth 100 --output json

Strategy

Time-series logic over provider data.

Current strategy commands:

  • strategy run sma-crossover
  • strategy backtest sma-crossover

Run mode:

cargo run -- strategy run sma-crossover --provider mmt --exchange bybitf --symbol BTC/USDT --timeframe 60 --output terminal

Backtest mode:

cargo run -- strategy backtest sma-crossover --provider mmt --exchange bybitf --symbol BTC/USDT --timeframe 60 --from 1779660000000 --to 1779705600000 --fast 20 --slow 50 --confirm-bars 1 --output terminal

Notes:

  • strategy run is live mode
  • strategy backtest is historical mode
  • strategy run can accept optional --from as a warmup anchor
  • strategy backtest requires --from and --to

Health

Provider health and connectivity checks.

cargo run -- health --provider mmt --output json

On this page