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

  • Blockchain SaaS solution AfriDex completes $5 million Pre-Seed round of financing, led by Endeavor Ventures

    AfriDex, a blockchain software-as-a-service solution based in London, UK, announced the completion of a $5 million Pre-Seed round of financing with Endeavor Ventures leading the investment and African Crops Limited, Oldenburg Vineyards, and Hank Oberoi participating. AfriDex is currently focused on the agricultural market, providing comprehensive on-chain solutions to support and protect supply chain participants, utilizing blockchain technology to achieve traceability, frictionless payments, anti-fraud transactions, verified authentication, simplified tax and subsidy management. (finsmes)

  • Rugpull occurs on Ethereum with fake NOT tokens

    PeckShield has monitored that the fake token Notcoin (NOT) on Ethereum has dropped 100%. An address starting with 0xE0eB sold 1,645,040,633,338,481.95 NOT and exchanged it for 93.5 WETH (valued at $281,000 USD). Note: Rugpull tokens have the same name as legitimate tokens.

  • U.S. senators propose spending $32 billion to develop AI and build safeguards around it

    A bipartisan group of four senators led by Chuck Schumer, the leader of the majority party in the United States, has proposed that Congress spend at least $32 billion over the next three years to develop artificial intelligence (AI) and establish safeguards around it.

  • Swiss Federal Council Plans to Implement Crypto Asset Reporting Framework to Improve Tax Transparency

    The Swiss Federal Council (consisting of seven members jointly leading the Swiss government) plans to implement a Cryptocurrency Asset Reporting Framework (CARF) to increase tax transparency.On the 15th, the Federal Council issued a consultation document to investigate public opinion on joining the Automatic Exchange of Information (AEOI) to combat tax evasion and avoidance in cooperation with international tax authorities. Currently, Switzerland's joining of AEOI is scheduled for January 1, 2026. It is reported that the Organisation for Economic Co-operation and Development (OECD) established AEOI and other initiatives for the Group of Twenty (G20) countries, which later expanded to include other countries.Switzerland previously adopted the Common Reporting Standard (CRS) of the OECD in 2014, but did not include CARF regulating cryptocurrency assets and their providers.

  • Morgan Stanley disclosed that it invested nearly $270 million in Grayscale GBTC, becoming one of the largest holders

    On May 16th, Morgan Stanley disclosed in its Q1 13F filing with the SEC that it had invested $269.9 million in the Grayscale Bitcoin Trust (GBTC) to gain exposure to physical bitcoin ETFs. According to Fintel's data, this investment made it one of the largest holders of GBTC, after Susquehanna International Group (which invested $1 billion). Morgan Stanley is also one of many global systemically important banks (G-SIBs) that have disclosed investments in physical bitcoin ETFs, including Royal Bank of Canada, JPMorgan Chase, Wells Fargo, BNP Paribas, and UBS Group.

  • Coinbase Plans to Target Australia's Self-Managed Pensions Sector with New Service

    Coinbase is developing a service that will target Australia's self-managed pensions sector, according to the exchange's Asia-Pacific Managing Director John O'Loghlen. The move comes as self-managed funds in Australia have increasingly held crypto, with nearly A$1 billion ($664 million) allocated to crypto as of the latest data from the Australian Taxation Office. O'Loghlen stated that Coinbase's offering will aim to service these clients on a one-off basis and retain their business. The interest in crypto within the self-managed pensions sector may be driven by the recent momentum gained after spot-ETF approvals in the U.S. and the possibility of similar approvals in Australia this year.

  • The Hashgraph Association and QFC launch $50 million digital asset venture studio in Qatar

    The Hashgraph Association (THA) has announced a strategic partnership with the Qatar Financial Centre (QFC) to establish a $50 million digital asset venture studio called Digital Assets Venture Studio, which will support the development of decentralized finance (DeFi) solutions that comply with regulations and digital assets based on the Hedera distributed ledger technology (DLT) network. They will also invest in Web3 startups and DeFi projects supported by Hedera.

  • US lawmaker: SEC should repeal crypto accounting policy before Senate vote

    US legislator Wiley Nickel wrote a letter to Gary Gensler, Chairman of the US Securities and Exchange Commission (SEC), on May 15th, stating that the SEC should repeal the cryptocurrency accounting policy (SAB 121) before the Senate vote. Protecting investors is the mission of the US Securities and Exchange Commission, but SAB 121 does the opposite by preventing heavily regulated US banks from mass custody of digital assets. In addition, Wiley Nickel criticized the SEC for bypassing the rule-making process when issuing SAB 121, believing that the purpose of the cryptocurrency accounting policy is to clarify existing policies, not to create new ones.

  • CryptoQuant: Bitcoin demand is now in acceleration mode again after two months of decline

    On May 16th, cryptocurrency analysis company CryptoQuant stated in a report that despite a rebound in Bitcoin demand from the low point of the accumulation range, after two months of downward trend, Bitcoin demand is once again in "acceleration mode".

  • In the past 24 hours, the entire network has liquidated $159 million, and short positions have liquidated $114 million

    According to Coinglass data, there were liquidations of $159 million across the entire network in the past 24 hours, with long positions being liquidated for $44.75 million and short positions being liquidated for $114 million. Bitcoin liquidations were approximately $58.41 million and Ethereum liquidations were approximately $21.29 million.