Market LabDocs

Sources

Read historical and live market data from standalone exchanges or MMT.

Source Types

SourceSpotPerpetualsOutcomes
orderbookYesYesYes
tradesYesYesYes
candlesYesYesYes
volumesProvider-dependentYesNo
vdProvider-dependentYesNo
oiNoYesNo
fundingNoYesNo
statsNoYesNo

Provider support can be narrower. Check the relevant provider page.

Standalone Source

mlab source orderbook \
  --exchange hyperliquidf \
  --symbol xyz:TSLA \
  --depth 20

Standalone exchanges omit --provider.

MMT Source

mlab source orderbook \
  --provider mmt \
  --exchange bybitf \
  --symbol BTC \
  --depth 100

Historical Range

mlab source candles \
  --exchange binancef \
  --symbol BTC \
  --timeframe 60 \
  --from <UTC_DATETIME> \
  --to <UTC_DATETIME>

Range boundaries are UTC. Use YYYY-MM-DD or quote YYYY-MM-DD HH:MM:SS when you need an exact time.

Stream

mlab source trades \
  --exchange hyperliquidf \
  --symbol BTC \
  --stream \
  --output jsonl

Do not combine --stream with --from or --to.

Output

--output terminal
--output json
--output jsonl

Use JSON for one result and JSONL for a stream. See JSON Output.

Script Selectors

Standalone:

btc@candles@binancef:timeframe=60
btc@trades@hyperliquidf
xyz:tsla@candles@hyperliquidf:timeframe=60

MMT:

btc@candles@binancef@mmt:timeframe=60
btc@orderbook@okxf@mmt:depth=20
xyz:tsla@candles@hyperliquidf@mmt:timeframe=60

For Hyperliquid HIP-3, the exchange remains hyperliquidf and the symbol carries the DEX scope. Market Lab maps an MMT selector such as xyz:tsla@...@hyperliquidf@mmt to MMT's upstream hyperliquid-xyz route.

See Python sources or JavaScript sources.

On this page