> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allium.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Lending Overview

> Daily precomputed lending metrics by chain, project and protocol.

The `crosschain.metrics.lending_overview` table provides precomputed metrics for lending protocols, broken down by blockchain, project, and protocol. These metrics are derived from transaction-level data and are updated daily.

The table includes key metrics such as outstanding loans, total locked value (TVL), deposits, withdrawals, loans, repayments, and liquidations.

### Table Details

| Property | Value |
| - | - |
| Table Name | `crosschain.metrics.lending_overview` |
| Table Status | Production-Ready |
| Unique Key | `activity_date`, `chain`, `project`, `protocol` |

### Chain Coverage

| Table | Chains |
| - | - |
| `crosschain.metrics.lending_overview` | <details><summary>34 chains</summary>[Solana](https://docs.allium.so/historical-data/supported-blockchains/solana/solana.md), [Aptos](https://docs.allium.so/historical-data/supported-blockchains/move-ecosystem/aptos.md), [Sui](https://docs.allium.so/historical-data/supported-blockchains/move-ecosystem/sui.md), [Arbitrum](https://docs.allium.so/historical-data/supported-blockchains/evm/arbitrum/metrics/lending-overview.md), [Arc](https://docs.allium.so/historical-data/supported-blockchains/evm/arc.md), [Avalanche](https://docs.allium.so/historical-data/supported-blockchains/evm/avalanche/metrics/lending-overview.md), [Base](https://docs.allium.so/historical-data/supported-blockchains/evm/base/metrics/lending-overview.md), [BNB Smart Chain](https://docs.allium.so/historical-data/supported-blockchains/evm/bsc.md), [Celo](https://docs.allium.so/historical-data/supported-blockchains/evm/celo.md), [Ethereum](https://docs.allium.so/historical-data/supported-blockchains/evm/ethereum/metrics/lending-overview.md), [Gnosis](https://docs.allium.so/historical-data/supported-blockchains/evm/gnosis.md), [HyperEVM](https://docs.allium.so/historical-data/supported-blockchains/evm/hyperevm.md), [Ink](https://docs.allium.so/historical-data/supported-blockchains/evm/ink.md), [Katana](https://docs.allium.so/historical-data/supported-blockchains/evm/katana.md), [Linea](https://docs.allium.so/historical-data/supported-blockchains/evm/linea.md), [Mantle](https://docs.allium.so/historical-data/supported-blockchains/evm/mantle.md), [MegaETH 🌱](https://docs.allium.so/historical-data/supported-blockchains/evm/megaeth.md), [Monad](https://docs.allium.so/historical-data/supported-blockchains/evm/monad.md), [Optimism](https://docs.allium.so/historical-data/supported-blockchains/evm/optimism/metrics/lending-overview.md), [Plasma](https://docs.allium.so/historical-data/supported-blockchains/evm/plasma.md), [Plume](https://docs.allium.so/historical-data/supported-blockchains/evm/plume.md), [Polygon](https://docs.allium.so/historical-data/supported-blockchains/evm/polygon.md), [Robinhood](https://docs.allium.so/historical-data/supported-blockchains/evm/robinhood.md), [Scroll](https://docs.allium.so/historical-data/supported-blockchains/evm/scroll.md), [Soneium](https://docs.allium.so/historical-data/supported-blockchains/evm/soneium.md), [Sonic](https://docs.allium.so/historical-data/supported-blockchains/evm/sonic.md), [Stable](https://docs.allium.so/historical-data/supported-blockchains/evm/stable.md), [Tempo](https://docs.allium.so/historical-data/supported-blockchains/evm/tempo.md), [TRON](https://docs.allium.so/historical-data/supported-blockchains/evm/tron.md), [Unichain](https://docs.allium.so/historical-data/supported-blockchains/evm/unichain.md), [World Chain](https://docs.allium.so/historical-data/supported-blockchains/evm/worldchain/metrics/lending-overview.md), [X Layer](https://docs.allium.so/historical-data/supported-blockchains/evm/x_layer.md), [ZKsync](https://docs.allium.so/historical-data/supported-blockchains/evm/zksync.md), [Stellar](https://docs.allium.so/historical-data/supported-blockchains/other-ecosystems/stellar.md)</details> |

### Table Columns

| Column Name | Data Type | Description |
| - | - | - |
| activity\_date | TIMESTAMP\_NTZ(9) | Calendar date (UTC) for which this metric or aggregate is computed. Only includes fully completed days — the current in-progress day is excluded. |
| is\_verified | BOOLEAN | Boolean flag indicating whether the project is verified |
| vertical | VARCHAR(16777216) | The DeFi vertical of the row's project, such as `dex`, `lending`, `bridge`, `bridge_aggregator` or `messaging_protocol`. |
| chain | VARCHAR(16777216) | 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. |
| 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. |
| project\_name | VARCHAR(16777216) | Human-readable name of the project |
| 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. |
| token\_price\_usd | FLOAT | Price of the project's token in USD, if applicable |
| token\_symbol | VARCHAR(16777216) | Ticker symbol of the token (e.g. "USDC", "WETH"). |
| market\_cap\_usd | FLOAT | The market capitalization of the native token in USD |
| 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. |
| active\_users | NUMBER(38,0) | Number of unique users (buyers + sellers, deduplicated) that traded on this day. |
| total\_transactions | NUMBER(38,0) | Total number of transactions processed in this aggregated time period or entity scope. |
| 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 supplied to lending markets. For pool-based protocols (Aave, Compound, Fluid) this is the gross pool deposit including collateral, which cannot be separated. For Morpho Blue, borrower-posted collateral is excluded. |
| tvl\_usd | FLOAT | Total USD value of assets physically locked in protocol contracts. For pool-based protocols, borrowed assets have left the contract and are excluded; for isolated markets (Morpho Blue) this includes both the loan token pool and borrower-posted collateral. |
| 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 |
| \_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). |
