PyPI v1.0.1 · Polymarket CLOB & Hyperliquid Perps · Local C++23 Engine

Your backtest says +$154. The real queue says -$245.

DIY paper-trading loops fill every limit order the instant price touches your tick and cancel stale quotes in 0ms. Live order books put 10,000+ shares ahead of you and sweep your resting quotes while your cancel is still in flight. Fera Terra runs a native C++23 L3 FIFO matching engine on 127.0.0.1:8085 so you measure your real PnL before mainnet takes tuition.

$pip install feraterra
Zero wallet or API keys Runs 100% offline / localhost Python, Rust, Go & TypeScript
64-Bit Fixed-Point
Integer tick & lot matching in C++23 with monotonic L3 FIFO sequence priority
127.0.0.1:8085
Zero-rewrite HTTP & WebSocket drop-in for py-clob-client & Hyperliquid SDKs
Ed25519
Offline RFC 8032 license verification with zero runtime phone-home latency
4 OS Wheels
Prebuilt binaries for Linux x64/ARM64, macOS Universal2, & Windows x64
INTERACTIVE C++23 WORKBENCH

Drag cancel latency. Watch your paper edge evaporate.

Every slider adjustment below executes the compiled C++23 arena-server matching engine on real order-book queues — not pre-canned static screenshots.

arena-server · Price-Time FIFO vs. Naive Tracker
Ready · Native C++23 engine
Naive Paper PnL (0ms / Touch=Fill)
--
Real C++23 L3 FIFO Net PnL
--
Backtest Illusion Gap (Overstatement)
--
In-Flight Cancel Snipes
--
Queue-Blocked Non-Fills
--
+1s Post-Fill Markout
--
Perp Funding Settlement
--
Cumulative Mark-to-Mid PnL (60 Book Snapshots · Shaded Region = Backtest Error) --- Naive Paper  ·  —— C++23 L3 FIFO
Initializing C++23 Shadow-CLOB simulation...
Executing C++23 simulation...
Execution Blunder Telemetry
  • Awaiting simulation telemetry...
WHY PAPER BOTS BLOW UP LIVE

Three microstructure traps no OHLCV or mid-price backtester models

01 / QUEUE STARVATION

Benign touches never reach the back of a 10,000-lot queue

When price ticks to your bid and bounces, naive paper scripts credit an instant maker fill. Fera Terra tracks exact monotonic sequence_num priority ahead of your quote — if only 200 shares print behind 9,000 resting contracts, you get zero fill.

02 / CANCEL-WINDOW ADVERSE SELECTION

Toxic sweeps clear 100% of your stale quotes before t + Δt_cancel

Over cloud REST or WebSocket, canceling a quote takes 60–220 ms. Fera Terra keeps canceled orders live inside the C++23 engine across your exact round-trip window and isolates every post-cancel pick-off in basis points.

03 / VENUE-EXACT INVENTORY & MARGIN PHYSICS

Polymarket CTF splits & Hyperliquid ALO / cross-margin rules

Enforces Polymarket ERC-1155 /ctf/split share balances (no accidental naked binary shorts) and Hyperliquid Alo post-only cross rejections, funding ticks, and maintenance-margin liquidations.

ZERO STRATEGY REWRITES

Point your existing bot at 127.0.0.1:8085

Live market depth streams directly from the venue to your IP; order matching, queue aging, and fills run locally in C++23:

# Terminal 1: Mirror live Hyperliquid L2 + trades into local C++23 Shadow-CLOB
pip install feraterra
feraterra up --venue hyperliquid --symbols BTC-PERP,ETH-PERP --cancel-latency-ms 120

# Terminal 2: Unmodified hyperliquid-python-sdk pointed at localhost:8085
from hyperliquid.info import Info
info = Info(base_url="http://127.0.0.1:8085", skip_ws=False)
print(info.meta_and_asset_ctxs()[0]["universe"])
Execution Dimension Mid-Price / Candle Backtest Public Exchange Testnet Fera Terra C++23 Shadow-CLOB
Resting Queue Priority × Instant 100% fill on price touch × Empty books / fake faucet fills ✓ Exact L3 FIFO queue ahead of every quote
Cancel-Window Sniping × 0ms instantaneous cancels × Zero informed arbitrage flow ✓ Configurable order/cancel lag + markout curves
Venue Wire Protocol × Custom pandas / CSV loop rewrite Frequent downtime & stale oracles ✓ Drop-in :8085 Hyperliquid & Polymarket APIs
CI/CD Regression Gates × Cannot test compiled Rust/Go binaries × Non-reproducible live market state ✓ Seeded 5-sigma crash packs & .trace.jsonl diffs
VectorBT & Backtesting.py vs. L3 FIFO → Hyperliquid Testnet vs. Local Shadow-CLOB → Hummingbot Paper Trade vs. Fera Terra →
TRANSPARENT PRICING

