API ReferenceCross-Venue Intelligence
List cross-venue market clusters.
const url = 'https://data.predictefy.com/v1/clusters?sort=spread&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/clusters?sort=spread&limit=20' \ --header 'Authorization: Bearer <token>'Returns 404 when this feature is not available. An unavailable or expired exact total returns null immediately while the total is recalculated. meta.totalUnavailable explains the missing total, and hasMore remains exact because one additional result is checked.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Offsets above the maximum are rejected; narrow the filters instead.
Responses
Section titled “Responses”A page of clusters; an expensive total may be explicitly absent.
object
object
Optional cluster-page metadata. asOf is present only when page.total is served stale and records that exact count's last successful computation time; totalUnavailable is present if and only if page.total is null; live/provenance identify a live discrepancy overlay; timings is present only when the request passed live=true.
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
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
{ "meta": { "provenance": { "source": "predictefy-live" } }}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
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" }}