Cointime

Download App
iOS & Android

Liquidity Indicators: Improving Risk-Management in DeFi

Price oracles play a critical role in DeFi, providing the financial market data that smart contracts require to execute key backend functions. For instance, price oracles enable lending markets to value collateral and debt when issuing loans and determining liquidations. They also allow derivatives platforms to determine execution prices and compute users’ profits and losses (PnL) from trades.

As the industry standard price oracle solution, Chainlink Price Feeds are widely used throughout DeFi as the market-wide benchmark price for various cryptocurrencies, commodities, and fiat currencies. Backed by multiple layers of decentralization and with a long history of strong security and reliability, Price Feeds enable developers to confidently build decentralized applications that depend on being in sync with current asset prices.

While benchmark prices have gotten DeFi off the ground, additional data points are required for the ecosystem to expand, most notably data describing the current liquidity conditions of various assets. We refer to these as liquidity indicators, and they can help protocols protect against insolvency and other risks, as well as improve their user experience.

In this blog, we explore the role of asset liquidity in financial markets and DeFi before introducing the research and development being performed around Chainlink Liquidity Indicators and diving into how these indicators can support the next evolution in DeFi’s maturity.

Overview of Asset Liquidity in Financial Markets

Asset liquidity refers to the market’s ability to absorb the buying/selling of an asset in a given period of time and the associated change in market price after such trades (i.e., market impact). While sometimes conflated with slippage—the difference between the expected price of a trade and the actual price when its executed—market impact is in fact the change in the price of an asset caused by the trading of that asset (i.e., the difference in market price before and after the trade).

An illiquid asset will have a higher market impact from buy/sell trades, resulting in poor price execution when the asset is bought or sold in large amounts. Conversely, a highly liquid asset will have a lower market impact, meaning significant buy/sell trades can be absorbed by markets with minimal change in the asset’s price.

Asset liquidity can be measured in different ways by using different attributes of the market’s orderbook. An orderbook is simply the list of standing buy and sell orders for a specific asset organized by price level.

  • Market Depth: The market’s ability to absorb relatively large market orders without the price of the asset being significantly impacted. Market depth is commonly measured by how much of an asset needs to be sold/bought to move the price a certain percentage. For example, a +-2% market depth of $1M means buying or selling $1M of the asset will move the market price up or down by 2%. A more liquid market will have a larger market depth, with more capital required to move the market price by a certain percentage.
  • Bid/Ask Spread: The difference between the prices quoted for an immediate sale and an immediate purchase of an asset. A simple way to think about this is the difference between the highest price a buyer is willing to pay for an asset and the lowest price that a seller is willing to accept. The average between the best bid and ask prices being quoted is referred to as the mid-market price. The tighter the bid/ask spread, the greater the market liquidity, and vice versa. The spread is often used as a measure for market liquidity. 
An example of a depth chart showing the mid-market price, spread, and buy/sell walls at different price points.

Because the liquidity conditions of an asset can rapidly change across exchanges, asset liquidity has a large impact on building financial markets for assets that depend on a certain amount of liquidity existing. More specifically, asset illiquidity (low market depth and wide bid/ask spread) creates an issue for financial markets because it becomes cheaper to engage in market manipulation—when an asset’s price is artificially manipulated by skewing natural supply and demand forces. For example, when an illiquid asset is used as collateral for a loan, market manipulation can result in an artificially greater amount being borrowed or false liquidation, creating toxic debt and losses for lenders.

It is no different when it comes to DeFi.

Asset Liquidity Data in DeFi

In order for DeFi protocols to evaluate the risk of market manipulation, they need on-chain access to liquidity data that exists off-chain. Liquidity indicator data must take into account the broader market’s liquidity for an asset, encapsulating off-chain exchanges such as Binance and Coinbase along with other venues where financial assets are commonly traded.

Liquidity indicators can be in the form of market depth, which provides an estimate regarding how much of an asset needs to be bought/sold to move the market by a certain percentage. Alternatively they can take the form of a bid/ask spread indicator, which provides the prevailing bid/ask quote prices across the broader market for an asset.

With this data made available on-chain alongside benchmark prices, DeFi protocols can finetune their business logic to dynamically adjust key parameters such as loan-to-value (LTV) ratios, supply/borrow caps, liquidation premiums, leverage caps, and trade spreads. Different protocols can leverage this data in unique ways in order to protect against market manipulation, optimize capital efficiency, and improve the user experience.

Chainlink’s Approach to Liquidity Indicators

Based on user demand, we are actively engaged in research and development around liquidity indicator solutions that are planned to be supported by the upcoming low-latency oracle solution. The initial implementation is focused on supporting DeFi derivatives use cases, where high latency, frontrunning, and market manipulation are key problems to solve, but can be extended to other use cases as well. To support this solution, we are currently working with premium data providers that have deep knowledge in liquidity measurement and insight into the market structure of digital assets.

