Squidlor
Loading docs

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

Daily prices

One price per asset per 00:00 UTC boundary, kept permanently: every streamed token, every tracked stock, and every on-chain feed.

Every other price endpoint answers "now" or "recently". This one is the long-run record: a single price for every asset we track, taken at each 00:00 UTC boundary, and kept indefinitely.

EndpointCadenceRetentionCovers
/v1/prices1 secondnone (live only)streamed tokens
/v1/:chain/feeds/:pair/history~60 seconds90 dayson-chain pairs
/v1/daily/:symbol1 daypermanenttokens, stocks, on-chain pairs

Warning

Requires the API instance to have MONGODB_URI configured. Without it these endpoints return 503 DAILY_UNAVAILABLE; live reads are unaffected.

Asset classes

A row belongs to exactly one class, and the class decides how the price was measured.

assetClasssymbolMeasured as
cryptoBTC, SOLmedian across live venue WebSockets, captured at the boundary
equityNVDA, TSLAmedian of independent quote APIs, captured at the boundary
onchainBTC/USDthe on-chain aggregator's answer at the boundary

crypto and onchain can both hold the same asset. They are two different measurements (the off-chain market, and the value contracts actually read, which only updates on a 2% deviation or the 55-minute heartbeat), so they are stored and returned separately rather than merged.

The same pair on two chains is likewise two rows, not one: rows stored from earlier chains keep their own chainId and are not merged into Arc's.

Reading source before you settle

Every row says where its number came from. This matters more than the number for anything that resolves money.

sourceMeaning
price-streamour venue median, observed at the boundary
equity-medianour quote-API median, observed at the boundary
onchain:<chainId>the on-chain answer, read at the boundary
feed-roundrecovered afterwards from the nearest 60-second history sample
backfill:<vendor>an external daily candle, seeded for days that predate our recording

