Get lending snapshots
GET/v1/data/snapshots
Returns historical lending data time series for specified markets.
Plain-text reference — GET /v1/data/snapshots
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
marketUids | query | string[] | yes | Market UIDs (repeatable) |
fields | query | depositRate, variableBorrowRate, stableBorrowRate, totalDeposits, totalDebtStable, totalDebt, … (11 values)[] | no | Fields to include in each snapshot point (repeatable) |
start | query | string | no | ISO start date |
end | query | string | no | ISO end date |
Response 200
| Field | Type | Description |
|---|---|---|
success | True | |
data | object | |
data.markets | integer | Number of distinct markets |
data.totalPoints | integer | Total data points across all markets |
data.series | object | Map of marketUid → array of {dataTs, ...fields} |
actions | null |
Example response
{
"success": true,
"data": {
"markets": 1,
"totalPoints": 1,
"series": {}
}
}
Request
Responses
- 200
- 400
- 429
- 500
- 502
Lending snapshot data
Validation error
Rate limited. Unauthenticated callers share a per-IP budget; send an x-api-key header to lift it. Retry with exponential backoff.
Unexpected server error. Safe to retry with backoff.
An upstream data source or protocol origin failed (error.code is ORIGIN_FAILED). error.details carries the per-origin status. This is also what a missing or malformed required parameter currently returns, rather than a 400.