Skip to main content
Scripts are V1 Python scripts that run inside bot containers for simpler automation tasks. They’re ideal for straightforward strategies that don’t require the full controller framework.

Scripts vs Controllers

Built-in Scripts

Script Structure

Running Scripts

Via Telegram

Via API

Script Configuration

Scripts use a simpler configuration format:

Creating Custom Scripts

  1. Create a Python file in scripts/
  2. Inherit from ScriptStrategyBase
  3. Implement on_tick() method

Script Lifecycle

Scripts have a simpler lifecycle than controllers:

When to Use Scripts

Use Scripts for:
  • Simple market making
  • Basic arbitrage
  • One-off automation tasks
  • Learning/prototyping
Use Controllers for:
  • Complex multi-executor strategies
  • Advanced risk management
  • Production trading systems
  • Strategies requiring state management