Assymetrix Launches the Deepest Independent Prediction Market Data APIs
Read more
Read more
Assymetrix Launches the Deepest Independent Prediction Market Data APIs
Read more
Read more
Smart Order Routing for Prediction Markets: A Builder's Guide
Smart Order Routing for Prediction Markets: A Builder's Guide
Smart Order Routing for Prediction Markets: A Builder's Guide
How smart order routing works across prediction market venues: matching contracts, comparing depth, fees and slippage, and the data a cross-venue router needs.

Smart Order Routing for Prediction Markets: A Builder’s Guide
Smart order routing in prediction markets means splitting or placing an order across several venues according to the price you will actually receive, not the price displayed. It is harder than in equities for one reason: before a router can compare prices, it has to prove that two contracts on two venues pay out on the same outcome. Everything after that, depth, fees, slippage and fill risk, is a cost calculation that depends on clean, normalized cross-venue data. Our Data API is built to supply that layer: one integration for cross-venue prediction market data.
Assymetrixdata.assymetrix.comBuild on unified market dataCompare prediction markets across venues with one API providing structured data for your routing logic and backtests.Visit
TL;DR
A prediction market router solves three problems in order: outcome matching, net-price comparison, and execution under uncertainty.
Matching comes first. A router that treats similar-looking contracts as identical will route into a different bet.
Compare venues on all-in cost for your size: walk the book, add fees, subtract the cost of a partial fill.
Unlike equities, there is no regulatory trade-through rule across these venues, so the router’s logic is entirely yours.
Normalized order books, canonical market IDs and historical depth are the inputs. Without history you cannot backtest the router.
Table of Contents
What smart order routing means here
Step 1: Decide whether two contracts are the same outcome
Step 2: Compute the real price for your size
Step 3: Use history and flow to improve the decision
The components of a cross-venue router
Execution risks to build for
Backtest before you route real money
Our perspective
Build your router on one data layer
Sources
What smart order routing means here
In traditional markets, a smart order router (SOR) is software that scans multiple trading venues and sends each order, or pieces of it, where execution looks best. In US equities, part of that behavior is shaped by regulation: the SEC’s Order Protection Rule requires trading centers to maintain policies reasonably designed to prevent trades at prices inferior to protected quotations on other venues. That rule applies to NMS stocks. Prediction market venues sit outside it, so no rule pushes an order toward the best displayed price. The router is the only mechanism that does.
Three structural differences shape the design.
Contracts are not fungible. A share of a listed stock is the same asset everywhere. A binary contract is a claim on a specific event with a specific resolution rule, and each venue writes its own. Venture investor Mark Beylin of Haun Ventures makes a related point: because most contracts are unique, liquidity has to be bootstrapped market by market instead of benefiting from recurring, identical assets.
Liquidity is thin and uneven. A popular election or sports contract may be deep on one venue and nearly empty on another. The best displayed price often has a few hundred dollars behind it, so the quoted price tells you little about the price for your size.
Venues differ in mechanics. Some are regulated US exchanges with fiat settlement and a central limit order book. Others are on-chain order books with different settlement, fee and latency characteristics. A router has to model each one separately.
Step 1: Decide whether two contracts are the same outcome
This is the step that breaks most first attempts. Two contracts titled “Will X happen by December 31?” can differ in ways that matter:
Resolution source. One venue resolves on an official announcement, another on a named news outlet or a data feed.
Cutoff time and time zone. “By December 31” may mean midnight Eastern on one venue and midnight UTC on another.
Edge cases. What happens on a postponement, a tie, a void or a disputed result.
Structure. A multi-outcome market with a “field” option versus a set of independent binaries.
A practical matching pipeline has three layers:
Candidate generation. Use event category, end date and text similarity to produce possible pairs.
Rule comparison. Compare the resolution criteria fields, source, cutoff, and void conditions, field by field. Any mismatch downgrades the pair from “same” to “related.”
Canonical mapping. Store confirmed pairs under one canonical ID so that every downstream component refers to the outcome, not to a venue’s market ID.
Only “same” pairs are eligible for true routing, where the same payoff is bought at the cheapest venue. “Related” pairs belong in a signal or spread strategy, which is a different product with different risk. Our guide to canonical IDs across venues walks through how a unified identifier layer removes this work from each strategy.
Step 2: Compute the real price for your size
Once an outcome is matched, compare venues on the cost of executing your order, not on the top-of-book quote.
For a buy of N contracts on a venue, walk the ask side of the order book level by level until N is filled, and compute the volume-weighted average price. Then add:
Trading fees. Fee schedules differ by venue and sometimes by price level, so model them from each venue’s published schedule.
Settlement and transfer costs. On-chain venues may carry network and funding costs, and moving funds between venues takes time.
Spread to exit. If you plan to close before resolution, the bid side matters as much as the ask.
A worked example with illustrative numbers: you want 2,000 “Yes” contracts. Venue A shows 500 at $0.61, then 1,500 at $0.64. Venue B shows 1,200 at $0.62, then 800 at $0.63. Sending everything to Venue A costs (500 × 0.61 + 1,500 × 0.64) = $1,265, an average of $0.6325. Splitting 1,200 to B and 800 to B’s second level is not possible beyond B’s 2,000 total, but taking all 2,000 on B costs (1,200 × 0.62 + 800 × 0.63) = $1,248, an average of $0.624. Taking 500 at A’s $0.61 and the remaining 1,500 from B (1,200 at $0.62 and 300 at $0.63) costs $305 + $744 + $189 = $1,238, an average of $0.619. The best split is a mix, and the gap against the naive choice is about 1.4 cents per contract before fees. Fees then decide whether the split survives, because each additional venue adds its own fixed and proportional costs.
The routing rule is a greedy fill: at each step, buy the next contract from the venue with the lowest marginal all-in cost, until your limit price or size is reached.

