> For the complete documentation index, see [llms.txt](https://sector-finance.gitbook.io/sector-finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sector-finance.gitbook.io/sector-finance/risk-engine/auto-rebalancing.md).

# Auto-Rebalancing

Once we combine our Uniswap LP position with the borrowed assets, we end up with is a short-gamma position similar to a short straddle. This position would lose money if the price of the volatile asset shifted dramatically in either direction. This is also sometimes referred to as “impermanent loss.”

Here is a graph of what this impermanent loss looks like for a hedged uniswap LP position (the graph does not include any earned fees). As you can see, if the price jumps 100% we’ll suffer roughly a 10% loss.&#x20;

<figure><img src="/files/0Egm40JxE8uDbnq9ER84" alt=""><figcaption></figcaption></figure>

To limit losses, our strategy automatically rebalances the portfolio if the price shifts around 8% in either direction, limiting our losses to about .08% for each interval. As a result, we can eliminate Impermanent Loss in exchange for discrete losses incurred as part of rebalancing. As long as our rebalancing costs are lower than the fees we receive from providing liquidity, the strategy will remain profitable. The worst case scenario for the portfolio is when prices jump back and forth within a short period of time forcing us to rebalance multiple times. This can lead to short periods of negative performance.


---

# 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, and the optional `goal` query parameter:

```
GET https://sector-finance.gitbook.io/sector-finance/risk-engine/auto-rebalancing.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
