Liquidity and Size
Overview
Liquidity and size metrics describe how large a protocol market is: the total value supplied, the total value borrowed against it, and what remains available to borrow. Each is published in the market's native asset units, and in U.S. dollars where available. They are part of the Protocol Metrics family. See that page for the shared entity model (protocol, chain, market), the beginning-of-interval timestamp convention, and for what an instantaneous value versus a _mean value represents at each frequency.
At a Glance
Total market size, total borrowed, and total available liquidity
Protocol markets (protocol + chain + market)
1d and 1m
Native units, and U.S. dollars where available
/timeseries/protocol-metrics
coming soon....
Metrics
Each of the three quantities (market size, borrowed, available liquidity) is published in four forms: native units, U.S. dollars, and the _mean of each.
Total market size
The sum of everything supplied to the market: what is currently borrowed plus what remains available.
market_size_total_ntv
Total value supplied to the market, in the market's native asset units, closing value for the interval.
1d, 1m
market_size_total_usd
Total value supplied to the market, in U.S. dollars, closing value for the interval.
1d, 1m
market_size_total_mean_ntv
The mean market_size_total_ntv value over the time interval.
1d, 1m
market_size_total_mean_usd
The mean market_size_total_usd value over the time interval.
1d, 1m
Total borrowed
The sum of everything currently borrowed from the market.
borrowed_total_ntv
Total value borrowed from the market, in the market's native asset units, closing value for the interval.
1d, 1m
borrowed_total_usd
Total value borrowed from the market, in U.S. dollars, closing value for the interval.
1d, 1m
borrowed_total_mean_ntv
The mean borrowed_total_ntv value over the time interval.
1d, 1m
borrowed_total_mean_usd
The mean borrowed_total_usd value over the time interval.
1d, 1m
Total available liquidity
The sum of everything supplied to the market that is not currently borrowed (total market size minus total borrowed). This metric is often referred to as Total Value Locked (TVL) in the industry for many protocols.
liquidity_total_available_ntv
Value available to borrow or withdraw from the market, in the market's native asset units. For lending pools, this metric is often referred to as Total Value Locked (TVL) in the industry for many protocols.
1d, 1m
liquidity_total_available_usd
Value available to borrow from the market, in U.S. dollars. For lending pools, this metric is often referred to as Total Value Locked (TVL) in the industry for many protocols.
1d, 1m
liquidity_total_available_mean_ntv
The mean liquidity_total_available_ntv value over the time interval.
For lending pools, this metric is often referred to as Total Value Locked (TVL) in the industry for many protocols.
1d, 1m
liquidity_total_available_mean_usd
The mean liquidity_total_available_usd value over the time interval.
For lending pools, this metric is often referred to as Total Value Locked (TVL) in the industry for many protocols.
1d, 1m
Methodology
See Protocol Metrics: Frequency and the daily mean for how the instantaneous and _mean forms differ at each frequency, and the worked example below for how close the two forms are in practice.
Total borrowed and available liquidity by protocol type
borrowed_total and liquidity_total_available are not computed the same way across protocol types: each reads a different piece of on-chain state depending on how the protocol itself represents "what is out on loan" versus "what could still be lent."
For Aave v3 markets, available liquidity is the market's aToken total supply minus the sum of its outstanding stable and variable debt, read live from Aave's Pool and ProtocolDataProvider contracts.
For Morpho v1 (MetaMorpho) vaults, available liquidity is the sum, across every market in the vault's withdraw queue, of the lesser of (a) the vault's own supplied position in that market and (b) that market's idle (unborrowed) cash. This reflects that a depositor can withdraw at most the vault's own position, further capped by whatever unborrowed liquidity the underlying market actually holds.
Accessing the Data
Full parameter reference: see the API Reference for /timeseries/protocol-metrics.
Examples
The examples below are live pulls, returned as JSON strings, and change on each pull.
Example: instantaneous vs. mean
borrowed_total_usd (closing value) alongside borrowed_total_mean_usd (mean of the day's hourly closes) for the same market and day. The two values are close but not identical, consistent with Protocol Metrics: Frequency and the daily mean (browser):
Example: total market size at the 1m frequency
market_size_total_usd for the same market, close to real time (browser):
Coverage
See Protocol Metrics: Coverage for how to check current availability against the catalog directly.
Related
Protocol Metrics: the parent page, with the shared entity model and frequency semantics.
Rates and Yield:
utilization_rate, which is computed fromborrowed_totalandmarket_size_total.Risk Parameters: the supply and borrow caps that bound how large these figures can grow.
Last updated

