# Dynamic Liquidity Adjustment

A big challenge for virtual AMM is to decide the liquidity value. If the liquidity value is high, it has the benefit of lower trade slippage, but the high value also means it takes a large trade amount to move the price. Also, it is not a good idea to use constant liquidity forever with the growth of the exchange. Is there a way to dynamically update the liquidity based on some parameters?

In practice, the liquidity of an exchange is highly correlated with open interest and trading volume. That’s why Pika Exchange is making use of these two parameters to dynamically update the liquidity based on the following logic:

1. If short term TWAP open interest is higher than long term TWAP open interest(indicating the growing trend of open interest), the liquidity will be adjusted higher, and vice versa.
2. If today’s trading volume is higher than the previous day’s trading volume beyond a certain threshold, the liquidity will be adjusted higher, and vice versa.

The daily limit is applied for liquidity change amounts to protect the exchange from potential manipulations.

Pika Exchange is the first project that implements this feature and we expect it may take some time to experiment before becoming perfect.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pikaprotocol.com/archived/pika-protocol-v1/pika-exchange/dynamic-liquidity-adjustment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
