Squidlor
Loading docs

Taking longer than usual. Check your connection, or reload the page.

Scorecards & proofs

Provider scorecards that grade every oracle leg on freshness and deviation over any window, point-in-time reads for any past moment, and Merkle proofs against roots committed on-chain.

Three endpoints answer the questions a risk team asks after "what is the price": how reliable has each source been, what was the price at a given moment, and can you prove it. All three replay the same recorded rounds that back the audit trail, so they agree with each other by construction.

Provider scorecards

HTTP
GET /v1/:chain/providers
GET /v1/:chain/providers/:provider

Grades every source wired into a chain's aggregators by replaying recorded rounds. Default window is the last 7 days; ?from= and ?to= (ISO timestamps or Unix seconds) set any window, ?pair=BTC_USD restricts to one pair.

Shell
curl "https://api.squidlor.com/aggregator/v1/arc/providers?pair=BTC_USD"
JSON
{
  "chainId": 5042,
  "window": { "from": "2026-08-19T14:06:22.541Z", "to": "2026-09-18T14:06:22.542Z", "days": 30 },
  "roundsScanned": 2970,
  "truncated": false,
  "providers": [
    {
      "name": "squidlor:BTC/USD",
      "provider": "squidlor",
      "kind": "oracle",
      "pairs": ["BTC/USD"],
      "samples": 2970,
      "freshRate": 0.9973,
      "staleRate": 0.0027,
      "errorRate": 0.0003,
      "deviation": { "median": 0, "p95": 0, "max": 0 },
      "worst": { "bps": 0, "ts": "2026-09-18T14:06:07.020Z", "pair": "BTC/USD", "median": 80492.4, "price": 80492.4 },
      "outlierRate": null,
      "outlierEligibleSamples": 0
    }
  ],
  "summary": { "sources": 1, "oracleSources": 1, "dexSources": 0, "reliable": 1, "mostlyStale": [], "neverFresh": [] }
}
FieldMeaning
freshRateShare of sampled rounds in which the source was inside its staleness window. The closest thing here to uptime.
staleRate, errorRateShare of rounds the source was stale, or reverted or returned a non-positive price.
deviationDistance from the round median in basis points: median, 95th percentile, maximum.
worstThe single round with the largest deviation, with both prices, so you can look at it.
outlierRateHow often this source was the furthest from the median. Only computed when a round had three or more healthy sources; with two, both are equally far by construction, so it is null.
kindoracle or dex. DEX TWAPs are graded separately because an AMM lagging a fast move is an AMM behaving normally, not a bad feed.
summary.reliableSources with freshRate of 99% or better. mostlyStale is below 50%, neverFresh is zero.

Two things to read carefully. Deviation is measured against the round median, not against truth, so on the single-source Arc pairs the source is the median and every deviation is 0 by construction: the column only becomes informative once a second source is wired. And a disabled source is excluded entirely, because disabling is a configuration choice, not a performance fact.

Equity legs score low on freshRate over a 24-hour clock because Squidlor's equity feed publishes only during the US regular session and carries a two-hour window. That is by design; see price feeds.

For what these numbers look like on the live deployment, see measured performance.

Point-in-time reads

HTTP
GET /v1/:chain/feeds/:pair/at?timestamp=<unix seconds or ISO>

Returns the recorded observation nearest the requested moment, with the distance attached. Recording is sampled, so an exact-timestamp answer does not exist and the endpoint never pretends it does.

Shell
curl "https://api.squidlor.com/aggregator/v1/arc/feeds/ETH_USD/at?timestamp=1789700000"
JSON
{
  "chainId": 5042,
  "pair": "ETH/USD",
  "requestedAt": "2026-09-18T02:53:20.000Z",
  "observedAt": "2026-09-18T02:53:06.599Z",
  "offsetSeconds": -13,
  "median": "2463.36",
  "medianNum": 2463.36,
  "decimals": 8,
  "healthyCount": 1,
  "flagged": false,
  "sources": [
    { "name": "squidlor:ETH/USD", "price": "2463.36", "priceNum": 2463.36, "isStale": false, "deviationBps": 0 }
  ],
  "toleranceSeconds": 3600,
  "toleranceDefaulted": true
}

?tolerance= (seconds) bounds how far the nearest observation may be from the request; outside it the response is 404 NO_OBSERVATION. offsetSeconds is negative when the observation precedes the request. Every source's price and deviation at that moment is included, so on a multi-source pair "what did each leg say at 14:30" is one call.

For settlement-grade "exact day in, one price out" reads, use the daily price book, which never substitutes a neighbouring observation.

Proofs

HTTP
GET /v1/:chain/feeds/:pair/at/proof?timestamp=<unix seconds or ISO>

The same observation as /at, plus a Merkle proof against a root committed on-chain by SquidlorHistoryAnchor. Anchoring runs per closed period, so an observation in the current, still-open period is not provable yet and the endpoint says so instead of returning an unproven observation:

JSON
{
  "code": "NO_ANCHORED_OBSERVATION",
  "message": "No anchored observation for that pair near that time. Anchoring runs per closed period, so the most recent period is not provable yet. /at returns the observation without a proof."
}

A successful response carries root, leaf, proof[], and the anchor transaction, so a verifier can recompute the leaf from the observation fields and check inclusion without trusting this API. @squidlor/oracle-sdk 0.4.0 ships the helpers.

Note

Proofs are anchored per chain and per period. If a period has no anchor, its observations are still served by /at; they are simply unprovable, and the response says which. A missing proof is never silently downgraded to an unproven answer.

Rate limits

All three endpoints are metered like the rest of the API: 30 requests a minute without a key, 300 with a free key, 3,000 on the professional tier. Scorecard replays over long windows are the most expensive calls here; cache them.