Squidlor
Loading docs

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

API overview

The public read API. API root, chain addressing, pair formatting, caching, and the optional API key.

The aggregator-api service exposes Squidlor's on-chain oracle state as JSON over HTTPS. It is read-only, works without a key, and reads the same contract state your own eth_call would. It serves Arc. The oracle also runs on Arbitrum One, Base, Hemi, Robinhood Chain, Torus and Torus Testnet, which you read on-chain; see supported networks.

API root

https://api.squidlor.com/aggregator

Every path below is relative to that. So /v1/feeds means https://api.squidlor.com/aggregator/v1/feeds.

Running the service yourself, it listens on port 5010 by default and the root is just the host.

Authentication

Optional. Every endpoint works without a key: the data is public on-chain state and the API is a convenience layer over it. That path is supported and is not going away.

A key raises your limits and lets you see your own usage:

Requests/minuteHistory lookback
No key30 (per IP)30 days
Free key30030 days
Pro3,000unlimited
Shell
curl -H "Authorization: Bearer sq_live_..." \
  https://api.squidlor.com/aggregator/v1/arc/feeds/BTC_USD/value

Get one at build.squidlor.com. Full detail in authentication and rate limits; error codes in errors & limits.

Two ways to address a chain

Chain-scoped paths (preferred). The chain is part of the path:

Shell
curl https://api.squidlor.com/aggregator/v1/arc/feeds
curl https://api.squidlor.com/aggregator/v1/5042/feeds

:chain accepts either the slug or the numeric chain ID of the configured network:

SlugChain ID
arc5042, Arc mainnet

Arc Testnet (5042002) is not served: it returns chain not supported. See building against testnet.

Legacy query-string paths, still mounted for backwards compatibility:

Shell
curl "https://api.squidlor.com/aggregator/v1/feeds?chainId=5042"

These default to the configured chain when chainId is omitted. New integrations should use the chain-scoped form: a feed is then addressable as (chain, pair) with no query string, which is what the SDK and frontends use.

Note

An unrecognised slug returns 404. Earlier multi-chain builds fell back to a default chain silently, so a typo returned another chain's prices with that chain's chainId; checking chainId in the response is still a good habit.

Pair formatting

A pair contains a slash, which cannot appear in a path segment. Substitute an underscore:

PairIn a URL
BTC/USDBTC_USD
NVDA/USDNVDA_USD

Pairs are case-insensitive on the way in and normalized to uppercase in responses.

Endpoints

EndpointPurpose
GET /v1/:chain/feedsList every configured feed with a summary of each
GET /v1/:chain/feeds/:pairFull feed state, including every source
GET /v1/:chain/feeds/:pair/valueJust the number
GET /v1/:chain/feeds/:pair/historySampled median series
GET /v1/:chain/feeds/:pair/ohlcOHLC candles
GET /v1/:chain/feeds/:pair/auditPer-source audit trail
GET /v1/:chain/feeds/:pair/constituentsThe live quotes behind Squidlor's own equity leg, and what it would publish now
GET /v1/:chain/providers, /providers/:providerProvider scorecards: fresh rate and deviation per source over any window
GET /v1/:chain/feeds/:pair/atPoint-in-time read, nearest recorded observation with its distance
GET /v1/:chain/feeds/:pair/at/proofMerkle proof of a past observation against an on-chain root
GET /v1/prices, /v1/prices/:symbol, /v1/prices/streamRealtime off-chain medians, 200 symbols, one tick a second
GET /v1/daily…Daily price book, one price per asset per 00:00 UTC, permanent
GET /healthService liveness
GET /Endpoint index

Caching and freshness

Responses are served from an in-memory TTL cache, 10 seconds by default. Every response that reads live chain state carries a cachedAt timestamp so you can tell how old the read is.

This matters for how you interpret the two timestamps in a response:

  • cachedAt: when the API last read the chain.
  • updatedAt / freshestUpdatedAt: when the underlying data was last published on-chain by a source.

They answer different questions. A response can be freshly cached (cachedAt one second ago) and carry data that is hours old (updatedAt), which is exactly what you would see on an equity feed over a weekend.

Important

Never use this API as the price input to on-chain logic. It is an HTTP endpoint, it can be cached, and it can be man-in-the-middled, none of which is true of an eth_call. For contracts, read the aggregator directly. This API is for dashboards, bots, analytics, and agents.

History requires a database

The history, ohlc, and audit endpoints only work when the API instance is configured with MongoDB. Without it, the service runs in pure live-read mode and those three endpoints return 503:

JSON
{ "message": "history not enabled: set MONGODB_URI for the aggregator-api" }

The live-read endpoints work either way. See history & OHLC.