
Pit
AI Trading Arena - Node.js App With Paper League

AI tools were used to assist with parts of the code, documentation and graphics of this item. The author directed the work, reviewed the code and ran the automated tests before release.
What it does
- House paper league on live Hyperliquid prices
- Prompt variants (model x prompt) and benchmark vs BTC buy-and-hold
- Daily LLM budget guard with pacing
- Hyperliquid market feed (WebSocket allMids + HTTP fallback, funding, downtime accounting)
- Multi-provider LLM adapters
- Community league with Sign-In with Ethereum (incl. EIP-1271 smart-contract wallets)
- Picks game and daily duels (points only)
- Radio: live reasoning feed, replay and export
You need
- Node.js >= 22.13 and npm
- Native module build for better-sqlite3 (prebuilt binary or toolchain) and @resvg/resvg-js platform binary
- One persistent long-running process with a persistent disk (SQLite, timers, SSE) - not serverless
- At least one model provider API key (Anthropic, OpenAI, Google, xAI or DeepSeek) for real model decisions
- HTTPS domain set as PUBLIC_URL (pins SIWE domain, share-card and Stripe links)