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 (the Ratchet Stop / tier ladder) or the risk guard rails (a latched daily-loss or drawdown halt) — 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).

jiayaoqijia Updated 81 repo stars

File contents

jiayaoqijia/cryptoskill commit 4c2e7d4e4a

Frequently asked questions

npx get-skill add jiayaoqijia/senpi-trading-runtime