offsetMs is how far the observation sits from the boundary: 0 for a backfilled candle (the vendor's daily bucket is the boundary), a second or two for a live capture, and hours for a snapshot taken by hand after a missed midnight. A better source never gets overwritten by a worse one, whichever runs later.

Coverage

HTTP
GET /v1/daily/coverage

Call this before charting a series. A series read returns the rows it has, so a range with holes looks identical to a shorter range; this is where the holes are visible.

Shell
curl "https://api.squidlor.com/aggregator/v1/daily/coverage"
JSON
{
  "classes": [
    { "assetClass": "crypto", "rows": 41230, "symbolCount": 203, "firstDay": "2020-01-01", "lastDay": "2026-08-27" },
    { "assetClass": "equity", "rows": 9760, "symbolCount": 4, "firstDay": "2020-01-01", "lastDay": "2026-08-27" },
    { "assetClass": "onchain", "rows": 1680, "symbolCount": 14, "firstDay": "2026-08-01", "lastDay": "2026-08-27" }
  ],
  "recentGaps": { "window": "2026-07-28..2026-08-27", "missingDays": [] }
}

Days before a class's firstDay are pre-history, not gaps, and are never reported as missing.

One day, every asset

HTTP
GET /v1/daily
ParameterDefaultMeaning
daylatest day heldYYYY-MM-DD, an ISO timestamp, or a unix time.
classallcrypto, equity or onchain.
chainallFor class=onchain: arc, or its chain id.
symbolsallComma-separated, e.g. BTC,ETH,NVDA.
limit1000Maximum rows.

It defaults to the most recent day held rather than today, so a call made before tonight's capture does not return an empty board for a boundary that has not happened yet.

Shell
curl "https://api.squidlor.com/aggregator/v1/daily?day=2026-08-27&class=onchain&chain=arc"
JSON
{
  "day": "2026-08-27",
  "at": "2026-08-27T00:00:00.000Z",
  "count": 5,
  "prices": [
    {
      "assetClass": "onchain",
      "symbol": "NVDA/USD",
      "quote": "USD",
      "day": "2026-08-27",
      "at": "2026-08-27T00:00:00.000Z",
      "observedAt": "2026-08-27T00:00:01.204Z",
      "offsetMs": 1204,
      "price": 221.125,
      "priceRaw": "22112500000",
      "decimals": 8,
      "source": "onchain:5042",
      "chainId": 5042,
      "contributorCount": 3
    }
  ]
}

One asset over time

HTTP
GET /v1/daily/:symbol
ParameterDefaultMeaning
classallPick one measurement rather than mixing them.
chain-Required when a pair is stored for more than one chain.
from / to-YYYY-MM-DD, ISO timestamp or unix time. Inclusive.
limit400Newest N rows in range, returned oldest-first.

:symbol is a ticker (BTC, NVDA) for off-chain rows or a pair for on-chain ones, written with _ for /, as in BTC_USD. With class=onchain, a bare ticker is read as TICKER/USD.

Shell
curl "https://api.squidlor.com/aggregator/v1/daily/BTC?from=2026-08-25"
JSON
{
  "symbol": "BTC",
  "assetClass": "crypto",
  "count": 3,
  "from": "2026-08-25",
  "to": "2026-08-27",
  "prices": [
    { "day": "2026-08-25", "price": 78992.76, "source": "price-stream", "offsetMs": 812 },
    { "day": "2026-08-26", "price": 78539.13, "source": "price-stream", "offsetMs": 745 },
    { "day": "2026-08-27", "price": 79023.75, "source": "price-stream", "offsetMs": 903 }
  ]
}

A pair published on several chains returns 400 AMBIGUOUS_CHAIN listing them, rather than interleaving two chains into what looks like one line:

JSON
{
  "code": "AMBIGUOUS_CHAIN",
  "message": "BTC/USD is stored for 2 chains (5042, 1). Add ?chain= to pick one.",
  "chains": [5042, 1]
}

One asset, one day

HTTP
GET /v1/daily/:symbol/:day

The settlement shape: exact day in, one price out, 404 NO_SNAPSHOT when nothing is stored for it. It never substitutes a neighbouring day; a settlement that silently used the wrong day is worse than one that failed. When you want the nearest observation with the distance attached instead, use /at.

Shell
curl "https://api.squidlor.com/aggregator/v1/daily/NVDA/2026-08-27"
JSON
{
  "symbol": "NVDA",
  "day": "2026-08-27",
  "at": "2026-08-27T00:00:00.000Z",
  "price": {
    "assetClass": "equity",
    "symbol": "NVDA",
    "price": 209.66,
    "source": "equity-median",
    "contributors": ["yahoo", "nasdaq", "finnhub", "twelvedata"],
    "session": "2026-08-26",
    "sessionInferred": true
  }
}

Where the pre-history comes from

Days that predate our own recording are seeded once from free, keyless public endpoints, then never touched again; a captured observation always outranks a backfilled candle. Measured on 2026-08-27:

SourceAuthDepth reachedServed
data-api.binance.vision klinesnone2017-08-17 (BTCUSDT listing)208 of the top 250 tokens
Coinbase Exchange candlesnone2015-07-20 (BTC-USD listing)76 tokens, incl. the pre-2017 majors
Kraken OHLCnonelast 720 candles only38 tail tokens nothing else lists
Yahoo chartnone1990 and earlierevery US ticker tried

For crypto the price at 00:00 UTC is the daily candle's open, identically the previous day's close. The primary venue is used wherever it has data and a later venue only fills days it never listed, so BTC reaches 2015-07-20 instead of stopping at Binance's 2017 start. Each row names the venue that supplied it, so a handover is visible in the data rather than hidden behind one label.

One full seeding run, measured end to end:

250 tokens,  2015-01-01 → today   302,609 rows   7m36s   16MB data + 20MB indexes
 50 stocks,  1990-01-01 → today   569,375 rows   1m09s   37MB data + 29MB indexes

Stocks and the 00:00 UTC boundary

00:00 UTC is 19:00 or 20:00 ET depending on daylight saving: after the US close, before the next open. So an equity row is the previous session's close, and session names which session that was:

  • A weekday boundary carries the day before's close.
  • Saturday, Sunday and Monday boundaries all carry Friday's close.
  • A holiday boundary repeats the last session that traded.

sessionInferred: true means the session was worked out from the calendar (weekends only; there is no holiday table), rather than reported by the data source. Crypto has no sessions: 00:00 UTC is a genuine daily open, and the value is the market at that instant.

Warning

Backfilled equity rows are split-adjusted. AAPL's January 1990 sessions come back near $0.39, not the ~$35 they printed at the time. That is the right series to chart and the wrong number to quote as a historical price. It also means a future split changes what a re-run backfill returns for old days, while rows captured live at the boundary stay nominal, so a series spanning a split can carry a step that is the adjustment, not the market. Rows we captured ourselves (source: equity-median) are never re-adjusted.

Plan limits

from, to and :day are subject to the same history lookback as /history and /ohlc. A clamped range comes back with X-History-Clamped: true and X-History-Lookback-Days; a single day outside it returns 403 BEYOND_LOOKBACK. See Errors & limits.