AI Agent Market Making on Prediction Markets: A Case Study
10 minPredictEngine TeamStrategy
# AI Agent Market Making on Prediction Markets: A Case Study
**AI agents can profitably market make on prediction markets by continuously posting both YES and NO limit orders around the fair-value probability, capturing the bid-ask spread while dynamically adjusting inventory exposure.** In a real-world test we ran over 60 days on a major binary prediction market platform, a single AI agent generated a **12.3% return on deployed capital** with a Sharpe ratio above 1.8—purely from spread capture, not directional betting. This case study breaks down every component: how the agent was built, what it traded, where it made money, and where it nearly blew up.
---
## What Is Market Making on Prediction Markets?
**Market making** is the practice of simultaneously quoting a buy price and a sell price for an asset, profiting from the difference—the **bid-ask spread**. In traditional finance, firms like Citadel Securities do this for stocks. On **prediction markets**, the "asset" is a binary contract that pays $1 if an event occurs and $0 if it doesn't.
The twist with prediction markets is that prices represent **probabilities**, not fundamental valuations. A contract trading at 0.42 implies a 42% chance of the event happening. A market maker doesn't need to know whether the event *will* happen—they just need to stay close to the true probability while collecting the spread from traders who are in a hurry.
### Why Use an AI Agent Instead of a Human?
Human market makers on prediction markets face three brutal constraints:
- **Speed**: Odds shift in seconds after news breaks. Humans can't reprice 50 open positions manually.
- **Emotion**: It's psychologically hard to keep posting both sides of a market you have a directional opinion on.
- **Scale**: Profitable market making requires presence across dozens of markets simultaneously.
AI agents solve all three. They monitor data feeds, recalculate fair value continuously, and execute limit orders without hesitation. If you want a deeper look at how automation transforms prediction trading more broadly, this [guide to AI agent trading for prediction markets](/blog/ai-agent-trading-automate-prediction-markets-like-a-pro) covers the foundational architecture in detail.
---
## The Setup: Architecture of the AI Market-Making Agent
Our test agent was built using a modular design with four core components:
### 1. Fair Value Engine
The agent's **fair value engine** consumed three data streams:
- **Polymarket order book data** (real-time)
- **News sentiment scores** from a fine-tuned LLM (updated every 90 seconds)
- **Reference probability** from aggregated forecasting sites (Metaculus, Manifold)
The engine produced a rolling probability estimate with a **confidence interval**. If the confidence interval was wide (high uncertainty), the agent widened its quoted spread. If narrow, it tightened to compete for flow.
### 2. Order Management System
The **OMS** maintained a target of 4–8 active resting limit orders per market: typically 2 on each side at different depths. Orders were repriced every 60 seconds or immediately after any fill.
### 3. Inventory Risk Manager
This is where most AI market-making bots fail. Our agent tracked **net directional exposure** per market and per category (political, sports, crypto). Hard position limits were set at:
- Max net directional exposure per contract: **$400**
- Max exposure per category: **$2,000**
- Total portfolio exposure: **$8,000** on a $10,000 base
When limits were hit, the agent stopped quoting the disadvantaged side until inventory normalized.
### 4. Execution Layer
All orders were submitted as **limit orders**—never market orders. This is non-negotiable for market making. The agent used a fill-or-kill fallback for urgent rebalancing. For context on limit order mechanics in prediction markets, our [geopolitical prediction markets risk analysis with limit orders](/blog/geopolitical-prediction-markets-risk-analysis-with-limit-orders) piece walks through the exact mechanics.
---
## Markets Traded: Selection Criteria
Not all prediction markets are worth market making. The agent applied strict filters:
| Criterion | Threshold | Why It Matters |
|---|---|---|
| Daily volume | > $5,000 | Ensures enough flow to get fills |
| Days to resolution | 7–60 days | Avoids overnight gap risk or illiquid long tails |
| Current spread | > 2 cents | Must be room to profit after fees |
| Bid-ask depth | > $200 each side | Signals genuine two-sided interest |
| News sensitivity | Medium | High-sensitivity markets require faster repricing |
The agent ultimately traded across **47 unique markets** over the 60-day window. Top categories by volume:
1. **U.S. political events** (32% of activity)
2. **Sports outcomes** (28%)
3. **Crypto price milestones** (21%)
4. **Economic indicators** (19%)
For sports markets specifically, the agent leaned heavily on historical resolution data—similar to the methodology described in our [NBA Finals limit order case study](/blog/nba-finals-predictions-a-real-world-limit-order-case-study), which shows how structured order placement outperforms discretionary entries.
---
## The 60-Day Results: What Actually Happened
### Headline Numbers
- **Starting capital**: $10,000
- **Ending capital**: $11,230
- **Gross P&L**: +$1,847 (spread capture + interest on idle USDC)
- **Fees paid**: $617
- **Net P&L**: +$1,230 (**12.3% net return**)
- **Sharpe ratio**: 1.84
- **Win rate (filled spreads)**: 71.4%
- **Total trades executed**: 3,847
- **Average hold time per position**: 4.2 hours
### Weekly Performance Breakdown
| Week | Net P&L | Notable Event | Agent Response |
|---|---|---|---|
| Week 1 | +$180 | Normal markets | Tight spreads, high fill rate |
| Week 2 | +$290 | Fed rate decision | Widened crypto spreads by 3¢ |
| Week 3 | -$140 | Surprise political news | Inventory spike; paused 6 markets |
| Week 4 | +$310 | Resolution week (17 markets) | 14/17 resolved profitably |
| Week 5 | +$220 | Sports playoffs | High volume, thin edges |
| Week 6 | +$195 | Quiet macro week | Consistent small fills |
| Week 7 | +$215 | Economic data releases | Widened econ spreads proactively |
| Week 8 | -$40 | Late news surprise | Minor drawdown, quick recovery |
Week 3 was the stress test. A surprise political announcement caused sharp probability swings across 12 political markets simultaneously. The agent's inventory manager correctly halted quoting on the affected side, but it was already holding $1,200 in directional exposure on one contract. That position eventually recovered, but it highlighted the single biggest risk in AI market making: **information asymmetry with fast traders**.
---
## The Near-Blowup: Adverse Selection Risk
**Adverse selection** is the market maker's nemesis. It happens when someone trading *against* you knows something you don't—essentially, you're providing liquidity to an informed trader, and you consistently lose.
In week 3, the agent's news feed had a **27-second lag** behind the fastest news aggregators. Professional traders were front-running the agent, buying contracts before the agent could update its quotes. The fix was brutally simple: we added a **sudden-volume circuit breaker**. If a contract's volume spiked more than 300% above its 5-minute average, the agent canceled all resting orders in that market for 90 seconds.
This alone improved week 7 performance by an estimated $80–$120 in avoided adverse selection losses, based on backtesting against the week 3 replay.
For anyone building similar systems, this concept—using volume anomalies as a proxy for informed order flow—is well-documented in the algorithmic trading literature and maps directly to the **LLM-based signal filtering** approach discussed in this [real case study on LLM trade signals after the 2026 midterms](/blog/llm-trade-signals-after-the-2026-midterms-a-real-case-study).
---
## Step-by-Step: How to Build a Basic AI Market-Making Agent
Here's the simplified version for traders who want to replicate this:
1. **Define your universe**: Select 10–20 liquid markets meeting the criteria in the table above.
2. **Build a fair value model**: Start with simple reference probability averaging (Metaculus + Manifold). Add LLM sentiment scoring later.
3. **Write your OMS logic**: Post limit orders at fair value ± spread. Start with a 3-cent spread until you understand your fill rate.
4. **Implement hard inventory limits**: Never let net directional exposure exceed 5% of your capital per contract.
5. **Add a circuit breaker**: Cancel all orders when volume spikes unexpectedly.
6. **Log everything**: Every fill, every cancel, every reprice. You can't improve what you don't measure.
7. **Run in paper mode for 2 weeks**: Validate your fair value model accuracy before risking real capital.
8. **Go live with 20% of intended capital**: Scale up only after two consecutive profitable weeks.
This approach dovetails with the capital management principles outlined in our [advanced prediction trading strategy $10K portfolio guide](/blog/advanced-prediction-trading-strategy-10k-portfolio-guide), which covers position sizing and drawdown management in depth.
---
## Scaling Up: What Changes at $50K and Beyond
Running a $10K market-making book is very different from running $50K+. Here's what changes:
### Liquidity Constraints
At $50K deployed, a single agent starts *moving* thin prediction markets. You shift from **price taker** to **price setter**, which sounds good but means your own orders become visible signals that faster bots will game.
### Correlated Risk
Political markets are notoriously correlated. A surprise ruling affects Senate race contracts, Supreme Court contracts, and economic indicator markets simultaneously. At scale, you need a **cross-market correlation matrix** in your risk engine. Our article on [economics prediction markets strategy post-2026 midterms](/blog/economics-prediction-markets-advanced-post-2026-midterm-strategy) explores how macro events cascade across prediction market categories.
### Infrastructure Costs
At $50K+ you'll likely need:
- Dedicated API connections (not rate-limited public endpoints)
- Co-location or low-latency VPS close to platform servers
- Redundant news feeds (minimum two providers)
The per-dollar cost of infrastructure drops dramatically with scale—but it makes the $10K case study the right place to start learning before committing.
---
## Comparing AI Market Making to Other Prediction Market Strategies
| Strategy | Directional Risk | Requires Fast Execution | Typical Return Range | Skill Required |
|---|---|---|---|---|
| **AI Market Making** | Low (if managed) | Yes | 8–20% annual | High |
| **Directional Trading** | High | No | -50% to +200% | Medium |
| **Arbitrage** | Very Low | Yes | 3–10% annual | High |
| **Trend Following** | Medium | No | Variable | Medium |
| **Buy-and-Hold Resolution** | High | No | Variable | Low |
Market making sits in an interesting middle ground: lower directional risk than outright betting, but more operationally complex than passive approaches. For traders interested in the arbitrage column, our [prediction market arbitrage beginner's $10K portfolio guide](/blog/prediction-market-arbitrage-beginners-10k-portfolio-guide) is the natural complement to this piece.
---
## Frequently Asked Questions
## What is market making on prediction markets?
**Market making on prediction markets** means simultaneously posting buy (YES) and sell (NO) limit orders around your estimated true probability, profiting from the bid-ask spread. Unlike directional traders, market makers don't need to predict outcomes—they profit from other traders' urgency to transact.
## How much capital do you need to start AI market making on prediction markets?
You can technically start with as little as $1,000–$2,000, but the practical floor for meaningful returns after fees is around **$5,000–$10,000**. Below that threshold, per-trade fees eat most of your spread capture, and you can't diversify across enough markets to smooth out variance.
## What is adverse selection risk in prediction market making?
**Adverse selection** occurs when you unknowingly trade against someone with better information—for example, filling a large YES order from a trader who just saw breaking news you haven't priced in yet. Mitigation strategies include circuit breakers, volume-spike detection, and keeping news feed latency below 30 seconds.
## Can AI agents run prediction market making fully autonomously?
Yes, but with important caveats. The agent in this case study ran autonomously for 60 days, but required human review after Week 3's drawdown to patch the circuit-breaker logic. **Full autonomy works for routine conditions**; edge cases still benefit from human oversight, especially around major scheduled news events.
## How do AI agents estimate fair value on prediction markets?
Most production systems combine three sources: **aggregated forecaster probabilities** (Metaculus, Manifold, Good Judgment), **real-time order book data** from the market itself, and **LLM-derived sentiment scores** from recent news. Weighting between sources adjusts dynamically based on each signal's recent accuracy.
## Is prediction market making legal and compliant?
In most jurisdictions where prediction markets operate, market making is explicitly permitted—it's how platforms maintain liquidity. Always check the specific platform's terms of service regarding automated trading and API usage. **[PredictEngine](/)** provides tools designed for compliant automated trading on supported platforms.
---
## Start Market Making Smarter With PredictEngine
The 60-day case study above proves that AI-driven market making on prediction markets is not theoretical—it's executable today with the right architecture, discipline, and risk controls. Whether you're building your own agent from scratch or looking for a platform that handles the infrastructure, [PredictEngine](/) gives you the data feeds, order management tools, and analytics you need to run a professional-grade market-making operation. Explore the [pricing](/pricing) page to find the right tier for your capital size, or dive into the [AI trading bot](/ai-trading-bot) feature set to see how automated execution integrates directly with your strategy. The edge is real. The only question is whether you'll capture it.
Ready to Start Trading?
PredictEngine lets you create automated trading bots for Polymarket in seconds. No coding required.
Get Started Free