Afterburner: High-Speed Polymarket Crypto Bot Framework
Afterburner is a high-speed framework for developers building their own trading bot on Polymarket's crypto Up/Down markets. It handles everything except the strategy: live market discovery, real-time order books and price feeds, order signing in about 0.1 ms, order management, risk limits and paper trading. You write your strategy on top, prove it in paper mode, then deploy it to trade live on whatever server you prefer.
- You getThe complete framework and its full Rust source code, yours to extend and change
- You buildYour strategy, in one file. An example strategy is included to start from.
- You deployOn any server you like, running 24/7. Guides for systemd, Docker and AWS EC2 are included.
- Signal to signed order
- 0.1 ms
- Markets streamed
- 76 live
- Cancel confirmed
- 27 ms
- Strategy files to edit
- 1
The built-in monitoring screen, before you add a strategy: every coin and timeframe against its price to beat, the order books, the trade tape and every price feed. Click to view full size.
Everything Below Your Strategy Is Already Built.
The hard part of a Polymarket bot is not the strategy. It is the connections, the market discovery, the signing and the safety around real money. Afterburner ships with all of it pre-built and tuned for speed, so you start at the strategy.
- 01
Every Connection, Pre-Wired
Every Polymarket endpoint your bot needs is already programmed, authenticated and handled, reconnects included.
- Gamma catalog
- Finds every market
- CLOB REST
- Orders, cancels, books, balances and allowances
- CLOB market websocket
- Live order books and trades
- CLOB user websocket
- Your own fills, as they happen
- RTDS
- Chainlink and Binance prices
- Data API
- Positions and trade back-fill
- 02
Market Discovery, Done
The framework finds and loads every crypto Up/Down market on its own and keeps them current.
- Every coin and length
- 8 coins × 5m, 15m, 1h, 4h and 1d
- Preloaded
- Current and next window, 76 at once
- Rolled forward
- Automatically, as each window closes
- Price to beat
- Worked out, with its source labelled
- New coins
- Picked up automatically when Polymarket adds them
- 03
Account and Signing
Paste your key and it handles the rest of the Polymarket account plumbing.
- API keys
- Derived from your wallet key
- Every login type
- All four Polymarket wallet types: 0, 1, 2 and 3
- Order signing
- Tested against Polymarket's official vectors
- Setup check
- Confirms everything without sending an order
- 04
Orders and Safety
One router that every order goes through, so your strategy never has to handle any of this.
- Three trading states
- Paper, live standby and live armed, switched with a key
- Hard risk caps
- Seven caps plus a price band, checked on every order
- Stops
- Kill switch, quiet hours, cancel on shutdown
- No double orders
- Never re-sends an order whose result is unclear
- 05
Settings, Controls and Alerts
Run it on a screen or headless on a server, and change it while it runs.
- One settings file
- Every setting, editable while it runs
- Controls
- Hotkeys, plus the same commands for servers
- Alerts
- Telegram, Discord and webhooks
- Records
- CSV of every fill, websocket recording for replay
- 06
Your Strategy Slot
The one file you write in. It is already wired in and ships empty.
- Hooks
- Books, prices, fills, window open and close
- Order helpers
- Buy Up, buy Down and sell in one line
- Typed settings
- Your own strategy settings, editable live
- Show any value
- Put a number on screen with one call
What We Did to Make It Fast
Members onlySign in to see exactly how Afterburner is built for speed.
Sign In to ReadPre-Wired to All Market Data
Read-only, straight from Polymarket's public endpoints: the current Up/Down windows, their books and the Chainlink prices they settle against. The framework reads the same feeds, and keeps the next window loaded as well so it can roll forward on its own.
| Coin | Len | Chainlink | Up bid/ask | Down bid/ask | Left |
|---|---|---|---|---|---|
| BTC | loading the current window… | ||||
| ETH | loading the current window… | ||||
| SOL | loading the current window… | ||||
| XRP | loading the current window… | ||||
| DOGE | loading the current window… | ||||
| BNB | loading the current window… | ||||
Real data, straight from Polymarket's public feeds into your browser: the same order books and Chainlink prices the framework streams. Nothing on this page can trade. The framework itself covers every timeframe, from 5m to 1d.
Every Coin, Every Timeframe, Current and Next.
The framework reads Polymarket's own catalog at start and every 30 minutes, so new coins appear on their own. For each of the 38 series it keeps the current and the next window subscribed and rolls them forward as they close. Hover a cell to see what it settles on.
- Market
- Bitcoin Up or Down, 5m
- Settles on
- Chainlink, 60 s TWAP
- Loaded
- Current and next window, both books, trade tape
- Price to beat
- Computed within about 2 s, source labelled
Twelve Ready-Made Screens, Fourteen Themes
Every stock layout that ships with the framework, drawn by the bot itself. They show the market data it already pulls in: prices, the price to beat, time left, order books and the trade tape. Pick one to see it, then try it in another theme.
Classic Desk
The default desk: coin tiles, chart against the price to beat, countdown, tape and both books.
./prr-crypto-bot tui --preset "Classic Desk" --theme "Porcelain"Rendered on the bot's simulated demo market, so every value is illustrative. No strategy screens are shown. Layouts and themes come with the Full UI build (option 3 in the start menu); press g in the dashboard to cycle layouts. Click a screen to view it full size.
Develop Your Strategy. The Plumbing Is Handled.
Auth, signing, tick sizes, minimums, fees, market discovery, reconnects and risk caps are built and tested. You write the strategy.
Strategy Developers
Write your entry and exit logic in one file. Run it in paper trading the same day.
Latency-Sensitive Traders
Pre-signed orders, a warm connection pool and a measured hot path. Paper fills model queue position, fees and latency.
AI-Assisted Builders
Claude Code, Codex or Cursor edit one file, with written safety and speed rules in the repo.
Your Strategy on Top. The Framework Underneath.
Pick a layer to see what it does and where it lives in the code.
- Polymarket CLOB V2 · Gamma · RTDS
Your Strategy
The one file you edit. It is already wired in, every hook is there and documented, and the same code runs in paper and live without a single mode check.
- 12 hooks, use only the ones you need
- Typed [strategy] settings, editable live
- ctx.publish puts values on screen with no UI code
The Framework Is Never the Slow Part.
Measured on 19 October 2026 with real orders from an AWS t3.small in Dublin on Polymarket's 5m and 15m crypto markets. About 175 ms of a taker fill is Polymarket's matching engine. The framework's own work is about 0.1 ms of it.
The framework is built to stay fast under load, across every market it streams. Your strategy's own decision time is up to your strategy: whatever it computes before it calls an order adds to these numbers, so a simple rule stays close to them and heavy work takes longer.
Where a 199 ms Taker Fill Goes
Median per step in microseconds, log scale. The tick marks the 90th percentile. From the built-in bench, which never sends an order.
One test run from one location. Your numbers depend on where you run it and on exchange load. Run prr-crypto-bot bench and ping on your own server to measure it.
Ten Real Orders on Polymarket, Recorded.
On 19 October 2026 we ran the framework's live order test from a small AWS server in Dublin: ten $1 BUY orders on Polymarket's BTC, ETH and SOL 5m and 15m markets, about 96 seconds before each window closed. Every number below is from that run.
Pre-flight, Before Any Order
- Clock vs Polymarket: −4.5 ms (± 27.5 ms)
- Credentials accepted, account not close-only
- pUSD balance $45.79
- CTF Exchange and Neg-Risk allowances set
- Fill channel connected in 103 ms
- Warm round trip 21.6 ms (median of 30)
Ten FAK orders (fill at once or cancel) at the best ask, capped at $11 in total. These were timing tests, not a strategy.
- #1BTC 5m · Down · $1 at 0.67signed 0.14 msno seller · cancelled$0 spent
- #2ETH 5m · Down · $1 at 0.78signed 0.12 msmatched 198 ms1.28 sh @ 0.78
- #3SOL 5m · Down · $1 at 0.76signed 0.12 msmatched 198 ms1.32 sh @ 0.76
- #4BTC 15m · Up · $1 at 0.85signed 0.12 msmatched 228 ms1.18 sh @ 0.85
- #5ETH 15m · Down · $1 at 0.94signed 0.17 msmatched 201 ms1.06 sh @ 0.94
- #6SOL 15m · Up · $1 at 0.92signed 0.12 msmatched 196 ms1.09 sh @ 0.92
- #7BTC 5m · Down · $1 at 0.67signed 0.13 msmatched 201 ms1.49 sh @ 0.67
- #8ETH 5m · Down · $1 at 0.79signed 0.17 msmatched 204 ms1.27 sh @ 0.79
- #9SOL 5m · Down · $1 at 0.74signed 0.13 msno seller · cancelled$0 spent
- #10BTC 15m · Up · $1 at 0.84signed 0.14 msmatched 198 ms1.21 sh @ 0.83
From the run's own files (orders.csv and summary.json). Wallet addresses are left out. Signed is the framework preparing the order, matched is Polymarket's engine filling it.
Trading Modes
| Mode | How | What Happens |
|---|---|---|
| Paper | Default | Simulated fills against the live order book, with fees and a separate P&L. No wallet needed. |
| Live Standby | ctl live | Connected to your Polymarket account. Orders are built and logged, never placed. |
| Live Armed | ctl arm ARM | Real orders, inside your caps. Arming runs a pre-flight check first. A restart always comes back disarmed. |
| Risk Cap | Default | Limits |
|---|---|---|
max_order_usd | $5 | Largest single BUY, price × shares, before fees. |
max_session_usd | $50 | BUY cost since the bot started, fees included. |
max_orders_per_min | 60 | Orders of any side per rolling minute. |
max_day_usd | off | BUY cost per UTC day. |
max_market_usd | off | BUY cost on one market: Up and Down of a window together. |
max_open_positions | off | A BUY that would open a new position is refused at this many. |
daily_loss_usd | off | Today's P&L at or below minus this stops new BUYs until the next UTC day. |
Caps are checked before every order, in paper and live. ctl kill stops all new orders and cancels this bot's resting ones.
Paper Trading in Minutes. Your Server When You're Ready.
Start It
It builds, creates your .env and starts in paper mode. No wallet needed to try it.
Connect Polymarket
Add your key, login type and wallet address to one file. Setup checks everything and never sends an order. Step-by-step setup guide
Move It To A Server
One command under Docker, or the systemd installer and the EC2 launcher for a box of your own in Europe. Restarts always come back disarmed.
In the Box
- Full Rust source, about 17,000 lines
- 144 tests, including official signing vectors
- README, strategy guide and deploy runbook
- CLAUDE.md and AGENTS.md for AI coding assistants
- Telegram, Discord and webhook alerts
- CSV export of every fill
- Record every websocket frame for replay
- Built-in ping and bench commands
Afterburner
The high-speed Rust framework for Polymarket's crypto Up/Down markets, full source. Every coin, every timeframe, paper and live trading, hard risk caps and a one-file slot for your strategy. Includes one example strategy, switched off.
- Full source code, yours to change
- macOS, Windows and Linux
- 15 screen layouts, colour themes and an offline demo
- Expiry Sniper example strategy, off by default
- Docker, systemd and AWS deploy kit
- CLAUDE.md and AGENTS.md for coding assistants
Pay by card or with your wallet credits. Download it straight from your account. Questions? Ask on Discord.
Before You Build.
A Foundation, Not a Money Printer.
- No profit promise. Your strategy slot ships empty. The one example, Expiry Sniper, is off by default and is there to show how the hooks work, not to make money.
- Not hosted. You run it on your own machine or server. PR&R never sees your keys.
- Not a copy-trading bot or a web dashboard. It is a terminal-first framework you build on.
- Real money carries real risk. Paper fills are a model, and live fills can be worse. Check Polymarket's terms and your local rules.
No. It is a framework, and we make no profit claims. Your strategy slot ships empty. One example strategy, Expiry Sniper, is included and switched off, so you can see a complete working strategy. The strategy guide has short worked examples of the API so you can see how hooks and orders fit together.
It helps. Your strategy is one Rust file with plain hooks, and the repo ships CLAUDE.md and AGENTS.md so Claude Code, Codex or Cursor can write and edit strategies safely inside it.
Polymarket's crypto Up/Down markets: BTC, ETH, SOL, XRP, DOGE, BNB and HYPE at 5m, 15m, 1h, 4h and 1d, plus ZEC at 5m, 15m and 4h. New coins Polymarket adds are picked up automatically.
On your own computer or a server you rent. PR&R never hosts it and your keys never leave your machine. The fastest choice is the region nearest Polymarket's order servers that also passes its geoblock check for you; the ping command tests both. Docker, systemd and an AWS EC2 launcher are included.
Paste your wallet key, login type and funder address into .env, then run setup. It checks your region, derives your API key and shows your balance and allowances without ever sending an order.
It always starts disarmed. Live trading needs LIVE_TRADING=true, a switch to live standby, the typed word ARM and a passing pre-flight. Hard caps apply to every order, and a restart always comes back disarmed.

