REST History Versus Replay
Backtest Input Contract
1
Name the route family
Store Hyperliquid core, Hyperliquid Spot, HIP-3, HIP-4, or Lighter explicitly with the backtest.
2
Bound the replay window
Use explicit start, end, channel, symbol, and speed values. Avoid endless replay jobs.
3
Handle gaps
Record gap events and decide whether the run is invalid, partial, or rebuildable.
4
Save replay metadata
Store channel list, symbol, timestamps, speed, request IDs, output location, and data-quality preflight.
Replay Example
Replay Job Config
Store the same fields with every replay-backed test so results can be compared later.
Backtests should also record consumer lag. If the replay outpaces the strategy loop or output writer, the run should stop or slow down rather than silently dropping messages.