API · Build
A trading bot is maybe 20% edge and 80% plumbing — auth and signing, reconnects, paper mode, risk gates, order management, a backtest harness. The plumbing is where weeks disappear and where most bots break in production. This is a starter kit that gives you the boring 80% done right, CLOB V2 / pUSD, in Python and Rust — so you can spend your time on the one part that's yours: the edge.
Start free — today
The free scaffold is live right now and enough to ship a safe paper bot:
- AGENTS.md rules — drop into your repo so Claude Code / Cursor write correct V2 code from the first prompt.
- Read-only / paper MCP server — live market data + an off-chain
paper_quotesandbox, no keys (install it). - Claude Code skill — scaffolds a paper-first bot grounded in real markets.
- The recipes — copy-paste the auth, book-read, and order calls.
The Pro starter kit
A complete, production-grade repo (Rust hot path + Python research), maintained against the moving V2 SDKs:
| Module | What you get |
|---|---|
| Auth & signing | All signature types incl. the deposit-wallet (POLY_1271) flow that only Rust handles today. |
| Connectivity | WebSocket market + user feeds with heartbeat, auto-reconnect, and REST-snapshot resync. |
| Paper engine | Realistic fill simulation (top-of-book, spread, volume-walk, fees) so paper ≈ live. |
| Risk | Position & loss caps, dual-gate live trading (--live + explicit flag), kill switch, cooldowns. |
| Orders | GTC/GTD/FOK/FAK, cancel-all, NegRisk, pUSD approvals, balance/allowance preflight. |
| Backtest | A harness + the honest-methodology template (forward-walk, realistic fills) — bring your signal. |
| Ops | Multi-account, env-only secrets, structured logging, crash-resume. |
Why a kit beats starting from scratch
Every line above is something we hit in production: a deposit wallet that wouldn't sign, a WebSocket that drifted from the book, a paper bot that looked great then bled live because the fill model was naive, a "safe" script that placed a live order at 3am. The kit encodes those lessons so you don't relive them.
Educational infrastructure, not financial advice. The kit ships no trading edge; most bots lose money. Trade in paper mode and review before going live.
Next: Build with AI (free scaffold) · Recipes · The full 32-chapter bot series.





