API ReferenceCross-Venue Intelligence
Fail-closed live execution qualification for one discrepancy cluster.
const url = 'https://data.predictefy.com/v1/discrepancies/example/qualification?size=1';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/example/qualification?size=1' \ --header 'Authorization: Bearer <token>'Evaluates one stored discrepancy against nine evidence checks at the requested total USDC size. Any failed check or either venue-read failure keeps the label indicative price discrepancy and is named in disqualifiedBy; requirementsSurfaced=conditional counts as passing. The upgraded execution-qualified opportunity label is reachable only when a fresh persisted high-confidence rules-equivalence verdict exists and all eight other checks pass. Missing, stale, unavailable, or differing rules evidence fails closed. Network costs are not included today. When a leg's network cost is unverified, costsIncluded fails (network cost unverified), netPositive.netEdge stays null, and the answer never reaches the upgraded label: it fails closed. No leg's network cost is verified today, so no cluster reaches that label. netPositive.netEdge and grossEdge are rates (profit divided by depthForSize.executableSize), not the dollar netEdge of fetchArbitrage. Responses are cached for no more than five seconds per request key. The route is priced as a 10-credit cross-venue comparison. When rules review is required, a cluster still awaiting review answers 404 (CLUSTER_NOT_FOUND), with the same error shape as an unknown cluster.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Stable discrepancy cluster id.
Query Parameters
Section titled “Query Parameters”Total USDC size walked across the paired YES and NO asks.
Optional comma-separated allowlist of at least two served venues.
Responses
Section titled “Responses”The nine-check qualification evidence, always honestly labeled.
object
object
object
Each non-synthetic live book alone decides its selected buy-YES or buy-NO leg's quote state; stale catalog evidence cannot veto a healthy live book. The gap uses the unrounded budget-walked YES prices, complementing the buy-NO cost. pass is false for either no_quote leg or a large_price_gap flag. Both legs remain in the evidence and disqualifiedBy names priceSanity on failure. Older service versions may omit this check.
object
Venue evidence only, never inferred from a price gap. Polymarket stored spread >= 0.9, a missing side, or bid <= 0.02 with ask >= 0.98 means no_quote. Each other venue uses the missing-side and 0.02/0.98 rules where book fields exist. No stored book evidence means unknown, treated as quoted for eligibility. Stored and overlaid price surfaces use catalog metadata and the served outcome's book evidence, including an overlaid one-sided price basis. Wherever a non-synthetic live book is read, that book alone decides quoted or no_quote; stale catalog metadata never vetoes a healthy live book.
Venue evidence only, never inferred from a price gap. Polymarket stored spread >= 0.9, a missing side, or bid <= 0.02 with ask >= 0.98 means no_quote. Each other venue uses the missing-side and 0.02/0.98 rules where book fields exist. No stored book evidence means unknown, treated as quoted for eligibility. Stored and overlaid price surfaces use catalog metadata and the served outcome's book evidence, including an overlaid one-sided price basis. Wherever a non-synthetic live book is read, that book alone decides quoted or no_quote; stale catalog metadata never vetoes a healthy live book.
An absolute difference of at least 10 percentage points between the served YES prices, using overlay prices where present and catalog prices otherwise, when neither leg is no_quote. unknown is treated as quoted. The flag is absent below the threshold, for no_quote legs, and on subset and superset relation pairs. Matched rows remain visible with the flag. Indicative discrepancy surfaces exclude flagged pairs; executable arbitrage retains its own live-book gates. Qualification uses its budget-walked live YES prices and returns null when unflagged.
object
Rules comparison score; absent for match-only evidence.
Full score explanation, including confidence deductions; absent for match-only evidence.
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
Venue fees, settlement fees, slippage and network (gas) costs at the walked size. A failed check names the first failing cost in reason, in this order: fees, network, depth.
object
object
One row per venue from the same dated network table that prices fetchArbitrage networkFee. fundingClass is display evidence only. A row's estimateUsdc is that leg's worst case if it wins (placement + cancel + redemption), in USD.
object
object
The pair network cost in USD: both legs' placement and cancel plus one redemption of the winning leg. It equals the fetchArbitrage networkFee for the same venues. Null when either venue is unverified.
object
Top-of-book edge as a rate of the walked USDC size (0.031 means 3.1%).
Net edge as a rate of the walked USDC size, after fees, settlement, slippage and networkFee; null unless costsIncluded passes. This is a rate, unlike the fetchArbitrage netEdge, which is USD.
The same net result in USD: payout minus the walked size, fees, settlement and networkFee; null unless costsIncluded passes.
Contains timings, which is always present on a successful qualification response.
object
Per-stage live discrepancy processing time in milliseconds.
object
Example
{ "data": { "label": "indicative price discrepancy", "checks": { "priceSanity": { "quoteStateYes": "quoted", "quoteStateNo": "quoted", "priceGapFlag": "large_price_gap" }, "resolutionEquivalence": { "basis": "match-only", "matchBand": "verified", "differenceKinds": [ "event_identity" ], "matchDeductions": [ { "kind": "event_identity" } ] }, "costsIncluded": { "gas": { "additionalProperty": { "status": "none" } }, "slippageModel": "ask-level walk", "reason": "fee schedule unverified" } } }}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" }}CLUSTER_NOT_FOUND, or 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" }}CATALOG_UNAVAILABLE
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" }}