API ReferenceData Feeds
One reference-price ticker (curated symbols only).
const url = 'https://data.predictefy.com/api/feeds/binance/fetchTicker?symbol=example';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/feeds/binance/fetchTicker?symbol=example' \ --header 'Authorization: Bearer <token>'Binance = 24h spot stats from the public data mirror; chainlink = the latest on-chain oracle round. asOf/timestamp are the UPSTREAM event time — a cache hit (sourceMetadata.cached) never refreshes them. Dark by default — 503 FEEDS_UNAVAILABLE until READS_ENABLE_DATA_FEEDS is set.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”One of the R4 reference data feeds (unknown feeds answer 404 FEED_NOT_FOUND).
Query Parameters
Section titled “Query Parameters”Curated pair, e.g. BTC/USDT (binance) or BTC/USD (chainlink).
Responses
Section titled “Responses”A single ticker.
object
Normalized ticker with honest optional fields. Fields a feed cannot populate are ABSENT (a Chainlink oracle has no bid/ask/high/low), never zero-filled.
object
Epoch ms of the UPSTREAM event.
Honest freshness: the upstream event time; a cache hit keeps the ORIGINAL value.
object
Binance-rest — served from Binance's public REST market-data mirror. binance-ws — streamed from Binance's public market-data WebSocket. chainlink-onchain — read from Chainlink's on-chain oracle through public RPC.
Honesty flags + upstream ids (cached; Chainlink roundId/proxyAddress/chain).
object
Example
{ "data": { "provenance": { "source": "binance-rest" } }}VALIDATION_ERROR — missing/uncurated symbol
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}The API key is missing, unknown, or revoked. A venue-authenticated read also answers 401 when the venue itself rejects the credential. Not retryable.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}The account's credit balance cannot cover this endpoint's weight. Not retryable.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}SCOPE_MISSING — API key lacks the route's required scope (RBAC v1)
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}FEED_NOT_FOUND
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Rate limit exceeded. The response carries Retry-After in whole seconds, always rounded up so a sub-second remainder never points back inside the live window.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}Unexpected internal error. Retryable; error.requestId identifies the failure.
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}NOT_SUPPORTED — feed capability gap
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}FEED_UPSTREAM — public upstream failed
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}FEEDS_UNAVAILABLE
object
object
Always present on errors; quote this id when reporting a failed request.
Present only when a venue error is attributed to a specific exchange.
Example
{ "success": false, "error": { "code": "VALIDATION_ERROR" }}