This API provides aggregated insights into the asset markets across various lending protocols.
Not specifying startDate and endDate
If the startDate and endDate query parameters are not provided, the API will return the data from the previous 60 days.
This endpoint supports Aave v2, Aave v3, Compound v2 and MakerDAO.
These aggregations are multi-chain across the networks we support excluding Polygon.
USDC on MakerDAO
MakerDAO mints DAI with deposited USDC. In MakerDAO all borrowing activity, regardless of collateral is in DAI. Hence all deposited USDC is effectively borrowed and why
Asset Market on MakerDAO
In MakerDAO, a single asset,
WETHcan have multiple markets e.g. ETH-A, ETH-B, ETH-C etc. with different interest rates.
When calling the endpoint with just the asset like this
/defi/lending/makerdao/assets/WETH/metrics/summarythe endpoint will return the combined aggregates across all the markets for the specified asset.
However, you can get the aggregates for an individual market of an asset in MakerDAO with the
marketquery parameter like this
marketquery parameter is ONLY supported for MakerDAO.
You can use the aggregate data to analyze the health and activity of an asset on a protocol.
The responses from this endpoint can be visualized like this
The table below described properties that are found under
payload.data in the response.
|metrics[index].timestamp||The timestamp indicating the end of the day.|
|metrics[index].totalDepositedUSD||The US dollar value of the deposited assets in the protocol at the end of this day.|
|metrics[index].totalBorrowedUSD||The US dollar value of the borrowed assets in the protocol at the end of this day.|
|metrics[index].cumulativeLiquidatedUSD||Sum of the liquidated value each day since the protocol's inception.|
|metrics[index].intervalDepositedUSD||The intra-day US dollar value of deposits.|
|metrics[index].intervalWithdrawnUSD||The intra-day US dollar value of withdraws.|
|metrics[index].intervalRepaidUSD||The intra-day US dollar value of repayments.|
|metrics[index].intervalBorrowedUSD||The intra-day US dollar value of borrows.|
|metrics[index].intervalLiquidatedUSD||The intra-day US dollar value of liquidation calls.|
|metrics[index].intervalFlashLoanedUSD||The intra-day US dollar value of flash loans.|