Stablecoins in DeFi Lending - Aggregate Insights

Easily analyze a stablecoin's metrics across multiple DeFi lending protocols.

👍

Bulk Data

These metrics are available at scale in Apache Parquet format with Amberdata's S3 packages.

Sample files are available for download here. If interested, please contact Amberdata to learn more.

📘

Supported Protocols

We aggregate metrics across the following protocols

  • aavev2
  • aavev3
  • makerdao
  • compoundv2
  • compoundv3

📘

Not specifying startDate and endDate

If the startDate and endDate query parameters are not provided, the API will return the data from the

  • The previous 186 days (6 months) if timeInterval = days
  • The previous 7 days if timeInterval = hours

🚧

Time Range Limit

The maximum time range (difference between endDate and startDate) is

  • 366 days (1 year) if timeInterval = days
  • 31 days (1 year) if timeInterval = hours

Potential Use-Cases

You can use the aggregate data to analyze the health and activity of the stablecoin.

Sample Visualization

The responses from this endpoint can be visualized like this

Response Data

The table below described properties that are found under payload in the response.

Field

Type

Description

metadata.blockchainId

string

Human readable name of the blockchain the metrics are aggregated from.

metadata.protocols

string[]

The list of protocols that the metrics are aggregated across.

data.metrics[index].timestamp

number | string

The timestamp indicating the end of the day.

data.metrics[index].depositedUSD

number

The intra-day/hour, US dollar value of this stablecoin's deposits across multiple protocols.

data.metrics[index].borrowedUSD

number

The intra-day/hour, US dollar value of this stablecoin's borrows across multiple protocols.

data.metrics[index].withdrawnUSD

number

The intra-day/hour, US dollar value of this stablecoin's withdraws across multiple protocols.

data.metrics[index].repaidUSD

number

The intra-day/hour, US dollar value of this stablecoin's repays across multiple protocols.

data.metrics[index].liquidatedUSD

number

The intra-day/hour, US dollar value of this stablecoin's liquidations across multiple protocols.

data.metrics[index].liquidatedProfitUSD

number

The intra-day/hour, US dollar value of this stablecoin's liquidation profits across multiple protocols.

data.metrics[index].flashLoanedUSD

number

The intra-day/hour, US dollar value of this stablecoin's flashloans across multiple protocols.

data.metrics[index].interestEarnedUSD

number

The intra-day/hour, US dollar value of the interest earned by lenders for lending the stablecoin across multiple protocols.

data.metrics[index].interestPaidUSD

number

The intra-day/hour, US dollar value of the interest generated to the protocol for lending the stablecoin across multiple protocols.

data.metrics[index].numberOfDeposits

number

The intra-day/hour, deposits of this stablecoin across multiple protocols.

data.metrics[index].numberOfBorrows

number

The intra-day/hour, borrows of this stablecoin across multiple protocols.

data.metrics[index].numberOfWithdraws

number

The intra-day/hour, withdraws of this stablecoin across multiple protocols.

data.metrics[index].numberOfRepays

number

The intra-day/hour, repays of this stablecoin across multiple protocols.

data.metrics[index].numberOfLiquidations

number

The intra-day/hour, liquidations of this stablecoin across multiple protocols.

data.metrics[index].depositRatio

number

The intra-day/hour, ratio of deposits of this stablecoin compared to deposits of all assets across multiple protocols.

data.metrics[index].borrowRatio

number

The intra-day/hour, ratio of borrows of this stablecoin compared to borrows of all assets across multiple protocols.

data.metrics[index].liquidationRatio

number

The intra-day/hour, ratio of liquidations of this stablecoin compared to liquidations of all assets across multiple protocols.

data.metrics[index].totalDepositedUSD

number

The US dollar value of all deposits of this stablecoin across multiple protocols at the end of this day or hour.

data.metrics[index].totalCollateralUSD

number

The US dollar value of this stablecoin that is available as collateral across multiple protocols at the end of this day or hour.

data.metrics[index].totalBorrowedUSD

number

The US dollar value of all borrows of this stablecoin across multiple protocols at the end of this day or hour.

data.metrics[index].cumulativeLiquidatedUSD

number

Sum of the liquidated value since the beginning of time up to the end of this day or hour.

data.metrics[index].cumulativeLiquidatedProfitUSD

number

Sum of the liquidated profit value since the beginning of time up to the end of this day or hour.

data.metrics[index].cumulativeInterestEarnedUSD

number

Sum of the interest earned value since the beginning of time up to the end of this day or hour.

data.metrics[index].totalUtilizationRatio

number

totalBorrowedUSD / totalDepositedUSD at the end of this day or hour.

This is aRISK metric that indicates how much of this stablecoin is being borrowed compared to the available deposits of this stablecoin.

data.metrics[index].totalDepositRatio

number

The ratio of totalDepositedUSD of this stablecoin compared to the sum of totalDepositedUSD of all assets across multiple protocols.

This is aRISK metric that indicates how much of all assets deposited is concentrated in a single stablecoin.

data.metrics[index].totalBorrowRatio

number

The ratio of totalBorrowedUSD of this stablecoin compared to the sum of totalBorrowedUSD of all assets across multiple protocols.

This is aRISK metric that indicates how much of all assets borrowed is concentrated in a single stablecoin.

Language
Credentials
Header
Click Try It! to start a request and see the response here!