Market Divergence Detection in Prediction Markets

Market Divergence Detection in Prediction Markets

Market Divergence Detection in Prediction Markets

How to detect market divergence across Polymarket, Kalshi and Limitless: define the gap, normalize contracts, filter for execution, and test signals on history.

Market Divergence Detection in Prediction Markets

Market divergence detection in prediction markets means finding contracts where the same real-world outcome is priced differently across venues, or where price and underlying activity disagree. To do it reliably you need three things: contracts matched across venues by a canonical ID, prices measured on the same basis (executable, not last trade), and a filter that removes gaps you could never trade. Everything below is built around those three steps.

This is not the chart-pattern divergence you see in RSI or MACD tutorials. Here, divergence is a measurable disagreement between venues or between price and flow, and it can be tested on data.

Assymetrixdata.assymetrix.comDetect Market Gaps Across VenuesAssymetrix unifies prediction market data across Polymarket, Kalshi, and Limitless, helping you focus on divergence signals instead of data plumbing.Explore the Data API

TL;DR

  • Prediction market divergence is a gap in the implied probability of one outcome across Polymarket, Kalshi and Limitless, or a gap between price and wallet activity.

  • A raw gap is not a signal. Match contracts by resolution rules first, then compare bid and ask, not last trade.

  • Filter by depth, fees, time to resolution and data latency before you call anything an opportunity.

  • Backtest on historical snapshots with timestamps you can reproduce, then run the same logic live.

  • A unified API with canonical IDs removes most of the plumbing so you can spend time on the detection logic.

Table of Contents

  • What divergence means on prediction markets

  • Step 1: Match contracts before you compare prices

  • Step 2: Measure the gap on an executable basis

  • Step 3: Filter for what you could actually trade

  • Step 4: Add price versus flow divergence

  • Step 5: Backtest before you trust the signal

  • A reference architecture for a divergence detector

  • Common mistakes

  • Our perspective

  • Run it on one API

  • FAQ

  • Sources

What divergence means on prediction markets

A binary contract trades between 0 and 1 (or 0 and 100 cents) and pays out at the top of that range if the event happens. The price is read as an implied probability. When two venues list what looks like the same question, you would expect their prices to sit close together. They often do. Sometimes they do not.

There are three kinds of divergence worth detecting:

  1. Cross-venue price divergence. The same outcome trades at different implied probabilities on two or more venues.

  2. Internal divergence. Related contracts on one venue are inconsistent, for example a set of mutually exclusive outcomes whose prices do not sum to a coherent total.

  3. Price versus flow divergence. The price is flat or moving one way while wallet-level activity, such as large or historically accurate accounts, moves the other way.

The first kind is the easiest to define and the most commonly misread. The rest of this guide spends most of its time there, because the mistakes made at that step carry through to every later one. For a deeper venue-by-venue walkthrough, see our guide on how to detect price divergence between Polymarket and Kalshi.

Step 1: Match contracts before you compare prices

Most false divergence comes from comparing two contracts that only look the same. Titles are written by different people for different audiences. Two markets can both say “Will X happen by December 31?” and still differ in:

  • Resolution source. One venue may settle on an official publication, the other on a named news report or an oracle process.

  • Cutoff time and time zone. An event at 11:30 p.m. Eastern may fall on different dates depending on how each venue defines the day.

  • Edge-case wording. Ties, cancellations, recounts, postponements and partial outcomes are handled differently.

  • Structure. One venue may offer a single yes/no question, while another splits the same event into several brackets.

The fix is a canonical ID layer: one internal identifier that points to every venue-specific listing of the same outcome, with the resolution criteria stored beside it. Matching by title similarity alone is a starting hypothesis, never a conclusion. Review matches where the resolution text differs, and tag each pair with a confidence level so your detector can ignore weak matches.

This is the part of the pipeline that normally consumes the most engineering time. Our guide to canonical IDs for cross-venue prediction market data covers the schema in detail.

Step 2: Measure the gap on an executable basis

Once a pair is matched, define the gap. The common mistake is to subtract last-trade prices. Last trade can be hours old on a thin market, and it says nothing about what you could pay now.

A more defensible measurement uses the order book on each side:

Quantity

Formula

Why it matters

Midpoint gap

mid(A) minus mid(B)