Step 3: Use history and flow to improve the decision
A static snapshot of the books is a weak input. Three kinds of data make a router materially better.
Historical depth. Replaying past books tells you how much size each venue typically offers at each distance from the mid, and how quickly it refills after a trade. That lets you estimate the probability that the second level will still be there when your order arrives. Our write-ups on prediction market liquidity metrics and measuring liquidity fragmentation cover the depth measures that feed this.
Price divergence. When the same outcome trades at different prices on two venues, one of them is usually stale or thin. Persistent gaps tell the router which venue tends to lead and which tends to lag, and a cross-venue price gap measurement approach separates tradable gaps from artifacts of fees and depth.
Order flow and wallet activity. A burst of aggressive buying on one venue often moves the others within seconds. If the router sees informed flow arriving, it can accelerate a buy or hold back a sell. Order flow analysis and Smart Money wallet tracking give you the signals, and Smart Money alerts let a router react to them as events instead of polling.

The components of a cross-venue router
A working router is a small set of services, each with one job.
Component | Job | Data it needs |
|---|---|---|
Market registry | Map venue markets to canonical outcomes | Market metadata, resolution rules, canonical IDs |
Book aggregator | Maintain current depth per venue | Real-time order book stream with snapshots and deltas |
Cost model | Turn books and fee schedules into all-in price for a size | Fee schedules, depth, historical fill behavior |
Allocator | Split an order across venues | Cost model output, limits, risk caps |
Executor | Send orders, track fills, handle failures | Venue order APIs, account state |
Monitor | Compare expected and realized price | Fill records, post-trade book history |
The registry, aggregator and part of the cost model are data problems, not trading problems. They are also the part most teams underestimate, because each venue has its own schema, its own identifiers and its own way of expressing price and size. Normalizing them once, at the data layer, keeps the allocator and executor simple. Our orderbook data integration guide and the REST and WebSocket API guide describe the schema and streaming approach.
AI agents fit in at the allocator and monitor layers. An agent that decides what to trade still needs a deterministic routing function underneath, with explicit limits on size, price and venue, so that its decisions execute predictably. The data layer for agents is the same as for bots: structured, normalized, with stable IDs.
Execution risks to build for
Routing reduces cost on paper. These risks decide what you realize.
Leg risk. If you split an order across two venues, one leg can fill and the other not. You then hold a one-venue position at a worse average price than planned. Mitigate by sending the thinner or slower venue first when the outcome is truly identical, using limit orders with short lifetimes, and sizing so that a single failed leg is tolerable.
Stale books. A book that was accurate 800 milliseconds ago may not be now. Track the age of each venue’s last update and discount or exclude stale venues in the cost model.
Slippage. Your realized price versus the price you expected at decision time is the metric that tells you whether the router works. Log it per order and per venue. See our guide to tracking slippage across venues for how to structure that measurement.
Resolution mismatch. If your matching missed a rule difference, you may be long on one venue and short on another with different payoffs. This is why matching is conservative, and why a human review step for newly matched pairs is cheap insurance.
Settlement and funding. Capital is split across venues and cannot move instantly. A router that ignores balances will route to venues where you cannot actually trade. Include available balance per venue as a hard constraint.
Regulatory scope. Venue access, eligibility and permitted products differ by venue and by user. Developers building tools around US-regulated contracts should read how the CFTC rules affect prediction market integrations before shipping.
Backtest before you route real money
A router is a model, and it needs evidence. The honest test is a replay: feed historical books and trades through the same code path, simulate fills with realistic queue and depth assumptions, and compare the router’s average price against a naive baseline such as always using the deepest venue. Report the improvement in cents per contract, net of fees, split by market type and size bucket. Expect the benefit to be concentrated in mid-size orders on markets that are listed on several venues, and to vanish for small orders in deep markets and for large orders in markets that are too thin to absorb them anywhere.
This is where history matters. Our platform holds approximately 1.5 terabytes of historical data covering nearly one billion rows of trading activity across the major venues, and the historical data access guide shows how to pull it for reproducible backtests.
Our perspective
Most routing projects we see described start at the executor and discover the data problem late. We think that order is backwards. The hard part of cross-venue routing is knowing, with confidence, that two markets are the same bet and what the book on each really looks like right now.
That is why we built Assymetrix as a venue-neutral data layer first. Normalized schemas, canonical IDs, real-time and historical depth, and signals such as Smart Money tracking and cross-venue arbitrage sit behind one API, so a router, a bot or an agent reads one consistent picture instead of maintaining one adapter per venue.
A router is only as good as the picture it routes on. Get the picture right and the allocation logic is a few hundred lines. Get it wrong and no allocator can rescue it.
Dean
Build your router on one data layer
If you are building a router, a bot or an agent that trades across venues, start with the data. The Assymetrix Data API gives developers unified access to cross-venue prediction market data, real-time and historical, through a single integration. For a code-first start, see the Python data guide.

