Skip to main content
TVL, active loans, collateral, fees and revenue, in USD. One row per thing per day, at four grains: project, app, market and reserve. TVL, active loans and collateral are balances, not flows. They add up across reserves, markets, apps and chains, but never across days: a week’s figure is the last day in it, and adding seven days counts the same balance seven times. Fees and revenue are flows and add up both ways. Metric definitions has the rule in full.

Tables

A tab per grain. Coverage shows which apps report which measure.
One row per project per day.
TableValue columnWhat it holds
metrics_projects.tvl_dailytvlTotal value locked.
metrics_projects.active_loans_dailyactive_loansUSD value of open loans (outstanding borrows).
metrics_projects.collateral_dailycollateralUSD value of deposits actively backing an open loan.
metrics_projects.fees_dailyfeesTotal fees paid by users.
metrics_projects.fees_supply_side_dailyfees_supply_sideFees paid out to the supply side.
metrics_projects.revenue_dailyrevenueFees retained by the protocol.

Sample queries

Each measure is its own table, so a row with both is a join on lending_market_id and timestamp, bounded on every side. Join the loans side with left join: a market can hold value with no loans open against it.