Market LabDocs

Studies

Calculate spread, depth, imbalance, slippage, VAMP, and CVD.

A study reads market data and returns one calculated result.

StudyResult
spreadBest bid/ask spread
depthAvailable orderbook depth
imbalanceBid and ask depth imbalance
slippageEstimated execution slippage
vampVolume-adjusted midpoint
cvdCumulative volume delta

Spread

mlab study spread \
  --provider mmt \
  --exchange bybitf \
  --symbol BTC \
  --depth 20

Slippage

mlab study slippage \
  --provider mmt \
  --exchange bybitf \
  --symbol BTC \
  --side buy \
  --notional 100000 \
  --depth 100

CVD

mlab study cvd \
  --provider mmt \
  --exchange bybitf \
  --symbol BTC \
  --timeframe 60 \
  --from <UTC_DATETIME> \
  --to <UTC_DATETIME> \
  --bucket 1

Add --output json when another program will consume the result.

On this page