Market LabDocs

Introduction

Market Lab is a local terminal for algorithmic trading and market making.

Market Lab is a local terminal for algorithmic trading and market making.

Use it to inspect markets, write custom script (strategies) in Python (V2) or JavaScript, deploy automated trading jobs, and manage live execution from the command line.

Earn from Outcome’s $1M reward poolChoose a live campaign market and run a Market Lab bot. The builder fee is 0%.See how →

What You Can Do

TaskCommandGuide
Find markets and symbolsmlab marketsMarket catalog
Read market datamlab sourceSources
Calculate a market studymlab studyStudies
Place a direct ordermlab tradeExecution
Run an execution algorithmmlab strategyStrategies
Run a market makermlab botBots
Backtest or deploy codemlab scriptPython · JavaScript
Supervise live jobsmlab daemonDaemon

How It Fits Together

market data -> strategy, bot, or script -> mlabd -> execution venue
  • Market data can come directly from an exchange or through MMT.
  • Your logic can be built in or written in Python or JavaScript.
  • mlabd keeps live jobs, orders, fills, and state running after the terminal closes.
  • Execution goes directly to the selected venue from your machine.

Market data and execution are separate. A script can read one exchange and execute on another.

Install

curl -fsSL https://marketlab.sh/install.sh | bash
mlab --version
mlab --help

Continue with Installation for backend and PATH options, or Quickstart to run the first commands.

Symbols

Perpetual markets use the base asset:

BTC
ETH
TSLA

Spot markets use the exact pair:

BTC/USDT
HYPE/USDC

Use mlab markets or the web catalog when unsure.

Authentication

Standalone public market data does not need a credential. MMT data, private account state, and live execution do.

See Authentication.

On this page