The initial implementation of Chainlink Liquidity Indicators is planned to take the form of liquidity-weighted bid/ask quote prices calculated and published at the same time as the benchmark price. The two additional data points—CL_ask and CL_bid—tell the prevailing prices on the bid and ask sides of the aggregate market and how far away they are from the benchmarked CL_price value. These additional data points are representative of the liquidity conditions in the market, both in terms of the tightness of the bid/ask spread and the balance of the benchmark price (i.e. whether the benchmark price is closer to the ask or bid side).

Example of a chart with CL_ask, CL_bid, and CL-price values for AVAX/USD.

Chainlink Liquidity Indicators offer a number of key advantages over alternative approaches:

  • Synchronous: The prevailing bid and ask data points are computed and made available at the same time as the benchmark price. This allows the liquidity metadata to be used when it’s most relevant, preventing delayed or disjointed judgment compared to if the data points were published separately from the benchmark price.
  • Directionality: With separate data points for the asset’s prevailing bid and ask price on the broader market, dApps can detect in which direction market liquidity is skewed. This allows risk mitigation actions to be taken for trades in that direction (e.g., capping the amount of leverage that new positions can take).
  • Market Coverage: The bid and ask data points are liquidity-weighted and take into account broader market liquidity for assets by aggregating bid/ask data across a wide range of off-chain orderbooks. This provides a diverse picture of market conditions.
  • Low-Latency: Liquidity Indicators are planned to be built on the low-latency oracle architecture so users get granular insight into the continuously evolving liquidity conditions of assets. This allows for real-time risk mitigation actions to be taken by dApps.

We are also exploring future expansions to Chainlink Liquidity Indicators, such as taking into account order sizes and the market impact of different order sizes (price impact changes based on order size since orderbooks don’t typically have linear buy/sell walls). Furthermore, we are also exploring the creation of Price Risk Indicators (PRI) to provide a measure of the technical uncertainty of price values being reported (e.g., deviations between data providers). PRI would serve as a complementary technical risk metric to market risk indicators.

Liquidity Indicators Usage in DeFi

Different types of DeFi protocols can leverage Chainlink Liquidity Indicators to automatically adjust the behavior of their coded risk logic and detect abnormal liquidity events that may impact the platform’s UX.

Derivatives Markets

Derivatives platforms that offer leveraged perpetual markets use price data from Chainlink oracles to determine the cost of opening a short/long position and the amount of profit or loss (PnL) a position has made upon settlement. In addition to knowing the price at which to open and close positions, such platforms also need to take into account the market liquidity of assets in order to cap the size and number of positions that can be opened at any given time. If the liquidity indicators show the bid/ask spread is widening or increasing in a certain direction for a specific asset (indicating an environment with reduced liquidity), the maximum number of perpetual positions in that market can be capped in a certain direction (e.g., long or short) to mitigate potential losses for liquidity providers. 

Furthermore, with perpetual positions priced based on the spot markets, there is a risk that the underlying spot market could be manipulated by a malicious actor in order to extract value from the platform’s liquidity providers. Chainlink Liquidity Indicators can help derivatives protocols dynamically adjust the spread for opening new long/short positions by providing the current aggregate market’s prevailing bid/ask spread. This helps mitigate the risk of excessively large positions being taken on illiquid assets.

Lending Markets

A similar approach can be employed by lending markets—platforms where users can borrow assets against deposited collateral. DeFi lending markets use price data from Chainlink oracles to determine max loan sizes and when liquidation events should occur. However, such protocols need to also set additional values such as the LTV ratio (which determines how much can be borrowed against a particular asset as collateral), maximum deposit/borrow caps, and the liquidation bonus for supported assets. 

While such parameters are often set manually by a DAO, Chainlink Liquidity Indicators can allow these protocols to dynamically adjust such values based on prevailing liquidity conditions. This would help ensure liquidations are profitable enough to take place (as liquidators won’t liquidate a position otherwise). For example, if liquidity indicators showcased the liquidity of a asset reducing over time, then the LTV can be dynamically reduced (limiting how much can be borrowed against that asset), the deposit cap can be reduced (limiting protocol exposure), and the liquidation bonus can be adjusted (increasing the probability of successful liquidations while mitigating the risk of a toxic liquidation spiral). The combination of these tactics can help protect lenders and the protocol from incurring toxic debt, especially as liquidity conditions evolve over time.

The introduction of Chainlink Liquidity Indicators will provide the DeFi ecosystem with access to additional high-quality data points that further the ability of protocols to manage risk and keep user assets secure. If you are a DeFi developer and are interested in integrating Liquidity Indicators or providing feedback on its development, we recommend you reach out below to signal your interest for low-latency oracles. 

Read more: https://blog.chain.link/liquidity-indicators/

Comments

All Comments

