Lending Protocol Summary Metrics

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.

FieldTypeDescription
metrics[index].timestampnumber | stringThe timestamp indicating the end of the day.
metrics[index].totalDepositedUSDnumberThe US dollar value of the deposited assets in the protocol at the end of this day.
metrics[index].totalBorrowedUSDnumberThe US dollar value of the borrowed assets in the protocol at the end of this day.
metrics[index].cumulativeLiquidatedUSDnumberSum of the liquidated value each day since the protocol's inception.
metrics[index].cumulativeProtocolRevenueUSDnumberSum of the revenue earned each day since the protocol's inception.
metrics[index].cumulativeInterestAccumulatedUSDnumberSum of the interest accumulated each day since the protocol's inception.
metrics[index].intervalProtocolRevenueUSDnumberThe intra-day US dollar value of the revenue earned by the protocol.
metrics[index].intervalInterestAccumulatedUSDnumberThe intra-day US dollar value of the interest accumulated within the protocol.
metrics[index].intervalNumberOfDepositsnumberThe intra-day number of deposits.
metrics[index].intervalNumberOfWithdrawsnumberThe intra-day number of withdraws.
metrics[index].intervalNumberOfRepaysnumberThe intra-day number of repays.
metrics[index].intervalNumberOfBorrowsnumberThe intra-day number of borrows.
metrics[index].intervalNumberOfLiquidationsnumberThe intra-day number of liquidation calls.
metrics[index].intervalNumberOfUsersnumberThe intra-day number of users (EOA's participating in the protocol).
metrics[index].intervalDepositedUSDnumberThe intra-day US dollar value of deposits.
metrics[index].intervalWithdrawnUSDnumberThe intra-day US dollar value of withdraws.
metrics[index].intervalRepaidUSDnumberThe intra-day US dollar value of repays.
metrics[index].intervalBorrowedUSDnumberThe intra-day US dollar value of borrows.
metrics[index].intervalLiquidatedUSDnumberThe intra-day US dollar value of liquidation calls.
metrics[index].intervalFlashLoanedUSDnumberThe intra-day US dollar value of flash loans.
Language
Authorization
Header
Click Try It! to start a request and see the response here!