Senpi Trading Runtime

How a Senpi trading strategy interacts with the runtime engine (@senpi-ai/runtime) on Hyperliquid: a strategy runs from a runtime.yaml pointing at a Python module that exports scan(inputs, ctx), which the runtime supervises and calls each interval, then owns execution, risk guard_rails, and two-phase DSL trailing-stop exits. Use when working with runtime.yaml, the scan(inputs, ctx) contract, external_scanner, ctx, or the DSL exit engine — including verifying open positions are protected by DSL (have a working stop-loss). The shared runtime contract the lifecycle skills reference. NOT for building, installing, or picking a strategy (→ senpi-strategy-author / senpi-strategy-ops / senpi-strategy-discover).

senpi-ai 7e11336 10 files · 95.8 KB Updated

File contents

senpi-ai/senpi-skills/tree/main/senpi-trading-runtime commit 7e11336a6e

Frequently asked questions

npx skillmds add senpi-ai/senpi-trading-runtime