Recommended for you

  • A Total of 37,212.18 DMD Permanently Burned Over the Past 7 Days

    July 9, 2026 — According to the latest on-chain data released by DMDAO, a total of 37,212.18 DMD has been permanently burned over the past seven calendar days through the protocol's predefined trading and wealth management burn mechanisms.

  • Whale Transfers 1,133 BTC to Coinbase Prime, Valued at $71.48 Million

    According to Onchain Lens monitoring, a whale transferred 1,133 BTC from Coinbase to Coinbase Prime through an intermediary wallet, valued at $71.48 million.

  • U.S. AI Chip Stocks Decline Before Market Open, Intel Falls Over 3%

    On July 7, U.S. AI chip stocks experienced widespread declines before the market opened. Intel dropped over 3%, while AMD, Qualcomm, and NXP fell more than 2%. TSMC, Broadcom, and Tesla decreased by over 1%, and NVIDIA declined by 0.7%.

  • China's Central Bank Increases Gold Reserves for the 20th Consecutive Month

    As of the end of June, China's gold reserves stood at 75.44 million ounces (approximately 2,346.446 tons), an increase of 480,000 ounces (about 14.93 tons) from the end of May, which reported 74.96 million ounces (approximately 2,331.52 tons). This marks the 20th consecutive month of gold accumulation.

  • China's Foreign Exchange Reserves in June at $341.6262 Billion

    On July 7, China's foreign exchange reserves for June stood at $341.6262 billion, a decrease of $26 billion from the end of May, representing a decline of 0.75%, with expectations set at $343.2 billion.

  • U.S. Storage Stocks Drop Pre-Market, SanDisk and Micron Down Over 4%

    On July 7, U.S. storage concept stocks collectively fell in pre-market trading. Western Digital dropped over 5%, SanDisk and Micron Technology fell over 4%, Seagate Technology declined over 3%, Rambus fell over 2%, and SMI fell over 1%.

  • U.S. Stocks in Optical Communication Sector Drop Pre-Market

    On July 7, stocks in the optical communication sector of the U.S. market collectively fell pre-market. Astera Labs dropped over 4%, while Marvell Technology, Credo Technology, and AXT Inc. fell more than 3%. Tower Semiconductor, MaxLinear, Corning, Applied Optoelectronics, GlobalFoundries, Lumentum, and Qorvo all declined by more than 2%. Coherent, Nokia, Amphenol, and Broadcom dropped over 1%.

  • Pre-market Decline in U.S. Storage Stocks

    In pre-market trading, U.S. storage concept stocks experienced a widespread decline, with Micron Technology falling by 4.8%, SanDisk dropping over 4%, Corning down more than 2%, and Intel decreasing by over 3%.

  • Two Departments: Support for Reinsurance Institutions to Increase Capital and Issue Supplementary Capital Tools

    On July 7, the National Financial Supervision and Administration Bureau and the Shanghai Municipal Government released several measures to accelerate the construction of the Shanghai International Reinsurance Center. Among these measures, they proposed to enhance the quality and efficiency of the reinsurance industry, support reinsurance institutions in increasing capital and expanding shares, and issuing supplementary capital tools to improve the capacity for internal capital accumulation and external capital supplementation, thereby strengthening the reinsurance industry's capabilities. The initiative aims to guide the insurance industry to focus on major national projects, strategic emerging industries, and livelihood security, consolidating insurance and reinsurance underwriting capabilities to enhance risk protection levels. It also supports reinsurance institutions in leveraging their professional technical advantages to assist the insurance industry in reducing risk.

  • Sources: Saudi Arabia Plans to Expand Oil Pipeline to Red Sea, Increasing Capacity by 2 Million Barrels Daily to Bypass Strait of Hormuz

    On July 7, five informed sources revealed that Saudi Arabia is considering expanding the crude oil pipeline capacity to its western coast on the Red Sea, allowing Saudi Arabia and its neighbors to transport more oil without passing through the Strait of Hormuz. This east-west pipeline, built in the early 1980s, has gained strategic importance since the outbreak of the Iran war in February and the disruption of shipping in the Strait of Hormuz. The pipeline can deliver up to 7 million barrels of crude oil per day to the Red Sea port. The CEO of Saudi Aramco stated in May that approximately 2 million barrels are supplied to west coast refineries, while about 5 million barrels are for export. Sources indicate that Saudi Arabia is in preliminary discussions with some neighboring countries regarding the pipeline expansion, aiming to add about 2 million barrels of pipeline capacity per day. It remains unclear whether Aramco's planned expansion involves upgrading existing infrastructure or constructing new pipelines. One source mentioned that the expansion plan also includes a smaller refined oil pipeline. Two sources indicated that the expansion scale could range from 1 million to 2 million barrels per day, with refined oil also being considered. Another source stated that the project would take several years and cost billions of dollars, requiring adjustments to Saudi crude pricing mechanisms.