# Lending Rate History

> Coming soon, upon request — this feature is turned on for your tenant by the Aurea team. [Contact us](https://www.aureahub.com/contact)

The pool's yearly rate over the last 90 days, for a chart.

## Overview

- Up to 30 points, one every 3 days, oldest first, for the first lending chain of the network (Gnosis Chain first; [Chain and Wallet](https://docs.aureahub.com/docs/guide-lending.md)).
- `timestamp` in Unix seconds, worked out from the chain's block times, so approximate; `apy` in percent, compounded, rounded to two decimals. A point that cannot be read is left out.
- No lending chain on the network: `"history": []`.

## Endpoint

### `GET /v1/lending/rate-history`

Authentication: bearer token required.

The pool's rate over the last 90 days. Needs the user's access token and the tenant signature (or a server token).

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `isTestnet` | string | no | `true` or `false` (default); any other value answers `400` |

**Responses**

`200` OK

```json
{
  "history": [
    { "timestamp": 1783125600, "apy": 2.31 },
    { "timestamp": 1783384800, "apy": 2.38 }
  ]
}
```

**Example request**

```bash
curl "https://api.aureahub.com/v1/lending/rate-history?isTestnet=false" \
  -H "Authorization: Bearer USER_ACCESS_TOKEN" \
  -H "x-tenant-api-key: YOUR_API_KEY" \
  -H "x-timestamp: UNIX_SECONDS" \
  -H "x-signature: HMAC_SHA256_HEX"
```

---

Web version: https://docs.aureahub.com/#lending-rate-history