Teams that need the full history can read about institutional backfill, and researchers can follow the data feed guide for real-time and historical access.
FAQ
Is smart order routing legal across prediction market venues?
Routing itself is software logic, but each venue has its own eligibility, jurisdiction and product rules, and those apply to your account on that venue. US-regulated contracts fall under CFTC oversight. Confirm your access and permitted activity venue by venue before automating, and consult a lawyer for your specific situation.
Do prediction markets have a best-execution rule like equities?
The SEC’s order protection rule covers NMS stocks, not prediction market contracts. No cross-venue rule requires that your order go to the best price, so the router’s own logic has to enforce it, including limits for price, size and venue.
Is cross-venue routing the same as arbitrage?
No. Routing buys the same payoff at the lowest all-in cost. Arbitrage takes opposite positions in the same outcome on two venues to lock in a spread. They share inputs, matched contracts and net prices, but arbitrage carries leg risk and capital constraints that a plain routed buy does not.
What data does a router need at minimum?
You need canonical outcome IDs, live order book depth per venue, fee schedules and account balances. For validation, add historical books and trades so you can backtest fills and measure slippage against a baseline.
Sources
Smart Order Routing for Prediction Markets: A Builder’s Guide
Smart order routing in prediction markets means splitting or placing an order across several venues according to the price you will actually receive, not the price displayed. It is harder than in equities for one reason: before a router can compare prices, it has to prove that two contracts on two venues pay out on the same outcome. Everything after that, depth, fees, slippage and fill risk, is a cost calculation that depends on clean, normalized cross-venue data. Our Data API is built to supply that layer: one integration for cross-venue prediction market data.
Assymetrixdata.assymetrix.comBuild on unified market dataCompare prediction markets across venues with one API providing structured data for your routing logic and backtests.Visit
TL;DR
A prediction market router solves three problems in order: outcome matching, net-price comparison, and execution under uncertainty.
Matching comes first. A router that treats similar-looking contracts as identical will route into a different bet.
Compare venues on all-in cost for your size: walk the book, add fees, subtract the cost of a partial fill.
Unlike equities, there is no regulatory trade-through rule across these venues, so the router’s logic is entirely yours.
Normalized order books, canonical market IDs and historical depth are the inputs. Without history you cannot backtest the router.
Table of Contents
What smart order routing means here
Step 1: Decide whether two contracts are the same outcome
Step 2: Compute the real price for your size
Step 3: Use history and flow to improve the decision
The components of a cross-venue router
Execution risks to build for
Backtest before you route real money
Our perspective
Build your router on one data layer
Sources
What smart order routing means here
In traditional markets, a smart order router (SOR) is software that scans multiple trading venues and sends each order, or pieces of it, where execution looks best. In US equities, part of that behavior is shaped by regulation: the SEC’s Order Protection Rule requires trading centers to maintain policies reasonably designed to prevent trades at prices inferior to protected quotations on other venues. That rule applies to NMS stocks. Prediction market venues sit outside it, so no rule pushes an order toward the best displayed price. The router is the only mechanism that does.
Three structural differences shape the design.
Contracts are not fungible. A share of a listed stock is the same asset everywhere. A binary contract is a claim on a specific event with a specific resolution rule, and each venue writes its own. Venture investor Mark Beylin of Haun Ventures makes a related point: because most contracts are unique, liquidity has to be bootstrapped market by market instead of benefiting from recurring, identical assets.
Liquidity is thin and uneven. A popular election or sports contract may be deep on one venue and nearly empty on another. The best displayed price often has a few hundred dollars behind it, so the quoted price tells you little about the price for your size.
Venues differ in mechanics. Some are regulated US exchanges with fiat settlement and a central limit order book. Others are on-chain order books with different settlement, fee and latency characteristics. A router has to model each one separately.
Step 1: Decide whether two contracts are the same outcome
This is the step that breaks most first attempts. Two contracts titled “Will X happen by December 31?” can differ in ways that matter:
Resolution source. One venue resolves on an official announcement, another on a named news outlet or a data feed.
Cutoff time and time zone. “By December 31” may mean midnight Eastern on one venue and midnight UTC on another.
Edge cases. What happens on a postponement, a tie, a void or a disputed result.
Structure. A multi-outcome market with a “field” option versus a set of independent binaries.
A practical matching pipeline has three layers:
Candidate generation. Use event category, end date and text similarity to produce possible pairs.
Rule comparison. Compare the resolution criteria fields, source, cutoff, and void conditions, field by field. Any mismatch downgrades the pair from “same” to “related.”
Canonical mapping. Store confirmed pairs under one canonical ID so that every downstream component refers to the outcome, not to a venue’s market ID.
Only “same” pairs are eligible for true routing, where the same payoff is bought at the cheapest venue. “Related” pairs belong in a signal or spread strategy, which is a different product with different risk. Our guide to canonical IDs across venues walks through how a unified identifier layer removes this work from each strategy.
Step 2: Compute the real price for your size
Once an outcome is matched, compare venues on the cost of executing your order, not on the top-of-book quote.
For a buy of N contracts on a venue, walk the ask side of the order book level by level until N is filled, and compute the volume-weighted average price. Then add:
Trading fees. Fee schedules differ by venue and sometimes by price level, so model them from each venue’s published schedule.
Settlement and transfer costs. On-chain venues may carry network and funding costs, and moving funds between venues takes time.
Spread to exit. If you plan to close before resolution, the bid side matters as much as the ask.
A worked example with illustrative numbers: you want 2,000 “Yes” contracts. Venue A shows 500 at $0.61, then 1,500 at $0.64. Venue B shows 1,200 at $0.62, then 800 at $0.63. Sending everything to Venue A costs (500 × 0.61 + 1,500 × 0.64) = $1,265, an average of $0.6325. Splitting 1,200 to B and 800 to B’s second level is not possible beyond B’s 2,000 total, but taking all 2,000 on B costs (1,200 × 0.62 + 800 × 0.63) = $1,248, an average of $0.624. Taking 500 at A’s $0.61 and the remaining 1,500 from B (1,200 at $0.62 and 300 at $0.63) costs $305 + $744 + $189 = $1,238, an average of $0.619. The best split is a mix, and the gap against the naive choice is about 1.4 cents per contract before fees. Fees then decide whether the split survives, because each additional venue adds its own fixed and proportional costs.
The routing rule is a greedy fill: at each step, buy the next contract from the venue with the lowest marginal all-in cost, until your limit price or size is reached.

