# DexMetrics **Type:** GraphQL objects **Description:** Aggregated performance metrics for a decentralized exchange (DEX). `DexMetrics` provides a snapshot and historical overview of network-wide DeFi activity, including total liquidity (TVL), trading volume, and the number of active pools. It is designed for powering dashboards, analytics views, and protocol-level insights. All USD-denominated values (TVL, volume) are calculated using price data from DIA, and historical data is shaped by the time range specified in the query (defaults to 30 days if none is provided). ## Fields - totalPools (Int): The total number of liquidity pools deployed under the protocol. - currentTvlUsd (Decimal): The current total value locked (TVL) across all pools, expressed in USD. This reflects the combined liquidity available in the protocol at the time of the query. - tvlHistory (ChartDataPoint, Not Null): Historical time-series data points representing TVL evolution over the selected time range. Useful for charting liquidity growth and analyzing protocol trends. - timestamp (DateTime): The timestamp associated with this data point. - value (Decimal): The metric value recorded at this timestamp. - volumeHistory (ChartDataPoint, Not Null): Historical time-series data points representing trading volume over the selected time range. Useful for charting market activity and usage patterns. - timestamp (DateTime): The timestamp associated with this data point. - value (Decimal): The metric value recorded at this timestamp. - totalVolumeUsd (Decimal): The total cumulative trading volume (in USD) observed over the specified time range.