Good for ranking and research, not for sizing a trade

Buy-A / sell-B edge

bid(B) minus ask(A)

The gross edge if A is cheaper and you can sell on B

Buy-B / sell-A edge

bid(A) minus ask(B)

The same check in the other direction

Depth-adjusted edge

Edge at the size you intend to trade, walking the book

Shows how much of the gap survives your order

If both executable edges are negative, the midpoint gap is only a spread artifact. Many apparent divergences disappear at this step, and that is a good outcome: it means your detector is not lying to you.

Our quant measurement guide to cross-venue price gaps goes through these calculations with worked examples.

A worked example

Suppose a matched outcome shows a midpoint of 0.62 on one venue and 0.66 on another. The four-cent gap looks interesting. Now read the books:

  • Venue A: best bid 0.60, best ask 0.64

  • Venue B: best bid 0.64, best ask 0.68

Buy on A at 0.64 and sell on B at 0.64: gross edge of zero. Buy on B and sell on A: negative. The midpoint gap of four cents is entirely the width of the spreads. The same outcome with an ask of 0.61 on A would leave a three-cent gross edge before fees, and the next question is how many contracts are available at that price. The numbers here are illustrative, chosen to show the arithmetic, not observed market data.

Step 3: Filter for what you could actually trade

A gap that survives the executable check still has to survive reality. Build these filters into the detector itself, not into a manual review later.

Depth and size

A three-cent edge on 20 contracts is a curiosity. Set a minimum size at the quoted edge, and compute the edge at your target order size by walking the book. Rank opportunities by expected dollar edge at size, not by percentage gap.


Order-book depth chart showing available contract size

Fees and costs

Each venue has its own fee schedule, and some costs sit outside the venue: moving funds, settlement timing and, on-chain, transaction costs. Pull the current schedule from each venue’s official documentation, because fees change. Subtract total round-trip cost before ranking.

Time to resolution

Capital is locked until both legs resolve. A two-cent edge that resolves tomorrow is a very different annualized return from the same edge on a contract that resolves in eight months. Compute edge per day of capital lock-up and compare that.

Resolution-rule risk

If the two contracts could resolve differently under some scenario, the position is not a hedge. Flag any pair with a rule mismatch and either exclude it or size it as a directional bet with a stated downside.

Data freshness

A divergence computed from a stale quote on one side is noise. Store the exchange timestamp and your receive timestamp for every snapshot, and discard comparisons where the two sides are further apart in time than your tolerance. Our piece on execution-aware market divergence signals treats this filtering step as part of the signal definition, not an afterthought.

Step 4: Add price versus flow divergence

Cross-venue gaps are about where prices sit. Flow divergence is about who is moving them. If a market drifts higher on small, scattered orders while accounts with strong historical records are quietly selling, the price and the informed flow disagree.

To detect this you need wallet-level data and a way to score accounts. A practical approach:

  1. Build a profile for each wallet from resolved markets: realized profit, hit rate, sizing and holding period.

  2. Score wallets with a method that accounts for sample size, so a lucky streak on three markets does not outrank a long record.

  3. Aggregate recent net position changes of the top-scoring group per market.

  4. Compare that net flow with the price change over the same window and flag disagreement above a threshold.

On-chain venues expose enough activity to do this. Regulated exchanges expose it differently, so keep the comparison at the level of aggregate flow where wallet-level detail is not available. For the on-chain side, see our Polymarket on-chain analysis guide for quants.

Step 5: Backtest before you trust the signal

A detector that looks good on three screenshots is not evidence. Test it on history, and be strict about how.

  • Use point-in-time data. Only use information that was available at each timestamp. Resolution rules and market metadata can be edited after listing, so store them as they were.

  • Replay the books, not just prices. Edge at size depends on depth, so a backtest on midpoints overstates results.

  • Include markets that were later cancelled or voided. Dropping them biases results upward.

  • Split the sample by time. Tune thresholds on an earlier window and evaluate on a later one, and across different categories such as politics, economics and sports.

  • Count every cost. Fees, slippage from walking the book and capital lock-up all belong in the result.

The general discipline of reviewing results rather than chasing wins applies here too; this overview of how to analyze trading data for strategy decisions is a reasonable companion for structuring that review. For prediction markets specifically, our walkthrough on backtesting prediction market strategies with the Data API shows how to pull historical snapshots into a test harness.

