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.

FieldTypeDescription
metadata.blockchainIdstringHuman readable name of the blockchain the metrics are aggregated from.
metadata.protocolsstring[]The list of protocols that the metrics are aggregated across.
data.metrics[index].timestampnumber | stringThe timestamp indicating the end of the day.
data.metrics[index].depositedUSDnumberThe intra-day/hour, US dollar value of this stablecoin's deposits across multiple protocols.
data.metrics[index].borrowedUSDnumberThe intra-day/hour, US dollar value of this stablecoin's borrows across multiple protocols.
data.metrics[index].withdrawnUSDnumberThe intra-day/hour, US dollar value of this stablecoin's withdraws across multiple protocols.
data.metrics[index].repaidUSDnumberThe intra-day/hour, US dollar value of this stablecoin's repays across multiple protocols.
data.metrics[index].liquidatedUSDnumberThe intra-day/hour, US dollar value of this stablecoin's liquidations across multiple protocols.
data.metrics[index].liquidatedProfitUSDnumberThe intra-day/hour, US dollar value of this stablecoin's liquidation profits across multiple protocols.
data.metrics[index].flashLoanedUSDnumberThe intra-day/hour, US dollar value of this stablecoin's flashloans across multiple protocols.
data.metrics[index].interestEarnedUSDnumberThe intra-day/hour, US dollar value of the interest earned by lenders for lending the stablecoin across multiple protocols.
data.metrics[index].interestPaidUSDnumberThe intra-day/hour, US dollar value of the interest generated to the protocol for lending the stablecoin across multiple protocols.
data.metrics[index].numberOfDepositsnumberThe intra-day/hour, deposits of this stablecoin across multiple protocols.
data.metrics[index].numberOfBorrowsnumberThe intra-day/hour, borrows of this stablecoin across multiple protocols.
data.metrics[index].numberOfWithdrawsnumberThe intra-day/hour, withdraws of this stablecoin across multiple protocols.
data.metrics[index].numberOfRepaysnumberThe intra-day/hour, repays of this stablecoin across multiple protocols.
data.metrics[index].numberOfLiquidationsnumberThe intra-day/hour, liquidations of this stablecoin across multiple protocols.
data.metrics[index].depositRationumberThe intra-day/hour, ratio of deposits of this stablecoin compared to deposits of all assets across multiple protocols.
data.metrics[index].borrowRationumberThe intra-day/hour, ratio of borrows of this stablecoin compared to borrows of all assets across multiple protocols.
data.metrics[index].liquidationRationumberThe intra-day/hour, ratio of liquidations of this stablecoin compared to liquidations of all assets across multiple protocols.
data.metrics[index].totalDepositedUSDnumberThe US dollar value of all deposits of this stablecoin across multiple protocols at the end of this day or hour.
data.metrics[index].totalCollateralUSDnumberThe 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].totalBorrowedUSDnumberThe US dollar value of all borrows of this stablecoin across multiple protocols at the end of this day or hour.
data.metrics[index].cumulativeLiquidatedUSDnumberSum of the liquidated value since the beginning of time up to the end of this day or hour.
data.metrics[index].cumulativeLiquidatedProfitUSDnumberSum of the liquidated profit value since the beginning of time up to the end of this day or hour.
data.metrics[index].cumulativeInterestEarnedUSDnumberSum of the interest earned value since the beginning of time up to the end of this day or hour.
data.metrics[index].totalUtilizationRationumbertotalBorrowedUSD / totalDepositedUSD at the end of this day or hour.

This is a RISK metric that indicates how much of this stablecoin is being borrowed compared to the available deposits of this stablecoin.
data.metrics[index].totalDepositRationumberThe ratio of totalDepositedUSD of this stablecoin compared to the sum of totalDepositedUSD of all assets across multiple protocols.

This is a RISK metric that indicates how much of all assets deposited is concentrated in a single stablecoin.
data.metrics[index].totalBorrowRationumberThe ratio of totalBorrowedUSD of this stablecoin compared to the sum of totalBorrowedUSD of all assets across multiple protocols.

This is a RISK metric that indicates how much of all assets borrowed is concentrated in a single stablecoin.
Language
Authorization
Header
Click Try It! to start a request and see the response here!