Beta

5 ready to run, free · 21 being prepared

preflight.md
Pre-flight

Mean reversion on the Binance hack survived, but broke 2 limits

Backtest−$4.7KFills at the close, no costs
−$2.3K
Real market−$7.1KReal fills, fees and funding
+$384saved by safety limits
With safety limits−$6.7K9 orders blocked or cut

Shaded: what the backtest hid · BTC perp on Binance · 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

    37 fills paid 0.03 bps on average and 0.14 bps at worst. Depth fell to 33% of its past hour at Fri 01:02 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.02 bps on a typical bar and 0.52 bps at its widest, at 20:43 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

    Paid $3 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 Binance hack: BNB moved 92 seconds after the sweep

Read the full story