A reference architecture for a divergence detector

Whether you are a quant, a bot builder or building an AI agent that consumes market data, the shape is the same:

  1. Ingest. Stream order book updates and trades from each venue, plus a periodic pull of market metadata.

  2. Normalize. Map every listing to a canonical ID and a common schema: price as a probability between 0 and 1, size in contracts, timestamps in UTC.

  3. Match and score. Pair equivalent contracts and attach a match-confidence level and a rule-difference flag.

  4. Compute. For each pair, calculate executable edges in both directions, depth-adjusted edge and capital-lock-adjusted edge.

  5. Filter. Apply the minimum size, freshness, fee and resolution-risk rules.

  6. Emit. Publish a structured event with the pair, edge, size, timestamps and reason codes, so downstream systems can act or log it.

  7. Record. Persist every emitted and every rejected candidate. Rejections are your best tuning data.

For an AI agent, step 6 matters most. Give the agent structured fields and reason codes rather than a prose summary, and it can reason about the signal without guessing at units or venue conventions. Our guide to prediction market APIs built for AI agents describes the REST and WebSocket approach with canonical IDs.

Common mistakes

  • Comparing last trades. Use bid and ask on both sides.

  • Trusting title matches. Compare resolution criteria.

  • Ranking by percentage gap. Rank by expected dollar edge at size and per day of capital lock-up.

  • Ignoring timestamps. Two quotes from different moments are not a gap.

  • Optimizing on one category. A threshold tuned on election markets may fail on sports contracts.

  • Deleting rejected candidates. Keep them. They tell you what your filters are doing.

Our perspective

We built Assymetrix around a simple observation: divergence detection is a data problem long before it is a modeling problem. The model is usually a few lines of arithmetic. The hard part is having every venue’s contracts matched to one canonical ID, prices on one schema, and history deep enough to test an idea properly.

That is why we aggregate Polymarket, Kalshi and Limitless into one layer, and why we keep the layer venue-neutral. A data source tied to a single exchange has little reason to show you where that exchange is the outlier. We have no such conflict. Our design priority is to give you the same normalized view of every venue, with roughly 1.5 terabytes of history spanning nearly one billion rows of trading activity, so a detector you write today can be replayed against the past without rewriting it.

Our view is that the next edge in this field comes from combining signals: cross-venue gaps, Smart Money flow and execution-aware filtering, evaluated together on reproducible history. A single gap seen in isolation tells you little. The same gap, confirmed by informed flow and sized against real depth, is a candidate worth a closer look.

Dean

Run it on one API

If you would rather not build the matching and normalization layer yourself, our Data API gives developers, quants and AI agents unified access to cross-venue prediction market data through a single integration. It covers real-time and historical data across Polymarket, Kalshi and Limitless, with canonical IDs so the pairing step in this guide is already done for you.


Assymetrix

Start with the Assymetrix Data API, or read the real-time and historical data feed guide to see the endpoints. If you work in Python, the Python developer guide has a quick path from request to DataFrame.

FAQ

How is market divergence in prediction markets different from RSI divergence?

RSI divergence compares price with a momentum indicator on one chart. Prediction market divergence compares the implied probability of the same outcome across venues, or compares price with wallet flow. It is anchored to a contract that resolves to a known value, so it can be tested against outcomes.

Is every cross-venue price gap an arbitrage opportunity?

No. A gap can come from spread width, different resolution rules, stale quotes or thin depth. It becomes a candidate only when the executable edge at your trade size stays positive after fees and the contracts resolve the same way. Our prediction market arbitrage guide covers the full framework.

What data do I need to detect divergence?

You need order book snapshots with timestamps from each venue, contract metadata including resolution rules, and a canonical ID mapping between venues. For flow-based signals, add wallet-level trade history. For backtests, you also need deep point-in-time history.

How often should a detector refresh?

Match it to the horizon you trade. A bot acting on short-lived gaps needs streaming updates and strict freshness checks. A research process that ranks opportunities by resolution date can work from periodic snapshots. In both cases, store the timestamps so you can measure how stale a comparison was.

Can an AI agent run divergence detection?