Step 3: Use history and flow to improve the decision
A static snapshot of the books is a weak input. Three kinds of data make a router materially better.
Historical depth. Replaying past books tells you how much size each venue typically offers at each distance from the mid, and how quickly it refills after a trade. That lets you estimate the probability that the second level will still be there when your order arrives. Our write-ups on prediction market liquidity metrics and measuring liquidity fragmentation cover the depth measures that feed this.
Price divergence. When the same outcome trades at different prices on two venues, one of them is usually stale or thin. Persistent gaps tell the router which venue tends to lead and which tends to lag, and a cross-venue price gap measurement approach separates tradable gaps from artifacts of fees and depth.
Order flow and wallet activity. A burst of aggressive buying on one venue often moves the others within seconds. If the router sees informed flow arriving, it can accelerate a buy or hold back a sell. Order flow analysis and Smart Money wallet tracking give you the signals, and Smart Money alerts let a router react to them as events instead of polling.

The components of a cross-venue router
A working router is a small set of services, each with one job.
Component | Job | Data it needs |
|---|---|---|
Market registry | Map venue markets to canonical outcomes | Market metadata, resolution rules, canonical IDs |
Book aggregator | Maintain current depth per venue | Real-time order book stream with snapshots and deltas |
Cost model | Turn books and fee schedules into all-in price for a size | Fee schedules, depth, historical fill behavior |
Allocator | Split an order across venues | Cost model output, limits, risk caps |
Executor | Send orders, track fills, handle failures | Venue order APIs, account state |
Monitor | Compare expected and realized price | Fill records, post-trade book history |
The registry, aggregator and part of the cost model are data problems, not trading problems. They are also the part most teams underestimate, because each venue has its own schema, its own identifiers and its own way of expressing price and size. Normalizing them once, at the data layer, keeps the allocator and executor simple. Our orderbook data integration guide and the REST and WebSocket API guide describe the schema and streaming approach.
AI agents fit in at the allocator and monitor layers. An agent that decides what to trade still needs a deterministic routing function underneath, with explicit limits on size, price and venue, so that its decisions execute predictably. The data layer for agents is the same as for bots: structured, normalized, with stable IDs.
Execution risks to build for
Routing reduces cost on paper. These risks decide what you realize.
Leg risk. If you split an order across two venues, one leg can fill and the other not. You then hold a one-venue position at a worse average price than planned. Mitigate by sending the thinner or slower venue first when the outcome is truly identical, using limit orders with short lifetimes, and sizing so that a single failed leg is tolerable.
Stale books. A book that was accurate 800 milliseconds ago may not be now. Track the age of each venue’s last update and discount or exclude stale venues in the cost model.
Slippage. Your realized price versus the price you expected at decision time is the metric that tells you whether the router works. Log it per order and per venue. See our guide to tracking slippage across venues for how to structure that measurement.
Resolution mismatch. If your matching missed a rule difference, you may be long on one venue and short on another with different payoffs. This is why matching is conservative, and why a human review step for newly matched pairs is cheap insurance.
Settlement and funding. Capital is split across venues and cannot move instantly. A router that ignores balances will route to venues where you cannot actually trade. Include available balance per venue as a hard constraint.
Regulatory scope. Venue access, eligibility and permitted products differ by venue and by user. Developers building tools around US-regulated contracts should read how the CFTC rules affect prediction market integrations before shipping.
Backtest before you route real money
A router is a model, and it needs evidence. The honest test is a replay: feed historical books and trades through the same code path, simulate fills with realistic queue and depth assumptions, and compare the router’s average price against a naive baseline such as always using the deepest venue. Report the improvement in cents per contract, net of fees, split by market type and size bucket. Expect the benefit to be concentrated in mid-size orders on markets that are listed on several venues, and to vanish for small orders in deep markets and for large orders in markets that are too thin to absorb them anywhere.
This is where history matters. Our platform holds approximately 1.5 terabytes of historical data covering nearly one billion rows of trading activity across the major venues, and the historical data access guide shows how to pull it for reproducible backtests.
Our perspective
Most routing projects we see described start at the executor and discover the data problem late. We think that order is backwards. The hard part of cross-venue routing is knowing, with confidence, that two markets are the same bet and what the book on each really looks like right now.
That is why we built Assymetrix as a venue-neutral data layer first. Normalized schemas, canonical IDs, real-time and historical depth, and signals such as Smart Money tracking and cross-venue arbitrage sit behind one API, so a router, a bot or an agent reads one consistent picture instead of maintaining one adapter per venue.
A router is only as good as the picture it routes on. Get the picture right and the allocation logic is a few hundred lines. Get it wrong and no allocator can rescue it.
Dean
Build your router on one data layer
If you are building a router, a bot or an agent that trades across venues, start with the data. The Assymetrix Data API gives developers unified access to cross-venue prediction market data, real-time and historical, through a single integration. For a code-first start, see the Python data guide.

Teams that need the full history can read about institutional backfill, and researchers can follow the data feed guide for real-time and historical access.
FAQ
Is smart order routing legal across prediction market venues?
Routing itself is software logic, but each venue has its own eligibility, jurisdiction and product rules, and those apply to your account on that venue. US-regulated contracts fall under CFTC oversight. Confirm your access and permitted activity venue by venue before automating, and consult a lawyer for your specific situation.
Do prediction markets have a best-execution rule like equities?
The SEC’s order protection rule covers NMS stocks, not prediction market contracts. No cross-venue rule requires that your order go to the best price, so the router’s own logic has to enforce it, including limits for price, size and venue.
Is cross-venue routing the same as arbitrage?
No. Routing buys the same payoff at the lowest all-in cost. Arbitrage takes opposite positions in the same outcome on two venues to lock in a spread. They share inputs, matched contracts and net prices, but arbitrage carries leg risk and capital constraints that a plain routed buy does not.
What data does a router need at minimum?
You need canonical outcome IDs, live order book depth per venue, fee schedules and account balances. For validation, add historical books and trades so you can backtest fills and measure slippage against a baseline.
Sources
Other Blog



