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

# Sector Metrics

> Methodology and metric definitions for Perpetual Exchanges, Decentralized Exchanges, Lending Protocols, and Liquid Staking sectors including trading volume, TVL, fees, deposits, borrows, and staked ETH.

[Artemis Dashboard](https://www.artemis.ai/sectors?tab=perpetuals)

## Sectors

We cover metrics in the following sectors: Perpetual Exchanges, Decentralized Exchanges, Lending Protocols and Liquid Staking.

> [!NOTE]
>
> The **Excel Metric Name** column below is for [Artemis Sheets](https://artemis.ai/docs/artemis-sheets/overview.md). The API uses different
> metric names — `LENDING_DEPOSITS` and `LENDING_LOANS` rather than `DEPOSITS` and `BORROWS`, `PERP_VOLUME` rather
> than `TRADING_VOLUME`, and `SPOT_DAU` / `PERP_DAU` rather than `UNIQUE_TRADERS`.
>
> For API metric names see [Lending](https://artemis.ai/docs/artemis-api/metrics/lending.md), [Spot DEX](https://artemis.ai/docs/artemis-api/metrics/spot-dex.md),
> [Perpetuals](https://artemis.ai/docs/artemis-api/metrics/perps.md) and [Prediction Markets](https://artemis.ai/docs/artemis-api/metrics/prediction-markets.md).

### Perpetual Exchanges

| Metric Definition | Methodology | Source | Excel Metric Name |
| - | - | - | - |
| Trading Volume | Using `FillOrder` or equivalent event, sum the amount traded each day or pulled directly from APIs provided by each protocol. | On-chain events or API | TRADING\_VOLUME |
| Unique Traders | Daily unique trading address on the protocol. | Unique addresses that initiate a `FillOrder` or equivalent event from the set of exchange contracts associated with a protocol or pulled directly from protocol API. | UNIQUE\_TRADERS |

### Decentralized Exchanges

| Metric Definition | Methodology | Source | Excel Metric Name |
| - | - | - | - |
| Trading Volume | Trading volume is filtered using a blacklist to remove pools that trade tokens that do not follow the ERC-20 standard as well as are extremely illiquid and not able to be properly priced. | On-chain events | DEX\_VOLUMES |
| TVL | TVL is filtered using a blacklist to remove pools that trade tokens that do not follow the ERC-20 standard as well as are extremely illiquid and not able to be properly priced. | On-chain events | TVL |
| Fees | Trading fees are filtered using a blacklist to remove pools that trade tokens that do not follow the ERC-20 standard as well as are extremely illiquid and not able to be properly priced. | On-chain events | FEES |
| Unique Traders | Unique addresses that initiate a `swap` or equivalent event from the set of exchange contracts associated with a protocol. | On-chain events | UNIQUE\_TRADERS |

### Lending Protocols

| Metric Definition | Methodology | Source | Excel Metric Name |
| - | - | - | - |
| Deposits | The amount of deposited funds in the protocol in USD. | Query an archive node getting total outstanding borrows directly from the contracts associated with the protocol. | DEPOSITS |
| Borrows | The amount of funds owed to the protocol in USD. | Query an archive node getting total supply of funds directly from the contracts associated with the protocol. | BORROWS |

### Liquid Staking

| Metric Definition | Methodology | Source | Excel Metric Name |
| - | - | - | - |
| Staked ETH | The amount of staked ETH in the protocol. | Query an archive node getting total supply of ETH directly from the contracts associated with the protocol. | STAKED\_ETH |
| Staked ETH Inflow | The amount of newly deposited ETH into the protocol | Calculate the daily change of ETH supplied from Staked ETH. | STAKED\_ETH\_INFLOW |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.