Yes, if it receives structured data. Provide normalized fields, canonical IDs, executable edges and reason codes, and let deterministic code do the arithmetic. The agent then ranks, explains or routes the signals instead of computing them from raw text.

Sources

Market Divergence Detection in Prediction Markets

Market divergence detection in prediction markets means finding contracts where the same real-world outcome is priced differently across venues, or where price and underlying activity disagree. To do it reliably you need three things: contracts matched across venues by a canonical ID, prices measured on the same basis (executable, not last trade), and a filter that removes gaps you could never trade. Everything below is built around those three steps.

This is not the chart-pattern divergence you see in RSI or MACD tutorials. Here, divergence is a measurable disagreement between venues or between price and flow, and it can be tested on data.

Assymetrixdata.assymetrix.comDetect Market Gaps Across VenuesAssymetrix unifies prediction market data across Polymarket, Kalshi, and Limitless, helping you focus on divergence signals instead of data plumbing.Explore the Data API

TL;DR

  • Prediction market divergence is a gap in the implied probability of one outcome across Polymarket, Kalshi and Limitless, or a gap between price and wallet activity.

  • A raw gap is not a signal. Match contracts by resolution rules first, then compare bid and ask, not last trade.

  • Filter by depth, fees, time to resolution and data latency before you call anything an opportunity.

  • Backtest on historical snapshots with timestamps you can reproduce, then run the same logic live.

  • A unified API with canonical IDs removes most of the plumbing so you can spend time on the detection logic.

Table of Contents

  • What divergence means on prediction markets

  • Step 1: Match contracts before you compare prices

  • Step 2: Measure the gap on an executable basis

  • Step 3: Filter for what you could actually trade

  • Step 4: Add price versus flow divergence

  • Step 5: Backtest before you trust the signal

  • A reference architecture for a divergence detector

  • Common mistakes

  • Our perspective

  • Run it on one API

  • FAQ

  • Sources

What divergence means on prediction markets

A binary contract trades between 0 and 1 (or 0 and 100 cents) and pays out at the top of that range if the event happens. The price is read as an implied probability. When two venues list what looks like the same question, you would expect their prices to sit close together. They often do. Sometimes they do not.

There are three kinds of divergence worth detecting:

  1. Cross-venue price divergence. The same outcome trades at different implied probabilities on two or more venues.

  2. Internal divergence. Related contracts on one venue are inconsistent, for example a set of mutually exclusive outcomes whose prices do not sum to a coherent total.

  3. Price versus flow divergence. The price is flat or moving one way while wallet-level activity, such as large or historically accurate accounts, moves the other way.

The first kind is the easiest to define and the most commonly misread. The rest of this guide spends most of its time there, because the mistakes made at that step carry through to every later one. For a deeper venue-by-venue walkthrough, see our guide on how to detect price divergence between Polymarket and Kalshi.

Step 1: Match contracts before you compare prices

Most false divergence comes from comparing two contracts that only look the same. Titles are written by different people for different audiences. Two markets can both say “Will X happen by December 31?” and still differ in:

  • Resolution source. One venue may settle on an official publication, the other on a named news report or an oracle process.

  • Cutoff time and time zone. An event at 11:30 p.m. Eastern may fall on different dates depending on how each venue defines the day.

  • Edge-case wording. Ties, cancellations, recounts, postponements and partial outcomes are handled differently.

  • Structure. One venue may offer a single yes/no question, while another splits the same event into several brackets.

The fix is a canonical ID layer: one internal identifier that points to every venue-specific listing of the same outcome, with the resolution criteria stored beside it. Matching by title similarity alone is a starting hypothesis, never a conclusion. Review matches where the resolution text differs, and tag each pair with a confidence level so your detector can ignore weak matches.

This is the part of the pipeline that normally consumes the most engineering time. Our guide to canonical IDs for cross-venue prediction market data covers the schema in detail.

Step 2: Measure the gap on an executable basis

Once a pair is matched, define the gap. The common mistake is to subtract last-trade prices. Last trade can be hours old on a thin market, and it says nothing about what you could pay now.

A more defensible measurement uses the order book on each side:

Quantity

Formula

Why it matters

Midpoint gap

mid(A) minus mid(B)

Good for ranking and research, not for sizing a trade

Buy-A / sell-B edge

bid(B) minus ask(A)

The gross edge if A is cheaper and you can sell on B

