Beta

5 ready to run, free · 21 being prepared

preflight.md
Pre-flight

Mean reversion on the 10 Oct cascade broke its loss limit at 21:13 UTC

Backtest−$15.3KFills at the close, no costs
−$1.5K
Real market−$16.8KReal fills, fees and funding
+$6.1Ksaved by safety limits
With safety limits−$10.8KStopped at 21:14 UTC

Shaded: what the backtest hid · BTC perp on Hyperliquid · 15-second bars, UTC

What to fix

Start with the first. Safety limits enforce all of them.

The data behind this run

Four Aperiodic datasets turn the backtest into the real market.

  • l2_liquidityOrder book depthCatalog

    27 fills paid 0.67 bps on average and 5.5 bps at worst. Depth fell to 25% of its past hour at 20:53 UTC.

    Each order walks the dollars resting in the top 5, 10, 20 and 25 levels on its side of the book. It also sets the largest-order and thin-book limits. bid_agg / ask_agg, 5 to 25 levels

  • l1_liquiditySpread and top of bookCatalog

    The spread was 0.25 bps on a typical bar and 38 bps at its widest, at 21:18 UTC.

    Feeds the Cost and Depth indices

    Where the walk starts: half the spread from the mid. The thin-book limit watches the spread too. spread_bps

  • derivative_priceMark priceCatalog

    Margin was checked on the mark every bar; the agent was not liquidated.

    Margin and liquidation are checked on the mark, as the exchange does, not on the last trade, minute by minute. mark_price, index_price

  • fundingFunding rateCatalog

    Earned $6 in funding on the open position.

    Paid or earned on the open position at the recorded rate, accrued bar by bar over the funding interval. funding_rate

Also read: ohlcv, the candlesticks. The backtest fills every order at the close, and the preset strategies trade on it.

BookOrdersBreaches

About 4 min a tile: how far the book thinned against its past hour, when the agent traded, and when it broke a limit

Next step

Now test your own agent

Paste the orders it sent, free on every recorded event, or let Claude Code or Cursor write them from preflight.md.

Agent

Market

Rules

The result on screen matches this setup.

This event

The liquidation cascade: half the book gone in six minutes

Read the full story