# Fera Terra (feraterra) > Queue-accurate local C++23 Price-Time FIFO Shadow-CLOB & chaos execution simulator for Polymarket, Hyperliquid, and cryptocurrency trading bots. ## Documentation & Resources - [Fera Terra Website & Live C++23 Playground](https://feraterra.app/): Interactive browser matching-engine sandbox (with shareable `?scenario=...&cancel=...&spread=...` deep-links), quickstart, and subscription tiers. - [Polymarket Fee, Breakeven & Maker Queue Calculator](https://feraterra.app/tools/polymarket-fee-calculator): Free zero-signup browser calculator for Polymarket quadratic `p(1-p)` taker fees and L3 queue-clear volume. - [Hyperliquid Perp Fee Tier, Maker Rebate & Cancel-Lag Calculator](https://feraterra.app/tools/hyperliquid-slippage-calculator): Free browser calculator for Hyperliquid 14d volume tiers, negative maker rebates, and ALO cancel-snipe drag. - [VectorBT & Backtesting.py vs. C++23 L3 Order-Book Simulation](https://feraterra.app/compare/vectorbt-backtesting-py-vs-l3-orderbook): Why OHLCV `low <= bid` backtesters overstate passive CLOB fills and miss cancel-window snipes. - [Hyperliquid Public Testnet vs. Local Mainnet Shadow-CLOB](https://feraterra.app/compare/hyperliquid-testnet-vs-local-shadow-clob): Why faucet testnets distort maker PnL and how to replay mainnet L2/L3 depth deterministically on `127.0.0.1:8085`. - [Hummingbot Paper Trade vs. Fera Terra C++23 L3 FIFO](https://feraterra.app/compare/hummingbot-paper-trade-vs-feraterra): Client-side paper fills vs. monotonic `sequence_num` queue aging and in-flight cancel latency. - [Polymarket Paper Trading & py-clob-client Backtesting Guide](https://feraterra.app/guides/polymarket-paper-trading-backtest): Local Polymarket Shadow-CLOB, ERC-1155 conditional split/merge inventory, and news-shock replay. - [Hyperliquid Local Testnet & Perpetual Funding Simulator Guide](https://feraterra.app/guides/hyperliquid-backtest-simulator): Local Hyperliquid `/info`, `/exchange`, RFC 6455 WebSocket streams, and 5-sigma liquidation testing. - [Order-Book Queue Position & Cancel-Latency Backtesting Guide](https://feraterra.app/guides/orderbook-queue-position-backtesting): L3 Price-Time FIFO queue preservation and 1s/5s markout toxicity attribution. - [PyPI Package — pip install feraterra](https://pypi.org/project/feraterra/): Prebuilt closed-source binary wheels (`v1.0.1`) for Linux (`x86_64`/`arm64`), macOS (`Universal2`), and Windows (`x64`). - [GitHub Action — FeraTerra/ci-gate-action](https://github.com/FeraTerra/ci-gate-action): Composite GitHub Action (`uses: FeraTerra/ci-gate-action@v1`) for pull-request L3 FIFO regression gates and `$GITHUB_STEP_SUMMARY` scorecards. - [Official MCP Registry Entry — io.github.FeraTerra/mcp-server-feraterra](https://registry.modelcontextprotocol.io/v0/servers?search=feraterra): Published OCI (`ghcr.io/feraterra/mcp-server-feraterra:1.0.1`) & MCPB server for Claude Code, Cursor, VS Code Copilot, and Claude Desktop. - [VS Code & Cursor Extension — FeraTerra/vscode-feraterra](https://github.com/FeraTerra/vscode-feraterra): `.trace.jsonl` order-book queue/spread hover diagnostics, 1-click L3 FIFO replay, and Cursor MCP auto-config. - [Open-Source Benchmarks & CI-Gate Demo](https://github.com/FeraTerra/feraterra-benchmarks): Reproducible Polymarket & Hyperliquid L3 FIFO vs. Naive Paper PnL scripts and GitHub Actions workflow. - [Polymarket Paper-Trading & Backtest Starter (MIT)](https://github.com/FeraTerra/polymarket-paper-trading): Runnable `$0.001`-tick `FED-CUT-YES` L3 FIFO replay, `py-clob-client` setup, and `.trace.jsonl` tape. - [Hyperliquid Backtest Simulator Starter (MIT)](https://github.com/FeraTerra/hyperliquid-backtest-sim): Runnable `ETH-PERP` funding whipsaw & `BTC-PERP` 5-sigma crash replays for ALO post-only maker bots. - [Model Context Protocol (MCP) Stdio Server (MIT)](https://github.com/FeraTerra/mcp-server-feraterra): JSON-RPC 2.0 `stdio` MCP server (`claude mcp add feraterra -- uvx --from git+https://github.com/FeraTerra/mcp-server-feraterra.git mcp-server-feraterra`). - [Terms, Refund Policy & Self-Service Billing Portal](https://feraterra.app/terms): Subscription cancellation, 7-day defect refund policy, and non-custodial local simulation disclosure (`chartnest.inc@proton.me`). ## Problem Solved Naive backtesters and paper-trading shims assume `0 ms` cancellation latency and `100%` immediate fills on price touch. On live CLOB venues (Polymarket CTF CLOB, Hyperliquid L1 perps), resting orders sit behind real queue depth (`queue_ahead_lots`) and in-flight cancellations suffer toxic adverse-selection pick-offs during volatility spikes. Fera Terra runs a zero-dependency C++23 L3 FIFO matching engine (`arena-server`) locally on `127.0.0.1`, mirroring live venue L2/L3 updates around resting bot orders while running a parallel Naive Paper Tracker on the identical tape to quantify the exact Backtest Illusion Gap ($). ## Drop-In Compatibility - **Install:** `pip install feraterra` (zero C++ compiler required). - **Polymarket (`py-clob-client`):** Local HTTP/WS drop-in on `http://127.0.0.1:8085` (`/markets`, `/book`, `/books`, `/midpoint`, `/price`, `/spread`, `/tick-size`, `/order`, `/orders`, `/cancel-all`, `/ctf/split`, `/ctf/merge`, conditional inventory enforcement). - **Hyperliquid (`hyperliquid-python-sdk`):** `/info` (`meta`, `spotMeta`, `metaAndAssetCtxs`, `l2Book`, `allMids`, `clearinghouseState`, `openOrders`, `userFills`, `orderStatus`), `/exchange` (`order`, `cancel`, `cancelByCloid`, `modify`, `batchModify`, `scheduleCancel`, `updateLeverage`), and RFC 6455 WebSocket streams (`:8085/ws` and `:8086`). - **Any Bot Language (Rust, Go, TypeScript, Python):** Test external binaries via `feraterra benchmark --pack polymarket_news_shock --bot-cmd "./my-rust-bot"` or gate pull requests in CI via `feraterra ci-gate`. ## Tiers & Pricing - **Hobby ($0 / forever):** `pip install feraterra`, 1 shadow market, local proxy & diagnostics UI (`feraterra up`). - **Indie Quant ($49 / month):** Up to 4 concurrent markets, 24h live sessions, all 4 synthetic 5-sigma crash packs, HTTP 429/502 + cancel-latency fault injection, `.jsonl` session recording & deterministic `<1s` replay. - **Pro + CI/CD ($129 / month):** Up to 16 concurrent markets, 7-day sessions, `feraterra ci-gate` unlocked for GitHub Actions / GitLab CI, cloud permalink report archiving. - **Trading Team / Pod ($299 / month):** Up to 64 concurrent markets, 30-day soak sessions, unlimited CI runners & multi-bot desk workflows.