crosschain.lending.metrics_daily table contains daily aggregated metrics for lending platforms, grouped by project and protocol across every chain and supported protocols Allium covers. Each chain’s rows are also in its own <chain>.lending.metrics_daily table.
This table provides a high-level overview of lending activity across protocols, including outstanding loans, available liquidity, and total supplied amounts in USD.
Table Details
| Property | Value |
|---|---|
| Table Name | crosschain.lending.metrics_daily |
| Table Status | Production-Ready |
Chain Coverage
| Table | Chains |
|---|---|
crosschain.lending.metrics_daily | 35 chains (1 standalone)In crosschainSolana, Aptos, Sui, Arbitrum, Arc, Avalanche, Base, BNB Smart Chain, Celo, Ethereum, Gnosis, HyperEVM, Ink, Katana, Linea, Mantle, MegaETH 🌱, Monad, Optimism, Plasma, Plume, Polygon, Robinhood, Scroll, Soneium, Sonic, Stable, Tempo, TRON, Unichain, World Chain, X Layer, ZKsync, Stellar Standalone Sei |
Sample Query
Finding the daily metrics for Aave across all protocol versions on Ethereum:select
date,
project,
protocol,
outstanding_loans_usd,
available_liquidity_usd,
supplied_amount_usd
from ethereum.lending.metrics_daily
where project = 'aave'
order by date desc
select
date,
sum(outstanding_loans_usd) as total_outstanding_loans_usd,
sum(available_liquidity_usd) as total_available_liquidity_usd,
sum(supplied_amount_usd) as total_supplied_usd
from ethereum.lending.metrics_daily
where date = '2026-01-13'
group by date
Table Columns
| Column Name | Data Type | Description |
|---|---|---|
| chain | VARCHAR(10) | Slug identifying the blockchain this record belongs to (e.g. ethereum, base, avalanche, solana). In per-chain tables this is always the same value; in cross-chain tables it identifies which chain the row came from. |
| date | TIMESTAMP_NTZ(9) | Calendar date (UTC) this record represents. Used in daily aggregate tables. |
| project | VARCHAR(16777216) | Business name of the protocol being used (e.g. uniswap, aave, lido, paraswap). Consistent across verticals — every table with a project column uses this field to identify the top-level protocol brand. |
| protocol | VARCHAR(16777216) | Specific version or variant of the protocol (e.g. uniswap_v3, aave_v2, stargate_v2). Qualifies the project field with version information. |
| outstanding_loans_usd | FLOAT | Total USD value of loans currently outstanding (borrowed but not yet repaid) in this lending market. |
| available_liquidity_usd | FLOAT | Total USD value of assets available to borrow from this lending market (supplied amount minus outstanding loans). |
| supplied_amount_usd | FLOAT | Total USD value of assets currently supplied to this lending market as collateral or liquidity. |
| usd_balance | FLOAT | USD value of the token balance, computed using the exchange rate at the time of the balance snapshot. |
| has_market_state | BOOLEAN | True when the protocol/chain has market-state coverage, i.e. outstanding loans and supplied amounts are read from protocol market state. When false, the balance-sheet columns (outstanding_loans_usd, supplied_amount_usd, available_liquidity_usd) are null and only event-derived flow metrics are available. Filter to has_market_state = true before summing state metrics across protocols or chains. |
| net_deposit_flow_usd | FLOAT | Net USD value of liquidity supplied over the day: gross deposits minus gross withdrawals. Because deposits and withdrawals are opposing flows on the same pool, this net figure reflects the real change in supplied liquidity rather than churn. Null when neither deposits nor withdrawals are covered for the protocol on that day. |
| net_borrow_flow_usd | FLOAT | Net USD value of debt originated over the day: gross borrows minus gross repayments. Reflects the real change in outstanding debt from user activity (excludes interest accrual, which grows debt without an event). Null when neither borrows nor repayments are covered for the protocol on that day. |
| total_volume_usd | FLOAT | Total trading volume in USD on this day across all markets and trade types. |
| avg_volume_usd | FLOAT | Average trade size in USD on this day. |
| total_transactions | NUMBER(38,0) | Total number of transactions processed in this aggregated time period or entity scope. |
| active_users | NUMBER(38,0) | Number of unique users (buyers + sellers, deduplicated) that traded on this day. |
| deposit_volume_usd | FLOAT | Total deposit volume in USD for the activity date |
| deposit_avg_usd | FLOAT | Average deposit size in USD |
| depositor_count | NUMBER(38,0) | Count of unique depositors |
| deposit_tx_count | NUMBER(38,0) | Total number of deposit transactions |
| withdrawal_volume_usd | FLOAT | Total withdrawal volume in USD for the activity date |
| withdrawal_avg_usd | FLOAT | Average withdrawal size in USD |
| withdrawer_count | NUMBER(38,0) | Count of unique withdrawers |
| withdrawal_tx_count | NUMBER(38,0) | Total number of withdrawal transactions |
| loan_volume_usd | FLOAT | Total loan volume in USD for the activity date |
| loan_avg_usd | FLOAT | Average loan size in USD |
| borrower_count | NUMBER(38,0) | Count of unique borrowers |
| loan_tx_count | NUMBER(38,0) | Total number of loan transactions |
| repayment_volume_usd | FLOAT | Total repayment volume in USD for the activity date |
| repayment_avg_usd | FLOAT | Average repayment size in USD |
| borrower_repaying_count | NUMBER(38,0) | Count of unique borrowers making repayments |
| repayment_tx_count | NUMBER(38,0) | Total number of repayment transactions |
| liquidation_volume_usd | FLOAT | Total liquidation volume in USD for the activity date |
| liquidation_avg_usd | FLOAT | Average liquidation size in USD |
| borrower_liquidated_count | NUMBER(38,0) | Count of unique borrowers who were liquidated |
| liquidation_tx_count | NUMBER(38,0) | Total number of liquidation transactions |
| unique_id | VARCHAR(16777216) | Allium’s deterministic unique identifier for this row. Generated from the fields that uniquely identify the record (e.g. transaction hash + log index). Stable across full refreshes. |
| _created_at | TIMESTAMP_NTZ(9) | Timestamp (UTC) when this row was first written to the Allium platform. Set once on insert and never changed. |
| _updated_at | TIMESTAMP_NTZ(9) | Timestamp (UTC) of the most recent update to this row in the Allium platform. Advances when the row is reprocessed or enriched (e.g. USD price hydration). |