API ReferenceMarket Data
Batch closes for many outcomes over one trailing window (body { args:[items, options?] }).
const url = 'https://data.predictefy.com/api/polymarket/fetchSparklines';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"args":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://data.predictefy.com/api/polymarket/fetchSparklines \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "args": [ "example" ] }'Store-only batch history for row sparklines: up to 50 outcomes of one venue, one trailing window (default 168 hours, maximum 720), one resolution (1h default or 1d). Each item is a catalog or venue-native outcome id, optionally narrowed by marketId when one native id maps to several stored outcomes. Every item is answered in request order, repeats included, so items[i] pairs with data[i]: ok carries ascending timestamps/closes plus the data source that served it; empty means the outcome has history at this venue but none in the window; unknown means it was never captured; unchecked means the coverage probe did not finish inside its budget, so neither of those two is claimed. The route never contacts a venue, so meta.provenance is always predictefy-store; a plan's trailing history window clamps meta.start instead of refusing the request. Each response unit is one returned point. A short-TTL per-item cache answers repeat batches: meta.cacheHits counts the items it served, and a cached series may trail the store by at most the cache TTL. router is not supported.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”One of the 16 served product venues, or router for the all-served-venues union.
Unavailable venues, currently smarkets, return 404 EXCHANGE_NOT_AVAILABLE.
SX Bet serves catalog reads, real CLOB order books, the public trades tape, tape-derived candles, Trader Intelligence, and public account resources. It has no server execution service; its separate client-side SDK trading integration is live as of 2026-07-27, and the trading wallet must have a registered sx.bet account with betting enabled once per token per network. There is no venue-official history claim.
pascal, xo and pred all serve catalog reads and real CLOB order books,
plus a public trades tape on pascal only: xo and pred answer
501 NOT_SUPPORTED for fetchTrades. XO's is a venue property rather than a gap: its
trade endpoints are caller-scoped, so no public XO tape exists to serve. None of
the three has an account or venue-official history read. Their execution state
differs per venue and is no longer uniform:
- Pascal supports build, submit, and signed cancel permits.
- XO supports hosted build, submit, client-credentialed status refresh, and cancel.
- PRED execution is unavailable. Every PRED execution route, including build, returns 404 VENUE_NOT_SUPPORTED.
PredictStreet serves keyless catalog/detail reads and real two-sided CLOB books. Its ADI Chain execution supports build, submit and cancel; it has no hosted settlement service. Predict Street Limited states it operates under Gibraltar licence 167, and FIFA names it the official prediction-market partner of the FIFA World Cup 2026.
Eligibility and jurisdiction remain an operator/compliance responsibility.
PRED restricts the US, UK, France, Ontario, Singapore, Poland, Thailand, and
Taiwan and prohibits location masking; pascal is US-restricted at the venue, and
XO read access is partner-provided. Check Pascal's restricted-jurisdiction and API/data terms before use.
GET /v1/exec/venues reports current execution availability.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Positional tuple [items, options?].
Examplegenerated
{ "args": [ "example" ]}Responses
Section titled “Responses”One series per requested item, in request order.
object
One requested outcome's closes over the batch window. status: ok series carry ascending timestamps (Unix ms per bucket) and parallel closes; empty and unknown series carry empty arrays. lane identifies the data source that served the points, in the same precedence the chart route uses: stored exact candles, then the stream trade tape, then the REST trade tape, then a query-time rollup of finer candles.
object
The outcome id exactly as requested.
The requested narrowing, if any.
ok carries points. empty: the outcome has history at this venue but none in the window. unknown: never captured. unchecked: no points in the window and the coverage probe did not finish inside its own budget, so neither empty nor unknown is claimed.
The stored outcome id the points came from; null without points.
True when the request id matched more than one stored outcome (native ids are not unique on every venue); the densest series was kept. Pass marketId to narrow.
True only when every returned point is a venue-issued true candle.
object
Always predictefy-store: the batch route never contacts a venue.
ISO; aligned down to a bucket boundary.
ISO; the request time.
True when the plan's trailing history window moved start. The comparison is made on the bucket-aligned start, so a request for exactly the entitled window (for example 168 hours on a 7-day plan) is clamped too: start is then the first bucket boundary at or after the cutoff, never before it.
Total points returned; also the metered units.
2026-11-10: requested items answered from the reads service's short-TTL per-item series cache (60 seconds by default). 0 means every item was read from the store. A cached series may trail the store by at most the cache TTL.
Example
{ "data": [ { "status": "ok", "lane": "stored", "sourceTypes": [ "true-candle" ], "quality": "ok" } ], "meta": { "provenance": "predictefy-store", "resolution": "1h" }}The request was rejected before any work was done: an invalid query, path, or body parameter, a malformed JSON body, or a parameter combination this route cannot honestly serve. Not retryable.
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, scaled per 100 items
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: the plan has no bulk access
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" }}The route does not exist, or the requested venue, market, event, cluster, outcome, or snapshot was not found. error.code names which. Not retryable.
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" }}A dependency is temporarily unavailable: the catalog, history, matching, feeds, an upstream venue, or the platform store. Retryable.
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" }}