JSON Output
Compact machine output, verbose mode, and stream-friendly JSONL behavior.
JSON Output
Market Lab has two priorities:
- good human terminal output
- compact machine-readable output
Default JSON
For study and strategy, default JSON is intentionally compact.
That means the default output includes only the fields an agent or script usually needs.
Verbose JSON
Add --verbose to include expanded context.
Examples:
mlab study spread --provider mmt --exchange bybitf --symbol BTC/USDT --depth 20 --output json --verbosemlab strategy backtest sma-crossover --provider mmt --exchange bybitf --symbol BTC/USDT --timeframe 60 --from 1779660000000 --to 1779705600000 --fast 20 --slow 50 --output json --verboseStream JSONL
Use jsonl for stream-oriented commands.
Examples:
mlab source candles --provider mmt --exchange binancef --symbol BTC/USDT --timeframe 60 --stream --output jsonlmlab strategy run sma-crossover --provider mmt --exchange bybitf --symbol BTC/USDT --timeframe 60 --output jsonlStudy Shape
Default compact study JSON contains:
typeversionproviderexchangesymbolts_msstreammetrics
Verbose study JSON also includes:
inputsmeta
Strategy Shape
Run strategy JSON is event-oriented.
Backtest strategy JSON is summary-oriented.
Default compact backtest JSON contains:
typeversionstrategyproviderexchangesymbolts_msperformance
Verbose backtest JSON also includes:
windowinputslatest_statereasons
Default compact stream strategy JSON contains:
typeversionstrategyproviderexchangesymbolts_msmodesignaldecisionmetrics