Market LabDocs

Quickstart

Inspect and stream a public market, then preview execution.

1. Check Market Lab

mlab --version
mlab daemon backend

2. Install a Public Market Snapshot

Hyperliquid perpetual market data does not require authentication:

mlab markets --exchange hyperliquidf --refresh
mlab markets --exchange hyperliquidf --symbol BTC

Perpetual symbols use the base asset, such as BTC. Spot symbols keep the exact pair.

3. Read the Market

mlab source orderbook \
  --exchange hyperliquidf \
  --symbol BTC \
  --depth 20

Stream live updates from the same orderbook:

mlab source orderbook \
  --exchange hyperliquidf \
  --symbol BTC \
  --depth 20 \
  --stream

4. Preview Execution

Authorize Hyperliquid:

mlab auth set hyperliquid

Preview a perpetual order without submitting it:

mlab trade long BTC \
  --venue hyperliquidf \
  --margin 10 \
  --leverage 2 \
  --dry-run

Keep --dry-run until the printed plan is correct. Read Execution before placing a live order.

Choose the Next Task

GoalContinue with
Configure another providerAuthentication
Reuse command settingsConfiguration
Control Market Lab installed on a VPSSSH Transport
Write a Python strategyPython Scripting V2
Research historical data in JupyterJupyter Notebook
Write a JavaScript strategyJavaScript Scripting
Run an execution algorithmStrategies
Run a market makerBots

On this page