DocsAPI v1Get API key

Delivery

Webhooks

Paid plans can receive events instead of polling: we send a POST to your HTTPS address the moment something happens. Add the address and pick events in the developer console.

Plans

PlanEventsAddresses
Builder3: flows.day_complete, flows.day_final, flows.record1
Commercialall 9up to 5

Events

EventWhen it fires
flows.fund_reportedA fund publishes a new or corrected daily figure
flows.day_completeEvery fund has a figure for the day; the total is preliminary
flows.day_finalThe day is settled: 14:00 UTC on the second business day
flows.recordA day sets a record inflow or outflow
fund.launchedA new spot crypto ETF starts trading
fund.closedA fund closes
filing.newA new spot crypto ETF filing appears at the SEC
filing.status_changedA tracked filing changes status
cefi.zone_changedThe CEFI index moves into another zone

Preliminary or final

  • flows.day_complete comes first, with status: "preliminary". The number can still change.
  • flows.day_final comes later, with status: "final", the settled total and the difference from the early figure.
  • If a figure changes after that, flows.day_final is sent again with a higher revision.

Subscribe to the first for speed, to the second for accuracy, or to both.

What a delivery looks like

A JSON POST with the body { id, type, createdAt, data } and three headers:

HeaderValue
X-CryptoETF-EventEvent type, e.g. flows.day_final
X-CryptoETF-DeliveryDelivery id
X-CryptoETF-Signaturet=<unix seconds>,v1=<hex>

Verifying the signature

v1 is HMAC-SHA256 of <t>.<raw body> with your endpoint secret. Compute it over the body exactly as received, before parsing, and reject requests older than five minutes:

JavaScript
import crypto from 'node:crypto';

// rawBody: the request body exactly as received, before JSON.parse
function verify(rawBody, header, secret) {
  const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
  const hex = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  return crypto.timingSafeEqual(Buffer.from(hex), Buffer.from(v1));
}

Responses and retries

  • Reply with any 2xx within 10 seconds.
  • Failed deliveries are retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours.
  • An address that fails for 24 hours is switched off. Switch it back on in the developer console.