Aggregate Metrics

Description

Aggregate metrics combine liquidation, borrowing, and repayment activity across all supported lending and borrowing protocols. They track the total value of new debt, repayments, and liquidations, separated between stablecoins and non-stablecoins. This breakdown makes it easier to analyze differences in user behavior and risk profiles across asset types. By aggregating these values at the market level, the metrics provide a clear view of overall lending dynamics in DeFi.

Aggregate Metrics

  • total_lending_liquidations_non_stablecoins_usd - Total USD value of liquidations for non-stablecoin assets
  • total_lending_liquidations_stablecoins_usd - Total USD value of liquidations for stablecoin assets
  • total_lending_new_debt_non_stablecoins_usd - Total USD value of new debt issued in non-stablecoin assets
  • total_lending_new_debt_stablecoins_usd - Total USD value of new debt issued in stablecoin assets
  • total_lending_repayments_non_stablecoins_usd - Total USD value of repayments made in non-stablecoin assets
  • total_lending_repayments_stablecoins_usd - Total USD value of repayments made in stablecoin assets
  • defi_stablecoins_borrowed_usd - Total USD value of stablecoins currently borrowed on DeFi lending and borrowing protocols: Aave v2, Aave v3, Compound, Compound v3 and Spark
  • defi_stablecoins_borrowed_supply_ratio - Ratio of the total USD value of borrowed stablecoins to the daily average market capitalization (total_lending_borrowed_stablecoins_usd / daily_avg_marketcap_usd)

Access

Restricted Access


Measuring Unit

  • Amount in USD
  • Ratio for defi_stablecoins_borrowed_supply_ratio

Data Type

Timeseries Data


Frequency


Latency

On-Chain Latency


Available Assets

Available for ethereum (covering lending and borrowing protocols on Ethereum)


SanAPI

Aggregate Metrics: total_lending_liquidations<_non>_stablecoins_usd, total_lending_new_debt<_non>_stablecoins_usd and total_lending_repayments<_non>_stablecoins_usd

{
getMetric(metric: "total_lending_repayments_stablecoins_usd") {
timeseriesDataJson(
slug: "ethereum"
from: "2026-01-01T00:00:00Z"
to: "2026-01-07T00:00:00Z"
includeIncompleteData: true
interval: "5m"
)
}
}

Stablecoins Borrowed: defi_stablecoins_borrowed_usd

{
getMetric(metric: "defi_stablecoins_borrowed_usd") {
timeseriesDataJson(
slug: "ethereum"
from: "2026-01-01T00:00:00Z"
to: "2026-01-07T00:00:00Z"
includeIncompleteData: true
interval: "5m"
)
}
}

Stablecoins Borrowed to Supply Ratio: defi_stablecoins_borrowed_supply_ratio

{
getMetric(metric: "defi_stablecoins_borrowed_supply_ratio") {
timeseriesDataJson(
slug: "ethereum"
from: "2026-01-01T00:00:00Z"
to: "2026-01-07T00:00:00Z"
includeIncompleteData: true
interval: "1d"
)
}
}