Skip to content

Sample Scripts

How to Run Scripts

Configurable V2 scripts use a YAML file in conf/scripts/:

create --v2-config [SCRIPT_NAME]
start --v2 [CONFIG_FILE_NAME.yml]

See Configuration Files and Start and Stop Strategy.

Scripts in /scripts

Sample scripts ship in the repository root /scripts folder. Only files in that root directory are picked up by the client autocomplete for create --v2-config and start --v2.

The following scripts are present in current releases (names without .py for create --v2-config):

Data and screening

Execution and PMM

  • simple_pmmsimple_pmm.py: Simple two-sided PMM using StrategyV2Base (good starting point for V2 scripts).
  • simple_vwapsimple_vwap.py: VWAP-style example.
  • simple_xemmsimple_xemm.py: Simplified cross-exchange market making.

V2 orchestration

XRPL

Utilities and demos

Additional teaching examples may live under controllers/generic/examples/ as controllers, not as top-level scripts.

To use a new script in the client, place the .py file in the instance scripts/ directory (or the repo scripts/ folder when developing from source).