get https://api.amberdata.com/defi/lending//metrics/summary
This API provides aggregated insights into the lending protocols.
Protocols Supported
This endpoint supports Aave v2, Aave v3, MakerDAO and Compound v2 on Ethereum and L2s except for Polygon.
Not specifying startDate and endDate
If the startDate and endDate query parameters are not provided, the API will return the data from the previous 180 days (6 months).
Time Range Limit
The maximum duration between endDate and startDate is 366 days (1 year)
Potential Use-Cases
You can use the aggregate data to analyze the health and activity of a lending protocol.
Sample Visualization
The responses from this endpoint can be visualized like this
Response Data
The table below described properties that are found under payload.data
in the response.
Field | Type | Description |
---|---|---|
metrics[index].timestamp | number | string | The timestamp indicating the end of the day. |
metrics[index].totalDepositedUSD | number | The US dollar value of the deposited assets in the protocol at the end of this day. |
metrics[index].totalBorrowedUSD | number | The US dollar value of the borrowed assets in the protocol at the end of this day. |
metrics[index].cumulativeLiquidatedUSD | number | Sum of the liquidated value each day since the protocol's inception. |
metrics[index].cumulativeProtocolRevenueUSD | number | Sum of the revenue earned each day since the protocol's inception. |
metrics[index].cumulativeInterestAccumulatedUSD | number | Sum of the interest accumulated each day since the protocol's inception. |
metrics[index].intervalProtocolRevenueUSD | number | The intra-day US dollar value of the revenue earned by the protocol. |
metrics[index].intervalInterestAccumulatedUSD | number | The intra-day US dollar value of the interest accumulated within the protocol. |
metrics[index].intervalNumberOfDeposits | number | The intra-day number of deposits. |
metrics[index].intervalNumberOfWithdraws | number | The intra-day number of withdraws. |
metrics[index].intervalNumberOfRepays | number | The intra-day number of repays. |
metrics[index].intervalNumberOfBorrows | number | The intra-day number of borrows. |
metrics[index].intervalNumberOfLiquidations | number | The intra-day number of liquidation calls. |
metrics[index].intervalNumberOfUsers | number | The intra-day number of users (EOA's participating in the protocol). |
metrics[index].intervalDepositedUSD | number | The intra-day US dollar value of deposits. |
metrics[index].intervalWithdrawnUSD | number | The intra-day US dollar value of withdraws. |
metrics[index].intervalRepaidUSD | number | The intra-day US dollar value of repays. |
metrics[index].intervalBorrowedUSD | number | The intra-day US dollar value of borrows. |
metrics[index].intervalLiquidatedUSD | number | The intra-day US dollar value of liquidation calls. |
metrics[index].intervalFlashLoanedUSD | number | The intra-day US dollar value of flash loans. |