ARCHITECTURAL COMPARISON ยท PUBLIC TESTNET VS. LOCAL MAINNET SHADOW-CLOB
Hyperliquid Public Testnet vs. Local Mainnet-Mirrored Shadow-CLOB
Hyperliquid's public testnet is useful for checking EIP-712 payload formatting, but using testnet fills to judge whether a perpetual market maker or execution bot will make money on mainnet is a classic trap. Testnet books lack real HFT cross-venue arbitrageurs, exhibit artificial 30–80 bps spreads, and cannot be replayed deterministically in CI/CD when you change quoting logic.
| Testing Capability | Hyperliquid Public Testnet | Fera Terra Local Shadow-CLOB (127.0.0.1:8085) |
|---|---|---|
| Order-Book Depth & Spreads | Thin faucet liquidity, wide stale spreads | ✓ Mirrors live Hyperliquid mainnet L2 depth & prints in real time |
| Adverse Selection & Sniping | Near-zero toxic taker flow during BTC moves | ✓ Mainnet sweeps + seeded 5-sigma crash & funding-squeeze packs |
| Reproducibility & Speed | Real-time wall clock only; non-repeatable | ✓ Record .trace.jsonl once, replay 10-min session in <1s |
| Keys & Network Isolation | Requires testnet faucet keys & external RPC | ✓ Zero wallet keys; offline replay & GitHub Actions ci-gate |
Point hyperliquid-python-sdk or Rust Bots at 127.0.0.1:8085
Fera Terra serves Hyperliquid's wire routes locally โ /info (meta, metaAndAssetCtxs, l2Book, clearinghouseState, openOrders, userFills), /exchange (order with Alo post-only rejects, cancel, cancelByCloid, batchModify, scheduleCancel), and RFC 6455 WebSocket feeds:
pip install feraterra feraterra up --venue hyperliquid --symbols BTC-PERP,ETH-PERP,SOL-PERP --cancel-latency-ms 120 # Or enforce deterministic PR gates in GitHub Actions: feraterra ci-gate --pack whipsaw_funding_squeeze --bot-cmd "./target/release/hl-bot" --max-cancel-snipes 5