Skip to main content
GET
/
metrics
/
v2
/
protocols
/
{protocolIdentifier}
/
metrics
/
lending
/
time-series
/
{granularity}
Get lending timeseries metric
curl --request GET \
  --url https://api.messari.io/metrics/v2/protocols/{protocolIdentifier}/metrics/lending/time-series/{granularity} \
  --header 'X-Messari-API-Key: <api-key>'
{
  "error": null,
  "data": {
    "points": [
      [
        1748736000,
        40826647064.15183,
        8659,
        1795405.4616030846,
        1532364.8272672133
      ],
      [
        1748822400,
        41448076919.110435,
        8616,
        1493727.209050874,
        1265263.6361791617
      ],
      [
        1748908800,
        41541571147.85359,
        9621,
        1512826.0373090645,
        1285972.0294132316
      ],
      [
        1748995200,
        41869739639.04037,
        9849,
        1517935.5337322194,
        1294299.7982766132
      ],
      [
        1749081600,
        39659601254.45914,
        12040,
        2474388.775981177,
        2152103.567043467
      ]
    ]
  },
  "metadata": {
    "pointSchemas": [
      {
        "name": "Timestamp",
        "slug": "time",
        "description": "Timestamp of the data point.",
        "is_timestamp": true
      },
      {
        "name": "TVL 24 Hour USD",
        "slug": "tvl24HourUsd",
        "description": "Total Value Locked in USD.",
        "is_timestamp": false
      },
      {
        "name": "Active Addresses 24 Hour",
        "slug": "activeAddresses24Hour",
        "description": "Number of unique addresses interacting with the protocol.",
        "is_timestamp": false
      },
      {
        "name": "Fees 24 Hour USD",
        "slug": "fees24HourUsd",
        "description": "Total fees generated by the protocol in USD.",
        "is_timestamp": false
      },
      {
        "name": "Fees Supply Side 24 Hour USD",
        "slug": "feesSupplySide24HourUsd",
        "description": "Fees paid to liquidity providers in USD.",
        "is_timestamp": false
      }
    ],
    "granularity": "1d"
  }
}

Authorizations

X-Messari-API-Key
string
header
required

Path Parameters

protocolIdentifier
string
default:aave
required

Protocol identifier (ID or slug)

Example:

"aave"

granularity
enum<string>
default:1d
required

Granularity

Available options:
1m,
5m,
15m,
30m,
1h,
6h,
1d,
1w,
30d,
1q,
1y
Example:

"1d"

Query Parameters

start
string
default:2025-06-01T00:00:00Z

Time range start

Example:

"2025-06-01T00:00:00Z"

end
string
default:2025-06-07T00:00:00Z

Time range end

Example:

"2025-06-07T00:00:00Z"

Response

Default response

data
object
required
error
string
metadata
object
I