API ReferenceCross-Venue Intelligence
List honestly labeled indicative price discrepancies.
const url = 'https://data.predictefy.com/v1/discrepancies?live=false&includeHeld=false&limit=20';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/v1/discrepancies?live=false&includeHeld=false&limit=20' \ --header 'Authorization: Bearer <token>'Returns 404 when this feature is not available. Returns eligible clusters ordered by recorded spread. An unavailable or expired exact total becomes null immediately while the total is recalculated. meta.totalUnavailable explains the missing total. live=true overlays current order-book mids when live order books are available, but never upgrades the indicative label.
Stored requests apply agg_spread < 0.10 to both the list and its total. Live requests with available order books do not apply that cutoff. Both paths retain their exact serve-time checks and scan up to three additional pages of candidates to fill short pages. page.total counts eligible clusters before these quote checks, so it is an upper bound on servable rows. It remains nullable or cached as described above.
meta.withheldClusters counts consumed candidates omitted by serve-time checks, including empty books and gaps shifted by guarded side selection. It is omitted when zero. Continue with offset = page.offset + data.length + (meta.withheldClusters or zero), rather than offset + limit, to avoid duplicate rows after fetch-ahead. hasMore comes from the unconsumed probe after scanning. At the four-page scan ceiling it indicates remaining eligible candidates; those candidates can still fail the quote checks. A short or empty page with hasMore=true therefore requires continuing at the calculated offset.
When rules review is required, clusters with any cross-venue pair still awaiting review are withheld. includeHeld, judgeHoldReason and meta.judgeBeforeServe expose held clusters. Rules review currently does not withhold otherwise eligible clusters.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”When true, the page also carries diagnostic rows for clusters the judge has not finished, each marked with judgeHoldReason; page.total counts those diagnostic rows too, while without it page.total counts admitted rows only. meta.judgeBeforeServe.heldClusters reports the held count either way. When rules review is required, includeHeld=true with live=true returns 400 (VALIDATION_ERROR). Only the literal true enables it. It has no effect when rules review is not required.
CSV list of response expansions. Currently only markets is supported; an unrecognized value returns 400 (VALIDATION_ERROR). expand=markets adds the market object to every discrepancy leg at no extra metering weight.
Stored requests may use up to 100 results (default 20). When live=true, the effective maximum is 10; requesting more returns 400 (VALIDATION_ERROR) because every live cluster recomputes against real order books.
Offsets above the maximum are rejected; narrow the filters instead.
Responses
Section titled “Responses”A cluster-grain page of indicative discrepancies.
object
object
Latest recorded assessment of resolution equivalence, using approved assessment methods, current evidence and freshness requirements. This is not live verification. Pairs labeled judged_not_equivalent stay visible. Event pairs always return not_judged; market verdicts are never inferred for an event or an entire cluster. unavailable means the label could not be computed because evidence could not be retrieved, assessment was unavailable, a processing error occurred or a service limit was reached. Labeling has a 2,000 ms deadline and a 1,000-pair cap. Labels may be unavailable when two labeling requests are already running; after a deadline expires, labeling pauses for 30 seconds. The page is still served; a label failure never causes a 503. unavailable has null judgedAt and confidence and empty differenceKinds and vetoes.
object
Insufficient_evidence comes first: it applies whenever the judge reports insufficient evidence, even when the verdict also lists a polarity difference. judged_equivalent meets the bar execution requires for resolutionEquivalence verified and matchBand verified: equivalent, high confidence, sufficient evidence, rules available, no polarity difference, and close dates no more than 21 days apart. likely_equivalent is equivalent with sufficient evidence but below the verified bar: lower confidence or unavailable rules; never a vetoed pair. judged_not_equivalent is a negative verdict with sufficient evidence, a verdict listing a polarity difference, or an equivalent verdict that execution's deterministic close-date check vetoes (close dates more than 21 days apart; vetoes lists close_dates, and differenceKinds stays judge-only). not_judged means no verdict passed the trust rules; it makes no equivalence claim. unavailable means the label could not be computed, as described above.
Recorded judgment time, or null when not_judged or unavailable.
The judge's confidence in its recorded verdict (not a confidence in the label), or null when not_judged or unavailable; not calibrated similarity.
The judge's recorded difference kinds only, de-duplicated in first-seen order; execution's vetoes are listed in vetoes. Empty when none, not_judged, or unavailable.
Execution's deterministic vetoes that changed the label. close_dates means execution's close-date check vetoed an equivalent verdict (close dates more than 21 days apart), so verdict is judged_not_equivalent while confidence and differenceKinds stay the judge's. Empty for every other label, including not_judged and unavailable. More kinds may be added later.
object
Present on both selected legs when either price has basis book_mid. A discrepancy with a book_mid price is withheld unless both bases can be disclosed. Omitted otherwise.
Present only when the list request passes expand=markets.
object
Known-absent is null; this key is always emitted for expanded discrepancy-leg market records.
Known-absent is null; this key is always emitted for expanded discrepancy-leg market records.
The picture to show. It is the venue's art when it has any, else a stored substitute (see imageSource). Known-absent is null; this key is always emitted; null until the image-resolve stage has written this market. Thumbnail rule imageResolved ?? image ?? eventImage.
Why imageResolved is what it is (see ImageSource); null exactly when imageResolved is null.
Known-absent is null; this key is always emitted for expanded discrepancy-leg market records.
Metric-specific provenance for volume24h. venue is published by the venue; derived_cumulative is Predictefy-derived from cumulative snapshots; derived_tape is Predictefy-derived from captured fills. A derived value must carry this field.
Known-absent is null; this key is always emitted for expanded discrepancy-leg market records.
object
Present on both selected legs when either price has basis book_mid. A discrepancy with a book_mid price is withheld unless both bases can be disclosed. Omitted otherwise.
Present only when the list request passes expand=markets.
object
Known-absent is null; this key is always emitted for expanded discrepancy-leg market records.
Known-absent is null; this key is always emitted for expanded discrepancy-leg market records.
The picture to show. It is the venue's art when it has any, else a stored substitute (see imageSource). Known-absent is null; this key is always emitted; null until the image-resolve stage has written this market. Thumbnail rule imageResolved ?? image ?? eventImage.
Why imageResolved is what it is (see ImageSource); null exactly when imageResolved is null.
Known-absent is null; this key is always emitted for expanded discrepancy-leg market records.
Metric-specific provenance for volume24h. venue is published by the venue; derived_cumulative is Predictefy-derived from cumulative snapshots; derived_tape is Predictefy-derived from captured fills. A derived value must carry this field.
Known-absent is null; this key is always emitted for expanded discrepancy-leg market records.
Present only on diagnostic rows, which require includeHeld=true and the judge-before-serve feature on. It marks a cluster whose cross-venue pairs the judge has not finished; the only value today is judge_verdict_pending.
object
Discrepancy-list candidates consumed but withheld by serve-time checks, across the initial page and at most three additional pages. Omitted when zero. The next candidate offset is page.offset + data.length + this count. The eligible lookahead probe stays unconsumed and is not included here.
Last successful exact-count time, present only while that total is stale.
Machine-readable explanation for an intentionally absent exact total.
object
Predictefy-live: served from live WebSocket data or a live order book.
Per-stage live discrepancy processing time in milliseconds.
object
Present and true only when the page contains more than 1,000 pairs to label. Pairs beyond the cap receive unavailable; the data and pagination are preserved. Absent otherwise. For matched-market clusters, counts rawMatches across the page.
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.
Example
{ "data": [ { "matchQuality": { "verdict": "judged_equivalent", "confidence": "high", "differenceKinds": [ "event_identity" ], "vetoes": [ "close_dates" ] }, "low": { "priceBasis": "venue-composite", "market": { "imageSource": "venue", "volume24hSource": "venue" } }, "high": { "priceBasis": "venue-composite", "market": { "imageSource": "venue", "volume24hSource": "venue" } }, "label": "indicative price discrepancy", "judgeHoldReason": "judge_verdict_pending" } ], "meta": { "provenance": { "source": "predictefy-live" }, "matchQualityTruncated": true, "reason": "judge_verdict_pending" }}VALIDATION_ERROR
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
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
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 or 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" }}ROUTE_NOT_FOUND when this feature is 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" }}RATE_LIMITED
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" }}A statement timeout exceeded the read time budget (QUERY_TIMEOUT). Not retryable: the same query times out again at once, so narrow the window or try again later.
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" }}