> ## 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.

# Metrics Daily

### Table Details

| Property | Value |
| - | - |
| Table Name | `sui.lending.metrics_daily` |
| Table Status | Production-Ready |
| Unique Key | `date`, `project`, `protocol` |
| Clustering Key(s) | `date` |

### Table Columns

| Column Name | Data Type | Description |
| - | - | - |
| 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 this project/protocol/day has markets\_daily coverage. |
| net\_deposit\_flow\_usd | FLOAT | deposit\_volume\_usd minus withdrawal\_volume\_usd for the day. |
| net\_borrow\_flow\_usd | FLOAT | loan\_volume\_usd minus repayment\_volume\_usd for the day. |
| total\_volume\_usd | FLOAT | Distinct-counted gross volume across deposits/withdrawals/loans/repayments/liquidations. |
| avg\_volume\_usd | FLOAT | Average USD size of lending events on this day. |
| total\_transactions | NUMBER(38,0) | Distinct transaction\_hash count across all lending event types. |
| active\_users | NUMBER(38,0) | Distinct actor address count across all lending event types. |
| 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 of when the entry was created in the database. |
| \_updated\_at | TIMESTAMP\_NTZ(9) | Timestamp of when the entry was last updated in the database. |
