# Get lending snapshots

Endpoint reference for the 1delta API. Index: https://docs.1delta.io/llms.txt · every endpoint: https://docs.1delta.io/llms-full.txt

---

### GET /v1/data/snapshots

- operationId: `get-lending-snapshots`
- docs: https://docs.1delta.io/1delta-api/get-lending-snapshots/
- markdown: https://docs.1delta.io/1delta-api/get-lending-snapshots.md
- tags: Lending (Data)

Get lending snapshots

Returns historical lending data time series for specified markets.

**Parameters**

| Name | 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`** — Lending snapshot data

| 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**

```json
{
  "success": true,
  "data": {
    "markets": 1,
    "totalPoints": 1,
    "series": {}
  }
}
```

**Response `400`** — Validation error

**Response `429`** — Rate limited. Unauthenticated callers share a per-IP budget; send an `x-api-key` header to lift it. Retry with exponential backoff.

**Response `500`** — Unexpected server error. Safe to retry with backoff.

**Response `502`** — 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.
