> For the complete documentation index, see [llms.txt](https://lobster-protocol.gitbook.io/lobster-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lobster-protocol.gitbook.io/lobster-documentation/defi-strategy/rebalancing-frequency.md).

# Rebalancing frequency

The algorithm's arbitration frequency has to be accurately defined, for several reasons. Firstly, it is important to understand that arbitraging at a higher frequency costs more in blockchain fees, and these costs are linear.

Similarly, arbitraging at a higher frequency costs more in slippage fees, because the micro variations in the price will have a greater impact on the trades needed for the algorithm to function properly. However, this loss is not linear.

Here are some tests carried out with our in-house backtesting software:

### High-frequency arbitration - Once an hour ⏲️

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXdTjPf0EO9zjvvBKyt8xIePb6KpCZleaQiFQlicK550wdAVRuIDb-ZdThrV5KMcLQvvtAxUYOUUI3O9PNvulY-V5IbBeafSpCUfGPdh0Ksv3B3LCYZEDanSJj2AmcaFPTz5klk5M21nnUIbAJSVNL95Buko?key=hxK4FusP5rMgLl01SCAisQ" alt=""><figcaption><p>Backtest decisions by 1h frequency, ETH/BTC pool on uni v3 arbitrum, over 1,5 year (01/01/2022 to 01/06/2024)</p></figcaption></figure>

<figure><img src="/files/zaB9LdL82Csfd8246qjy" alt=""><figcaption><p>Backtest APY by 1h frequency, ETH/BTC pool on uni v3 arbitrum, over 1,5 year (01/01/2022 to 01/06/2024)</p></figcaption></figure>

Here we see that slippage costs (in purple) are expensive for the algorithm. We're talking about more than 5%/year, which is a lot. A frequency that is too high therefore costs too much. Note that this backtest was carried out on Arbitrum, a low-cost blockchain, so blockchain costs remain small, but they can also have a major impact on the profitability of a test carried out on another blockchain.

### Medium-frequency arbitration - Once a day ⏲️

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXdgMVhknqQa8px1e7u79G97BZBGfNJvZXeQO2PtLCPtXznbRK-2o9fACemCXtrelyCmLcc0keXDTT7ZAznD28PF2FBjqdpz94IQdgWYpPWGxUFMadGhqk-roPjJsTLwHLABz2G25_IbdlA8LBEYKDZ8Ef8?key=hxK4FusP5rMgLl01SCAisQ" alt=""><figcaption><p>Backtest decisions by 1d frequency, ETH/BTC pool on uni v3 arbitrum, over 1,5 year (01/01/2022 to 01/06/2024)</p></figcaption></figure>

<figure><img src="/files/uoWQrdev8edhffazR4OB" alt=""><figcaption><p>Backtest APY by 1d frequency, ETH/BTC pool on uni v3 arbitrum, over 1,5 year (01/01/2022 to 01/06/2024)</p></figcaption></figure>

There's nothing special here, slippage and blockchain costs are relatively low, and profitability is relatively stable and smooth.

### Low-frequency arbitration - Once a week ⏲️

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXczmiyi8cdD72vHjBp3IjTKXgmi9r32jCdVIGLFOw7t2-uiLk6AdfHKGBcPQIZrRYLkCoP3Xvee6t2ZbryQZGKhyWhDTK7bQZthtE3QZCFLerEghN-qzkz6F3ZOvW1jAybQdzyJ-FytqRycAtkm4rG2VFmF?key=hxK4FusP5rMgLl01SCAisQ" alt=""><figcaption><p>Backtest decisions by 1w frequency, ETH/BTC pool on uni v3 arbitrum, over 1,5 year (01/01/2022 to 01/06/2024)</p></figcaption></figure>

<figure><img src="/files/BaIwz5SWs5qWhxbmxal9" alt=""><figcaption><p>Backtest APY by 1w frequency, ETH/BTC pool on uni v3 arbitrum, over 1,5 year (01/01/2022 to 01/06/2024)</p></figcaption></figure>

Here we can see that not only has the low frequency used not reduced slippage costs much, but profitability has also become disastrous.

After several tests, most configurations suggest that arbitraging every 1 to 3 days is the most likely to produce good results.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://lobster-protocol.gitbook.io/lobster-documentation/defi-strategy/rebalancing-frequency.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.
