MarketLab Docs
Strategies

Strategies

Use Market Lab's native execution strategies as supervised jobs.

Strategies

Strategies are native Rust execution algorithms. You provide the trading intent—such as the symbol, side, total amount, and execution constraints—and the strategy decides how to divide and schedule the resulting orders.

Strategies do not decide whether the market should be bought or sold. The user supplies --side buy or --side sell. This distinguishes execution strategies from autonomous bots, which own their trading decisions internally.

The currently available strategy is:

  • TWAP: divide a parent order into approximately equal child orders and submit them at a fixed interval

Strategies, Bots, and Scripts

  • A strategy executes user-supplied intent. TWAP and VWAP belong here.
  • A bot owns its trading decisions. Market-making and delta-neutral systems belong here.
  • A script is the extension layer. JavaScript can implement either strategy-like execution or autonomous bot logic.

Only native strategies are exposed through mlab strategy. Bots will have their own command group as they are added.

Job Model

Live strategies are detached jobs supervised by mlabd. Running a strategy validates its complete parent order, asks for confirmation, submits the job, prints its ID, and returns control to the terminal.

mlab strategy jobs
mlab strategy status <JOB_ID>
mlab strategy logs <JOB_ID> --follow
mlab strategy stop <JOB_ID>

There is intentionally no generic strategy restart command. Restarting a partially executed parent order could submit the completed quantity again. Submit a new strategy job with a deliberately chosen remaining amount instead.

Built-in strategies can place real orders. Preview the normalized plan with --dry-run before submitting a live job.

On this page