MarketLab Docs

Installation

Install the Market Lab CLI and connect it to MMT.

Installation

Market Lab is distributed as a downloadable CLI binary.

Requirements

  • curl
  • tar
  • an MMT API key for provider-backed commands

Supported Platforms

Current binary releases are published for:

  • macOS arm64
  • Linux x64
  • Linux arm64

Install

curl -fsSL https://marketlab.sh/install.sh | sh

Install a specific version:

curl -fsSL https://marketlab.sh/install.sh | sh -s -- v0.0.1

Environment

Get an API key from Market Monkey Terminal

export MMT_API_KEY=your_key

Verify Install

mlab --version
mlab --help

Quickstart in 60 Seconds

Export your MMT API key:

export MMT_API_KEY=your_key

Check connectivity:

mlab health --provider mmt

Inspect the orderbook:

mlab source orderbook \
  --provider mmt \
  --exchange bybitf \
  --symbol BTC/USDT \
  --depth 20

Estimate slippage:

mlab study slippage \
  --provider mmt \
  --exchange bybitf \
  --symbol BTC/USDT \
  --side buy \
  --notional 100000

Run a historical strategy backtest:

mlab strategy backtest sma-crossover \
  --provider mmt \
  --exchange bybitf \
  --symbol BTC/USDT \
  --timeframe 60 \
  --from 1779660000000 \
  --to 1779705600000

Provider Support

Market Lab currently supports only one external provider/data source:

More providers will be integrated over time, but the current docs and examples assume mmt.

On this page