# Tick, tick width and automation

Ticks in CLMM (Concentrated Liquidity Market Maker) is used to define the price relation of the two tokens in the pool.

Here is an illustration on what ticks looks like (borrowed from [UniswapV3Book.com](https://uniswapv3book.com/milestone_0/uniswap-v3.html?highlight=tick#ticks))

<figure><img src="/files/NHXXGJOaKk0EHc04A3IZ" alt=""><figcaption><p>Tick and price relation</p></figcaption></figure>

$$
price(i) = 1.0001^i
$$

The `i` here is the tick number. A few examples:

* If `i = 0`, then `price` will be 0
* If `i = 1`, then price will be $$1.0001^{1} = 1.0001$$

You normally would see ticks from the Uniswap position NFT (like the one below). Specifically, each position contains `Min Tick` and `Max Tick`, which defines the lower tick and upper tick (i.e. the range) of the position.

<figure><img src="/files/UcnTTZXAIREv6BLioP7U" alt=""><figcaption></figcaption></figure>

In the example above, the tick width or range is `-194110 - (-198160) = 4050.`To calculate the associated price range, we would need to find the price corresponding to min tick (-198160) and max tick (-194110). And that's not too hard to do:

* $$price(-198160) = 1.0001^{-198160} = 2.47999507e-9$$
* $$price(-194110) = 1.0001^{-198160} = 3.71818751e-9$$

Now you may wonder, why are the numbers so small? This is because 1 human readable ether is represented as 1e18 units on blockchain and  the price above means 1 unit of ether is worth a really small number of USDC units. If we multiple the above prices by 1e18, we now get:

* Min tick price -> 2479995070 units of USDC, which is 2479.99507 USDC because USDC has 6 decimals (i.e. 1 human readable USDC is represented as 1,000,000 units)
* Max tick price -> 3718187510 units of USDC, which is 3718.18751 USDC.

Up to this point, we have went over ticks and the price range behind ticks.


---

# 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.aperture.finance/docs/liquidity-academy/tick-tick-width-and-automation.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.
