API ReferenceCross-Venue Intelligence
Live executable-arbitrage assessment of discrepancy clusters. Router only.
const url = 'https://data.predictefy.com/api/router/fetchArbitrage?contracts=100&executableOnly=false&limit=5&offset=0&snapshotTTL=60000';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://data.predictefy.com/api/router/fetchArbitrage?contracts=100&executableOnly=false&limit=5&offset=0&snapshotTTL=60000' \ --header 'Authorization: Bearer <token>'Assesses each cluster's cross-venue pairs in both orders, subject to the per-cluster
pair cap. It uses LIVE order books at the requested contracts size. Each order buys
YES at the buy-YES venue's real asks (legs.buyYes.venue) and NO at the buy-NO venue's
real asks (legs.buyNo.venue). The locked payout is $1/contract at resolution.
For initial pages, a fresh published v2 surface is served only with default
contracts=100 and no category. It covers the widest-spread discrepancy clusters
plus a monitored set of pairs, which defaults to matched pairs and can vary by service configuration. Other initial requests (non-default contracts, any category,
or an unavailable or stale surface) use the computed fallback over at most 10
widest-spread candidate clusters. The fallback omits the watchlist. Published cursor pages
retain their pinned version without a freshness check; an expired version returns HTTP 400
VALIDATION_ERROR. Computed cursor pages stay on the fallback.
The row asOf is the earlier of the two legs' asOf values, a last-observation
time rather than an expiry (null when either book is missing).
A live leg keeps its asOf until the book changes. The maximum age since the last
change is currently 7,200,000 ms for a live-subscription book and 60,000 ms for a non-live cached book.
Older books are refreshed or the leg is marked unavailable.
Gate each row's currency on its assessedAt on published pages, computed-fallback pages and streamed frames alike.
A row without assessedAt has unknown freshness and must not be treated as fresh.
On published and streamed rows, allow for at least the 30-second snapshot interval before treating assessedAt as stale.
meta.asOf is the surface publish time, not a row clock; computed-fallback pages omit it.
A published row keeps the assessedAt of its price assessment, which can be a minute or more before meta.asOf.
A leg's live: true means its order-book subscription was live at assessedAt, not at meta.asOf.
Use per-leg asOf plus live for your own book freshness policy.
Older service versions may omit assessedAt and the per-leg asOf, bookSource and live.
Their availability can differ between published, streamed and computed-fallback rows.
A row is labeled "arbitrage" ONLY when EVERY gate passes:
- Books: live non-synthetic asks on both legs.
- Market: open market status.
- Depth: full depth at the requested size.
- Fees: a VERIFIED per-venue fee model, walked per level, with settlement commissions charged at the worst-case winning leg.
- Network: a VERIFIED per-venue network (gas) cost in
networkFee, from a dated table where a row past its review date counts as unverified. - Resolution: the resolution-equivalence gate: an affirmative persisted verdict for the current rule-content hashes, plus threshold, stage and settlement-source vetoes.
- Edge: a positive net edge after venue taker fees and settlement costs; network costs are not included today.
Every other row is served as "indicative price discrepancy" with machine-readable
reasons:
- Per leg: see
ArbitrageLeg.reasons;market_not_opencovers stale status, an inactive flag, or a passed close time. - Per pair: threshold, stage and source conflicts,
close_time_mismatch,resolution_equivalence_unverified,same_venue,*_leg_not_executable,network_cost_unverified,no_positive_edge.
The fingerprint conflict vetoes AND the close-time bar are re-applied live at claim time.
The fresh published surface pages filtered assessment rows. Initial pages use the computed
fallback for non-default contracts, any category, or an unavailable or stale surface.
The fallback assesses at most 10 widest-spread candidate clusters, without the watchlist,
and may emit multiple ordered venue pairs per cluster. Fallback pagination advances before executable, venue, edge and sports
filters, so an empty data page can still carry page.hasMore and page.nextCursor.
Rows are ordered executable first, then by netEdge descending; at one contracts size that is the same order as roi descending.
When rules review is active, clusters with any cross-venue pair still awaiting review are
omitted from data on both published and computed pages. meta.judgeBeforeServe reports
how many clusters in the request's scope are held; that count can be zero.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Must be router for this cross-venue operation. Market anchors must use the canonical venue:marketId form; event anchors must use the canonical venue:eventId form.
Query Parameters
Section titled “Query Parameters”Position size to assess; depth and fees are judged AT this size. Initial pages use the published surface only at the default 100 with no category; any other value uses the computed fallback over at most 10 candidate clusters.
USD budget for an optional whole-contract allocation from the recorded executable fills. One decimal number with at most 2 decimal places; repeated values, signs and exponents are rejected. When stake allocation is not available, answers 400 VALIDATION_ERROR with "stake is not enabled". With stake, limit must be <= 100. Adds no credits to the existing request weight. Does not change the assessed contracts size or fetch deeper books.
Any category sends initial pages to the computed fallback over at most 10 candidate clusters; the published surface serves only requests without one.
True = serve ONLY rows that earned the "arbitrage" label.
Keep a row when either leg touches this case-insensitive venue id. Repeated and comma-separated values are accepted, trimmed, and de-duplicated. For cursor walks, put all ids in one comma-separated value because the cursor fingerprints only the first repeated occurrence.
Alias of venue; keeps a row when either leg touches any listed id. Repeated values work on the first page, but cursor walks must use one comma-separated value because only the first repeated occurrence is fingerprinted.
Minimum finite netEdge in dollars, inclusive. Rows with null or non-finite net edge do not match.
Keep at most this many best-ranked ordered venue pairs per base cluster after executable, venue, minEdge and sports filters.
Keep a row only when the markets of BOTH legs are keyed by the sports catalog to this canonical sport slug (as fetchSportsFacets serves it). A row whose legs are not both keyed, or whose keys disagree, never matches a sports filter. One exact value; a repeated key answers 400. Unknown valid values return an empty page. When sports filters are not available, this parameter answers 400 VALIDATION_ERROR sports filters are not enabled.
Keep a row only when the markets of BOTH legs are keyed by the sports catalog to this competition id (as fetchSportsCompetitions serves it). A row whose legs are not both keyed, or whose keys disagree, never matches a sports filter. One exact value; a repeated key answers 400. Unknown valid values return an empty page. When sports filters are not available, this parameter answers 400 VALIDATION_ERROR sports filters are not enabled.
Keep a row only when the markets of BOTH legs are keyed by the sports catalog to this market type (moneyline, match_result, spread, total, team_total, btts, halftime_result, first_to_score, exact_score, outright, advance, player_prop, other; the vocabulary can grow). A row whose legs are not both keyed, or whose keys disagree, never matches a sports filter. One exact value; a repeated key answers 400. Unknown valid values return an empty page. When sports filters are not available, this parameter answers 400 VALIDATION_ERROR sports filters are not enabled.
Keep a row only when the markets of BOTH legs are keyed by the sports catalog to this period (full, regulation, 1h, 2h, q1 to q4, p1 to p3, map1 to map5). A row whose legs are not both keyed, or whose keys disagree, never matches a sports filter. One exact value; a repeated key answers 400. Unknown valid values return an empty page. When sports filters are not available, this parameter answers 400 VALIDATION_ERROR sports filters are not enabled.
Published assessment rows requested per page. The computed fallback accepts the same value but scans at most 10 candidate clusters; one cluster can emit multiple pair rows.
Zero-based offset. An explicit offset wins over page; a valid cursor overrides both after they are validated. Offsets above the maximum are rejected; use cursor pagination for deep walks.
One-based page used to derive offset as (page - 1) * limit; the derived offset must be a safe integer. Explicit offset wins; a valid cursor overrides both.
Opaque page.nextCursor from a prior response. It overrides offset/page and records this route plus the first serialized value of each non-pagination filter (category, contracts, executableOnly, venue/venues, minEdge, pairsPerCluster, sport, competition, marketType, period, stake); changing a recorded value answers 400. Repeated values after the first are not fingerprinted, so encode multi-venue filters as one comma-separated value. Published cursors also record the exact surface sequence. Cursors expire 60 seconds after issuance by default, measured per page hop; snapshotTTL on page 1 sets the per-hop lifetime in milliseconds. On the computed path (filtered or non-default requests) a value up to 86,400,000 ms is honored and 0 disables the per-hop expiry. On the published surface the server keeps a replaced page snapshot for up to ten minutes (600,000 ms) by default; page retention may be shorter under load, and the expiry error states the actual lifetime it had. On this path snapshotTTL is capped at the configured retention TTL (default: 600,000 ms) and 0 means that cap, not forever. An expired cursor answers 400 VALIDATION_ERROR with the message "Cursor has expired: this page's snapshot was kept for
Per-hop cursor lifetime in milliseconds, set on page 1. Cursors expire 60 seconds after issuance by default, measured per page hop. On the computed path (filtered or non-default requests) a value up to 86,400,000 ms is honored and 0 disables the per-hop expiry. On the published surface the server keeps a replaced page snapshot for up to ten minutes (600,000 ms) by default; page retention may be shorter under load, and the expiry error states the actual lifetime it had. On this path the value is capped at the configured retention TTL (default: 600,000 ms) and 0 means that cap, not forever. A supplied cursor carries its original TTL, so a later snapshotTTL value is ignored.
Responses
Section titled “Responses”Live executable-arbitrage assessments (honestly labeled per row).
object
One ordered cross-venue pair in a cluster, priced against LIVE books. label is "arbitrage" IFF executable: every gate passed at the requested size; otherwise "indicative price discrepancy" with the failing gates in reasons .
object
Candidate similarity from matching, distinct from matchScore.
The assessed size; depth/fees judged AT this size.
object
One taker-BUY leg of the assessed pair. Pricing fields are null whenever the leg cannot honestly be priced AS THE CLAIMED TRADE (missing/synthetic/thin book, or no verified fee model): reasons carries the machine-readable WHY.
object
Composite "{venue}:{marketId}".
ISO-8601 observation time of the exact input book used for this leg's assessment; null when the book is missing or its legacy observation time is unknown.
Book provenance source (predictefy-live for subscription data or venue-rest for a direct venue read); null when missing or unknown.
live describes the book subscription at assessment time, rather than the venue's capabilities. true means the book came from a subscription confirmed live at that time. false means a direct venue read (bookSource: "venue-rest") or a subscription snapshot accepted under the 60-second rule (bookSource: "predictefy-live"). The snapshot case includes sources without liveness reporting, such as Gemini, Opinion and SX Bet, and subscription reconnections. live: null means the book is missing or unavailable; asOf and bookSource are also null. Older frames omit these keys. Consumers needing a venue read must check bookSource, not live.
Research note for unverified-fee venues (why no model exists).
VWAP of the full requested fill, $/contract.
Walked cost of the full requested fill, $.
VERIFIED taker fee for the fill, $ (0 for settlement-commission venues).
Which fee rate applied (general, sports, conservative-max, …).
Contracts available on the walked asks (≤ requested).
The outcome whose live book priced this leg; the outcome an order for this leg names. Served only when sports data is available.
The canonical sports selection this outcome pays on (home, away, draw, over, under, yes, no, team:<team_id>). Served on leg-paired rows, and on every leg the sports catalog maps when the sports family is enabled; omitted otherwise.
Contracts resting at the best usable ask of the same live book, summed across levels at that price; null when the book is unavailable, synthetic or has no usable ask. Read during the same price assessment as the row asOf. Served only when sports data is available.
One taker-BUY leg of the assessed pair. Pricing fields are null whenever the leg cannot honestly be priced AS THE CLAIMED TRADE (missing/synthetic/thin book, or no verified fee model): reasons carries the machine-readable WHY.
object
Composite "{venue}:{marketId}".
ISO-8601 observation time of the exact input book used for this leg's assessment; null when the book is missing or its legacy observation time is unknown.
Book provenance source (predictefy-live for subscription data or venue-rest for a direct venue read); null when missing or unknown.
live describes the book subscription at assessment time, rather than the venue's capabilities. true means the book came from a subscription confirmed live at that time. false means a direct venue read (bookSource: "venue-rest") or a subscription snapshot accepted under the 60-second rule (bookSource: "predictefy-live"). The snapshot case includes sources without liveness reporting, such as Gemini, Opinion and SX Bet, and subscription reconnections. live: null means the book is missing or unavailable; asOf and bookSource are also null. Older frames omit these keys. Consumers needing a venue read must check bookSource, not live.
Research note for unverified-fee venues (why no model exists).
VWAP of the full requested fill, $/contract.
Walked cost of the full requested fill, $.
VERIFIED taker fee for the fill, $ (0 for settlement-commission venues).
Which fee rate applied (general, sports, conservative-max, …).
Contracts available on the walked asks (≤ requested).
The outcome whose live book priced this leg; the outcome an order for this leg names. Served only when sports data is available.
The canonical sports selection this outcome pays on (home, away, draw, over, under, yes, no, team:<team_id>). Served on leg-paired rows, and on every leg the sports catalog maps when the sports family is enabled; omitted otherwise.
Contracts resting at the best usable ask of the same live book, summed across levels at that price; null when the book is unavailable, synthetic or has no usable ask. Read during the same price assessment as the row asOf. Served only when sports data is available.
Whether a high-confidence affirmative persisted verdict matches both legs' current resolution-rule content hashes.
Deterministic rules comparison score. Null when no current verdict exists. Verification still requires an equivalent high-confidence verdict; the score alone never permits execution. Hidden rows are excluded from the feed.
Each difference kind is deducted once; explanations of that kind are joined.
A listed score deduction. Confidence costs 5 points for medium and 10 for low. A date veto accounts for all 100 points as deadline_handling; that row is hidden.
object
The sports catalog key that the markets of BOTH legs share. fixtureId is null for a competition-level market such as an outright. Omitted when either leg is not keyed or the two keys disagree; such a row never matches a sports filter. Served only when sports data is available. Catalog identity is Predictefy data, not a venue statement and not a settlement claim.
object
Optional composed match context for display: the common fixture's canonical team names and local event date, then the readable market type and period, plus a shared finite line for a fixture-scoped total. Example: "Chiefs vs Broncos (2026-09-23) | Full game total 44.5". The whole field is omitted when the fixture metadata is incomplete or unusable, the type or period has no known label, or the two keys disagree on the metadata. When the two keys disagree on the numeric line, or the line is missing or not fixture-scoped, the fixture context and labels are still served and only the trailing line is omitted. Team order is the catalog's sorted pair, never an inferred home/away. The title adds context to the existing question and leg selections; it is not an equivalence or settlement claim. Older servers omit this field.
Optional USD allocation projection, emitted only when stake is supplied. A null allocation carries the reason it cannot be priced; no deeper book is fetched.
object
Requested budget in USD.
Largest affordable whole-contract allocation within the recorded assessed fills. Small allocations can lose money because of per-order minimum fees; profitable states the result.
object
The allocation equals the assessed contracts size.
The budget exceeds the assessed total cost; recorded depth caps the allocation.
object
object
Composite "{venue}:{marketId}".
Canonical sports selection when present on the source leg.
Re-walked ask cost in USD before fees.
Verified taker fee in USD, including any per-order minimum.
object
Composite "{venue}:{marketId}".
Canonical sports selection when present on the source leg.
Re-walked ask cost in USD before fees.
Verified taker fee in USD, including any per-order minimum.
Worst-case winning-leg settlement commission in USD.
Both legs plus fees, worst-case settlement commission and the row network fee (once per allocation) in USD.
Contracts times the locked USD 1 payout.
Payout minus totalCost in USD.
True only when payout exceeds totalCost.
(payout − totalCost) / totalCost, rounded down to 4 decimal places; null when totalCost is zero.
Requested budget minus totalCost in USD.
Cheap fingerprint conflict veto (compatible ≠ verified equivalent).
object
Worst-case settlement commission across legs (only one leg wins), $.
Trader-paid network (gas) cost of the round trip in USD: each leg's placement and cancel, plus the redemption of the winning leg once (only one leg wins, so the dearer redemption is charged). 0 is a sourced claim that the trader pays nothing. Null when either venue's network cost is unverified or its dated table row is past review; then totalCost, netEdge and roi are null and reasons carries network_cost_unverified. Deposits, withdrawals, bridges, one-time approvals, capital lockup and price movement are excluded. Older service versions omit this key from published and streamed rows.
Legs + fees + settlement worst case + networkFee, USD; null when unknowable.
The locked payout: contracts × $1.
Payout - totalCost (so after networkFee), in USD, not a rate; null when unknowable.
NetEdge / totalCost, both after networkFee; null when unknowable.
Pair-level failing gates (empty when executable).
EARLIEST leg-book freshness; null when either live book is missing.
ISO-8601 time when this row was assessed; never null. Published and streamed assessedAt and per-leg asOf refresh with the 30-second snapshot or a material row change, like row asOf. The row change key intentionally excludes those clocks.
Live-book provenance and the source of this response. asOf/seq exist only on the published path; totalUnavailable explains a null page.total on fallback; judgeBeforeServe exists only while the judge-before-serve feature is on.
object
The requested position size used for every assessment.
object
Predictefy-live: served from live WebSocket data or a live order book.
Surface publish time, not a row clock; omitted on computed fallback.
Published surface sequence; omitted on computed fallback.
Whether rows came from the fresh published surface or bounded on-demand computation.
Why page.total is null; present only when the fallback count is unavailable.
Requested USD budget; omitted without stake.
Present and true when the fills sidecar is unavailable.
Omitted when the fills sidecar read has not failed.
Present when rules review is active. heldClusters counts clusters awaiting review within the request's category and sandbox scope; it can be zero. A held cluster is withheld until every cross-venue pair has been reviewed.
object
Clusters in this request's scope whose cross-venue pairs the judge has not finished.
Machine-readable hold reason; the only value today is judge_verdict_pending.
object
Total matching rows, or null when the total was NOT computed: never a fabricated 0. The page remains available while its exact total is calculated, or when counting exceeds the request time limit. null is always accompanied by meta.totalUnavailable, which says why; use hasMore / nextCursor to walk the result set.
Whether another page exists. Determined by fetching one row beyond the requested limit, so it stays correct even when total is null.
Opaque cursor for the next page; normally omitted on the final page. The explicit event keyword and native-topic profiles always return null and uses mutable offsets, even with hasMore.
Compatibility alias of page.nextCursor; omitted on the final page.
Example
{ "data": [ { "legs": { "buyYes": { "side": "yes", "bookSource": "venue-rest", "reasons": [ "unverified_fees" ] }, "buyNo": { "side": "yes", "bookSource": "venue-rest", "reasons": [ "unverified_fees" ] } }, "resolutionEquivalence": "verified", "matchBand": "verified", "matchDifferences": [ { "kind": "event_identity" } ], "stake": { "reason": null, "allocation": { "legs": { "buyYes": { "side": "yes" }, "buyNo": { "side": "yes" } } } }, "resolution": { "reason": "" }, "label": "arbitrage" } ], "meta": { "live": true, "provenance": { "source": "predictefy-live" }, "source": "published", "degradedReason": "fills_sidecar_unavailable", "judgeBeforeServe": { "reason": "judge_verdict_pending" } }}VALIDATION_ERROR (incl. non-router exchange, contracts/limit out of range, a sports filter when sports filters are not available)
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}UNAUTHORIZED: a valid API key is required.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}INSUFFICIENT_CREDITS: endpoint-weighted credits
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}SCOPE_MISSING: API key lacks the route's required scope (RBAC v1); PLAN_REQUIRED: see credits.md
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}RATE_LIMITED: per-key rps limit
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Unexpected service error. Retryable; error.requestId identifies the failure.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}ARBITRAGE_UNAVAILABLE when live arbitrage assessment is not available; CATALOG_UNAVAILABLE when catalog data cannot be retrieved.
object
object
Always present on errors; quote this id when reporting a failed request.
Optional machine-readable refusal details. It names a reason code and never echoes request values.
Present only when a venue error is attributed to a specific exchange.
Optional, report-only upstream book error class; never changes retry behavior.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}