MarketLab Docs

Installation

Install Market Lab and configure provider credentials securely.

Installation

Market Lab is distributed as a downloadable CLI binary.

Requirements

  • curl
  • tar
  • an MMT API key only when using the MMT provider
  • a BULK account only if you want to prepare an agent wallet for the upcoming execution adapter

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

MMT Market Data

Get an API key from Market Monkey Terminal

mlab auth set mmt

Market Lab stores the key in the operating system keychain. Use MMT_API_KEY only for CI or other non-interactive environments.

BULK Market Catalog

Inspect the BULK market catalog without credentials or a network request:

mlab markets --provider bulk
mlab markets --provider bulk --symbol BTC/USDT

Public BULK market data also works without credentials:

mlab health --provider bulk
mlab source orderbook --provider bulk --symbol BTC/USDT --depth 20

BULK Agent Wallet

Market Lab can prepare an authorized BULK agent wallet:

mlab auth set bulk

The command generates the agent locally, stores it in the operating system keychain, and asks for the main wallet private key through a hidden prompt to authorize the agent. Market Lab does not store the main wallet private key.

Check both credential integrations:

mlab auth status

Market Lab order execution is not available yet. See BULK Provider for market-data behavior, catalog rules, agent setup, retry, removal, and security behavior.

Verify Install

mlab --version
mlab --help

Quickstart in 60 Seconds

Configure your MMT API key:

mlab auth set mmt

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

Integration Support

Market data currently comes from:

MMT provides multi-venue data and requires an API key. BULK public market data requires no credential. Current built-in study, strategy, and script examples use --provider mmt; BULK is currently available through source, health, and markets.

On this page