Buy-B / sell-A edge

bid(A) minus ask(B)

The same check in the other direction

Depth-adjusted edge

Edge at the size you intend to trade, walking the book

Shows how much of the gap survives your order

If both executable edges are negative, the midpoint gap is only a spread artifact. Many apparent divergences disappear at this step, and that is a good outcome: it means your detector is not lying to you.

Our quant measurement guide to cross-venue price gaps goes through these calculations with worked examples.

A worked example

Suppose a matched outcome shows a midpoint of 0.62 on one venue and 0.66 on another. The four-cent gap looks interesting. Now read the books:

  • Venue A: best bid 0.60, best ask 0.64

  • Venue B: best bid 0.64, best ask 0.68

Buy on A at 0.64 and sell on B at 0.64: gross edge of zero. Buy on B and sell on A: negative. The midpoint gap of four cents is entirely the width of the spreads. The same outcome with an ask of 0.61 on A would leave a three-cent gross edge before fees, and the next question is how many contracts are available at that price. The numbers here are illustrative, chosen to show the arithmetic, not observed market data.

Step 3: Filter for what you could actually trade

A gap that survives the executable check still has to survive reality. Build these filters into the detector itself, not into a manual review later.

Depth and size

A three-cent edge on 20 contracts is a curiosity. Set a minimum size at the quoted edge, and compute the edge at your target order size by walking the book. Rank opportunities by expected dollar edge at size, not by percentage gap.


Order-book depth chart showing available contract size

Fees and costs

Each venue has its own fee schedule, and some costs sit outside the venue: moving funds, settlement timing and, on-chain, transaction costs. Pull the current schedule from each venue’s official documentation, because fees change. Subtract total round-trip cost before ranking.

Time to resolution

Capital is locked until both legs resolve. A two-cent edge that resolves tomorrow is a very different annualized return from the same edge on a contract that resolves in eight months. Compute edge per day of capital lock-up and compare that.

Resolution-rule risk

If the two contracts could resolve differently under some scenario, the position is not a hedge. Flag any pair with a rule mismatch and either exclude it or size it as a directional bet with a stated downside.

Data freshness

A divergence computed from a stale quote on one side is noise. Store the exchange timestamp and your receive timestamp for every snapshot, and discard comparisons where the two sides are further apart in time than your tolerance. Our piece on execution-aware market divergence signals treats this filtering step as part of the signal definition, not an afterthought.

Step 4: Add price versus flow divergence

Cross-venue gaps are about where prices sit. Flow divergence is about who is moving them. If a market drifts higher on small, scattered orders while accounts with strong historical records are quietly selling, the price and the informed flow disagree.

To detect this you need wallet-level data and a way to score accounts. A practical approach:

  1. Build a profile for each wallet from resolved markets: realized profit, hit rate, sizing and holding period.

  2. Score wallets with a method that accounts for sample size, so a lucky streak on three markets does not outrank a long record.

  3. Aggregate recent net position changes of the top-scoring group per market.

  4. Compare that net flow with the price change over the same window and flag disagreement above a threshold.

On-chain venues expose enough activity to do this. Regulated exchanges expose it differently, so keep the comparison at the level of aggregate flow where wallet-level detail is not available. For the on-chain side, see our Polymarket on-chain analysis guide for quants.

Step 5: Backtest before you trust the signal

A detector that looks good on three screenshots is not evidence. Test it on history, and be strict about how.

  • Use point-in-time data. Only use information that was available at each timestamp. Resolution rules and market metadata can be edited after listing, so store them as they were.

  • Replay the books, not just prices. Edge at size depends on depth, so a backtest on midpoints overstates results.

  • Include markets that were later cancelled or voided. Dropping them biases results upward.

  • Split the sample by time. Tune thresholds on an earlier window and evaluate on a later one, and across different categories such as politics, economics and sports.

  • Count every cost. Fees, slippage from walking the book and capital lock-up all belong in the result.

The general discipline of reviewing results rather than chasing wins applies here too; this overview of how to analyze trading data for strategy decisions is a reasonable companion for structuring that review. For prediction markets specifically, our walkthrough on backtesting prediction market strategies with the Data API shows how to pull historical snapshots into a test harness.

A reference architecture for a divergence detector

