Skip to content
SPECTRE
Xcoming soon

Local backtester

A backtest is for you. It never leaves your machine and never appears on a listing page.

spectre backtest strategy.py --from 2026-05-01 --to 2026-11-01 \
  --equity 1000 --fee-bps 4.5 --builder-bps 2.5 --slippage-bps 2

The backtester downloads Hyperliquid candles and funding history, caches them in .spectre/data, and replays your strategy bar by bar with the same risk guard the live engine uses. It applies taker fees, the builder fee, a slippage assumption, funding payments and Hyperliquid's $10 minimum order value.

It prints return, maximum drawdown, annualized volatility, average leverage, turnover and every risk-guard rejection, and writes a CSV of daily equity.

Paper runner

spectre paper strategy.py --minutes 120

Runs against live Hyperliquid data and prints the orders it would place. Nothing is signed.

What a backtest cannot tell you

Fills at the close are optimistic; real fills slip more in fast markets. Funding and liquidity change. A strategy tuned to a backtest usually does worse live. Run it on your own money first and find out.