Skip to main content
GET
Returns a bucketed time series for the market, built from on-chain snapshots read through the subgraph. Use it to chart liquidity, utilization, rates and collateral price over time. History is an enhancement rather than a dependency, so an indexing outage never fails the request. The call returns 200 with available: false and a reason instead, and callers should branch on available before reading points.

Path Parameters

string
required
Market ID.

Query Parameters

string
default:"30d"
Window to cover. One of 24h, 7d, 30d, 90d, 1y, all. Any other value is rejected with VALIDATION_ERROR.
string
Bucket size, hour or day. Defaults to the natural resolution for the range: hour for 24h and 7d, day for everything else.

Response Fields

object
Buckets exist only where something happened. Gaps are filled by carrying the previous bucket forward, which is exact for pool state because balances genuinely do not change between mutations.

Error Codes