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

  • Equation News calls out Binance for "insider trading": You are destroying the sentiment of the trading market

    On November 25th, Formula News reported that to those insider traders who participated in the listing of Binance perpetual contracts, please slow down when selling your chips next time. The WHY and CHEEMS crashes you caused resulted in a 100% negative return for everyone involved in the trade, and you are destroying the emotions of the trade. Earlier today, Binance announced the listing of 1000WHYUSDT and 1000CHEEMSUSDT perpetual contracts, which caused a short-term crash in WHY and CHEEMS and sparked intense discussion within the community.

  • U.S. Congressman Mike Flood: Looking forward to working with the next SEC Chairman to revoke the anti-crypto banking policy SAB 121

     US House of Representatives will investigate Representative Mike Flood's recent statement: "Despite widespread opposition, SAB 121 is still operating as a regulation, even though it has never gone through the normal Administrative Procedure Act process." Flood said, "I look forward to working with the next SEC chairman to revoke SAB 121. Whether Chairman Gary Gensler resigns on his own or President Trump fulfills his promise to dismiss Gensler, the new government has an excellent opportunity to usher in a new era after Gensler's departure." He added, "It's not surprising that Gensler opposed the digital asset regulatory framework passed by the House on a bipartisan basis earlier this year. 71 Democrats and House Republicans passed this common-sense framework together. Although the Democratic-led Senate rejected it, it represented a breakthrough moment for cryptocurrency and may provide information for the work of the unified Republican government when the next Congress begins in January next year."

  • Indian billionaire Adani summoned by US SEC to explain position on bribery case

    Indian billionaire Gautam Adani and his nephew, Sahil Adani, have been subpoenaed by the US Securities and Exchange Commission (SEC) to explain allegations of paying over $250 million in bribes to win solar power contracts. According to the Press Trust of India (PTI), the subpoena has been delivered to the Adani family's residence in Ahmedabad, a city in western India, and they have been given 21 days to respond. The notice, issued on November 21 by the Eastern District Court of New York, states that if the Adani family fails to respond on time, a default judgment will be made against them.

  • U.S. Congressman: SEC Commissioner Hester Peirce may become the new acting chairman of the SEC

    US Congressman French Hill revealed at the North American Blockchain Summit (NABS) that Republican SEC Commissioner Hester Peirce is "likely" to become the new acting chair of the US Securities and Exchange Commission (SEC). He noted that current chair Gary Gensler will step down on January 20, 2025, and the Republican Party will take over the SEC, with Peirce expected to succeed him.

  • Tether spokesperson: The relationship with Cantor is purely business, and the claim that Lutnick influenced regulatory actions is pure nonsense

     a spokesperson for Tether stated: "The relationship between Tether and Cantor Fitzgerald is purely a business relationship based on managing reserves. Claims that Howard Lutnick's joining the transition team in some way implies an influence on regulatory actions are baseless."

  • Bitwise CEO warns that ETHW is not suitable for all investors and has high risks and high volatility

    Hunter Horsley, CEO of Bitwise, posted on X platform that he was happy to see capital inflows into Bitwise's Ethereum exchange-traded fund ETHW, iShares, and Fidelity this Friday. He reminded that ETHW is not a registered investment company under the U.S. Investment Company Act of 1940 and therefore is not protected by the law. ETHW is not suitable for all investors due to its high risk and volatility.

  • Musk said he liked the "WOULD" meme, and the related tokens rose 400 times in a short period of time

    Musk posted a picture on his social media platform saying he likes the "WOULD" meme. As a result, the meme coin with the same name briefly surged. According to GMGN data, the meme coin with the same name created 123 days ago surged over 400 times in a short period of time, with a current market value of 4.5 million US dollars. Reminder to users: Meme coins have no practical use cases, prices are highly volatile, and investment should be cautious.

  • Victory Securities: Funding Rates halved and fell, Bitcoin's short-term direction is not one-sided

    Zhou Lele, the Vice Chief Operating Officer of Victory Securities, analyzed that the macro and high-level negative impact risks in the cryptocurrency market have passed. The risks are now more focused on expected realization, such as the American entrepreneur Musk and the American "Efficiency Department" (DOGE) led by Ramaswamy. After media reports, the increase in Dogecoin ($DOGE) was only 5.7%, while Dogecoin rose by 83% in the week when the US election results were announced. Last week, the net inflow of off-exchange Bitcoin ETF was US$1.67 billion, and the holdings of exchange contracts and CME contracts remained high, but the funding rates halved and fell back, indicating that the direction of Bitcoin in the short term is not one-sided, and bears are also accumulating strength.

  • ECB board member Villeroy: Falling inflation allows ECB to cut interest rates

     ECB board member Villeroy de Galhau said in an interview that the decline in inflation allows the ECB to lower interest rates. In addition, the slow pace of price increases compared to average wages is also a factor in the rate cut. Villeroy de Galhau emphasized that the ECB's interest rate policy decision is independent of the Fed. Evidence shows that the ECB began to lower interest rates in early June, while the Fed lowered interest rates three months later. With the decline in inflation, we will be able to continue to lower interest rates. Currently, the market generally expects the ECB to cut interest rates by 25 basis points at the next meeting in December, but weaker data increases the possibility of a 50 basis point cut.

  • DeFi TVL exceeds $95 billion again

    According to defillama data, as of May 18, 2024, the total value locked (TVL) in DeFi has once again surpassed $95 billion. It is currently reported at $95.069 billion, an increase of nearly $12 billion from the low point of $83.04 billion 35 days ago. Among the top five protocols in terms of TVL, Eigenlayer has the highest 30-day increase, with TVL rising by 19.67% to a total of $15.455 billion.