ARCHITECTURAL COMPARISON ยท CLIENT PAPER MODE VS. C++23 L3 MATCHING ENGINE
Hummingbot Paper Trade & DIY Paper Shims vs. Fera Terra C++23 L3 FIFO
Open-source execution frameworks like Hummingbot and custom Python/TypeScript bot loops make it easy to connect to crypto exchanges. However, built-in client-side paper-trading modes and DIY if trade_price <= my_bid: fill() loops do not maintain an independent Level-3 Price-Time FIFO order book with venue sequence priority ahead of your resting quotes โ nor do they keep canceled quotes exposed during 60–220 ms network round-trips.
| Microstructure Mechanism | Client-Side Paper Trade / DIY Loop | Fera Terra C++23 Shadow-CLOB |
|---|---|---|
| Queue Aging Ahead of Quote | No per-order sequence_num ahead/behind tracking |
✓ 64-bit fixed-point C++23 L3OrderBook ages exact resting depth |
| In-Flight Cancel Exposure | Local state removes order immediately in 0 ms |
✓ Order stays live in matching engine until t + Δt_cancel |
| Side-by-Side Illusion Audit | Reports optimistic paper PnL only | ✓ Computes Naive Paper PnL & Real L3 FIFO PnL simultaneously |
| HTTP 429 / 502 Chaos Faults | Clean local function calls never rate-limit | ✓ Injects venue rate limits, 502 gateway drops, & WS reconnects |
Use Together: Run Your Bot Against Fera Terra's Local Exchange Port
You do not have to abandon your existing bot framework. Point your Polymarket or Hyperliquid connector's REST and WebSocket base URLs at http://127.0.0.1:8085 and let Fera Terra grade 1-second and 5-second post-fill markout toxicity automatically:
pip install feraterra feraterra up --venue polymarket --auto-top-markets 4 --cancel-latency-ms 140 --rate-limit-prob 0.02