Whether you are a quant, a bot builder or building an AI agent that consumes market data, the shape is the same:

  1. Ingest. Stream order book updates and trades from each venue, plus a periodic pull of market metadata.

  2. Normalize. Map every listing to a canonical ID and a common schema: price as a probability between 0 and 1, size in contracts, timestamps in UTC.

  3. Match and score. Pair equivalent contracts and attach a match-confidence level and a rule-difference flag.

  4. Compute. For each pair, calculate executable edges in both directions, depth-adjusted edge and capital-lock-adjusted edge.

  5. Filter. Apply the minimum size, freshness, fee and resolution-risk rules.

  6. Emit. Publish a structured event with the pair, edge, size, timestamps and reason codes, so downstream systems can act or log it.

  7. Record. Persist every emitted and every rejected candidate. Rejections are your best tuning data.

For an AI agent, step 6 matters most. Give the agent structured fields and reason codes rather than a prose summary, and it can reason about the signal without guessing at units or venue conventions. Our guide to prediction market APIs built for AI agents describes the REST and WebSocket approach with canonical IDs.

Common mistakes

  • Comparing last trades. Use bid and ask on both sides.

  • Trusting title matches. Compare resolution criteria.

  • Ranking by percentage gap. Rank by expected dollar edge at size and per day of capital lock-up.

  • Ignoring timestamps. Two quotes from different moments are not a gap.

  • Optimizing on one category. A threshold tuned on election markets may fail on sports contracts.

  • Deleting rejected candidates. Keep them. They tell you what your filters are doing.

Our perspective

We built Assymetrix around a simple observation: divergence detection is a data problem long before it is a modeling problem. The model is usually a few lines of arithmetic. The hard part is having every venue’s contracts matched to one canonical ID, prices on one schema, and history deep enough to test an idea properly.

That is why we aggregate Polymarket, Kalshi and Limitless into one layer, and why we keep the layer venue-neutral. A data source tied to a single exchange has little reason to show you where that exchange is the outlier. We have no such conflict. Our design priority is to give you the same normalized view of every venue, with roughly 1.5 terabytes of history spanning nearly one billion rows of trading activity, so a detector you write today can be replayed against the past without rewriting it.

Our view is that the next edge in this field comes from combining signals: cross-venue gaps, Smart Money flow and execution-aware filtering, evaluated together on reproducible history. A single gap seen in isolation tells you little. The same gap, confirmed by informed flow and sized against real depth, is a candidate worth a closer look.

Dean

Run it on one API

If you would rather not build the matching and normalization layer yourself, our Data API gives developers, quants and AI agents unified access to cross-venue prediction market data through a single integration. It covers real-time and historical data across Polymarket, Kalshi and Limitless, with canonical IDs so the pairing step in this guide is already done for you.


Assymetrix

Start with the Assymetrix Data API, or read the real-time and historical data feed guide to see the endpoints. If you work in Python, the Python developer guide has a quick path from request to DataFrame.

FAQ

How is market divergence in prediction markets different from RSI divergence?

RSI divergence compares price with a momentum indicator on one chart. Prediction market divergence compares the implied probability of the same outcome across venues, or compares price with wallet flow. It is anchored to a contract that resolves to a known value, so it can be tested against outcomes.

Is every cross-venue price gap an arbitrage opportunity?

No. A gap can come from spread width, different resolution rules, stale quotes or thin depth. It becomes a candidate only when the executable edge at your trade size stays positive after fees and the contracts resolve the same way. Our prediction market arbitrage guide covers the full framework.

What data do I need to detect divergence?

You need order book snapshots with timestamps from each venue, contract metadata including resolution rules, and a canonical ID mapping between venues. For flow-based signals, add wallet-level trade history. For backtests, you also need deep point-in-time history.

How often should a detector refresh?

Match it to the horizon you trade. A bot acting on short-lived gaps needs streaming updates and strict freshness checks. A research process that ranks opportunities by resolution date can work from periodic snapshots. In both cases, store the timestamps so you can measure how stale a comparison was.

Can an AI agent run divergence detection?

Yes, if it receives structured data. Provide normalized fields, canonical IDs, executable edges and reason codes, and let deterministic code do the arithmetic. The agent then ranks, explains or routes the signals instead of computing them from raw text.

Sources

Other Blog