Cheaper than a single toxic fill.

Getting sniped once on a stale 500-share Polymarket quote or 2 ETH perp order costs $150–$600 in milliseconds. Catching one bug pays for an entire year.

Hobby
$0 / forever

Verify local C++23 FIFO matching and replay recorded tapes on 1 market.

  • 1 live shadow market (5-min session)
  • Offline .trace.jsonl L3 FIFO replay
  • Hyperliquid & Polymarket local shims
  • Self-contained HTML5 tearsheets
Install via pip — Free
Indie Quant
$49 / month

Full-day live shadow burn-in & chaos testing for solo bot builders.

  • Up to 4 concurrent shadow markets
  • 24-hour continuous live sessions
  • All 4 synthetic 5-sigma crash packs
  • HTTP 429 / 502 & jitter fault injection
  • Unlimited live .trace.jsonl recording
Trading Team / Pod
$299 / month

High-concurrency multi-venue desks, prop pods, & research labs.

  • Up to 64 concurrent shadow markets
  • 30-day continuous soak sessions
  • Unlimited parallel CI/CD runners
  • Auto monthly CI lease refresh & team archive
Instant Key Delivery: Offline ft_live_... Ed25519 token issued immediately after Stripe Checkout. Zero Lock-In: One-click self-service cancellation anytime · 7-day technical defect refund guarantee.
MICROSTRUCTURE RESEARCH

Engineering Deep Dives

All Guides →
POLYMARKET CLOB

Polymarket Paper Trading & py-clob-client L3 Backtesting

Enforce ERC-1155 conditional token splits and measure $0.001-tick queue starvation on macro news shocks.

Read guide →
HYPERLIQUID PERPS

Hyperliquid Local Testnet & Perpetual Funding Simulator

Test ALO post-only maker bots against live mainnet depth, funding whipsaws, and cross-margin liquidations.

Read guide →
QUEUE MATH

Why Touch = Fill Fails: L3 FIFO Queue Position & Markouts

How incremental L2-to-L3 sequence preservation and 1s/5s markout curves isolate adverse selection.

Read guide →
TECHNICAL FAQ

Architecture, privacy & licensing

How does Fera Terra reconstruct true FIFO queue priority from public L2 feeds?

When Fera Terra mirrors Hyperliquid or Polymarket L2 snapshots into the local C++23 arena-server, existing shadow liquidity retains its original earlier sequence_num ahead of newly placed bot orders, while level size increases append behind resting bot orders and size reductions cancel from the back of the queue first.

Does Fera Terra ever touch my exchange API keys, wallet private keys, or live capital?

Never. The matching engine and HTTP/WebSocket proxy run 100% locally on 127.0.0.1. Live market data is read directly from your own IP via public unauthenticated endpoints, and orders never leave your machine.

Does the CLI phone home on every simulation run?

No. Your FERATERRA_LICENSE_KEY (ft_live_...) is verified offline in microseconds via asymmetric Ed25519 (RFC 8032) so air-gapped research hosts and fast CI runners have zero network dependency. When FERATERRA_BILLING_URL is set in CI, active monthly subscriptions also renew expired leases automatically.

How do subscription upgrades, renewals, and cancellations work?

Subscriptions renew monthly via Stripe (Cards, Apple Pay, Google Pay, Link) and can be upgraded, downgraded, or canceled in one click with zero penalties using the self-service portal beside this FAQ.

SELF-SERVICE PORTAL

Retrieve Key or Manage Subscription

Enter your checkout email plus your License ID (lic_...), Subscription ID (sub_...), or Checkout Session ID (cs_...) to copy your active FERATERRA_LICENSE_KEY — or enter your email and click Manage / Cancel Subscription to open the Stripe Billing Portal: