Protocol

State history

Bucketed state history: per-market CR, leverage, NAVs, supplies, TVL; USDC peg; earn pool. Sparse — absent buckets/markets/fields are omitted, never zero-filled. Pre-2026-07-31 buckets carry at most CR/leverage/supplies/collateral price and no usdcPeg. Market virtual-supply counters (+ USDC peg) sum to the real hyUSD supply.

get/v1/protocol/state

Query parameters

granularity'5m' | '1h' | '1d'

Bucket size (last value in bucket). Max window: 7d at 5m, 90d at 1h, 1000d at 1d.

daysinteger

Trailing window ending today (inclusive). Ignored when from is given. Must fit the granularity's window cap.

fromstring date

Inclusive range start (YYYY-MM-DD). Overrides days.

tostring date

Inclusive range end; default today. Range capped at 1000 days; from > to → 400.

Response

Cache-Control: public, max-age=300.

sincestring date required
untilstring date required
granularity'5m' | '1h' | '1d' required

Example response

{
  "since": "2026-08-19",
  "until": "2026-08-19"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.