Tables
A tab per grain. Coverage shows which apps report which measure.- Project
- App
- Market
- Reserve
One row per project per day.
| Table | Value column | What it holds |
|---|---|---|
metrics_projects.tvl_daily | tvl | Total value locked. |
metrics_projects.active_loans_daily | active_loans | USD value of open loans (outstanding borrows). |
metrics_projects.collateral_daily | collateral | USD value of deposits actively backing an open loan. |
metrics_projects.fees_daily | fees | Total fees paid by users. |
metrics_projects.fees_supply_side_daily | fees_supply_side | Fees paid out to the supply side. |
metrics_projects.revenue_daily | revenue | Fees retained by the protocol. |
Sample queries
- One market's series
- Every protocol, ranked
- One app across chains
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.