# Auto Rebalance

## What is Auto Rebalance?

Auto Rebalance is an automation feature that automatically adjusts your liquidity position whenever market conditions meet your predefined triggers. Instead of manually resetting your price range, the system updates it for you based on your selected strategy — ensuring your position remains active and continues earning fees.

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FLp3OkqU3Nr9hKdrKwwS0%2Fimage.png?alt=media&#x26;token=0fbaf7e4-b6a8-44b8-9e8a-ebe46bd707b9" alt=""><figcaption></figcaption></figure>

### Why Use Auto Rebalance?

* **Stay in Range:** Prevents your LP position from becoming inactive when the price moves beyond your selected boundaries.
* **Maximize Earnings:** Maintains optimal range placement to capture more trading fees.
* **Automate Workflows:** Eliminates the need for manual monitoring and adjustments.
* **Flexible Strategies:** Choose how the system should rebalance based on your risk and fee preferences.

## How It Works

Auto Rebalance consists of a few core components that work together to automate your liquidity strategy:&#x20;

* **Triggers:** conditions that activate rebalancing
* **Start Price:** reference price for calculations
* **New Range:** the next Min/Max range after activation
* **Time Delay:** buffer before execution
* **Recurring Mode:** automatically repeats the cycle

### **Trigger**

Auto Rebalance offers three types of triggers. A trigger activates the automation when market conditions match your configuration.

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FEuLYYIBz2wS1iLy2Id7D%2Fimage.png?alt=media&#x26;token=fe1baf95-344a-4f93-956b-b309e5f21f03" alt=""><figcaption></figcaption></figure>

#### **Out of Range Trigger**

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FiBkjOKaz5eThJHi34cxF%2Fimage.png?alt=media&#x26;token=576e8e0a-e131-448a-b2a8-db88fcdf4d63" alt=""><figcaption></figcaption></figure>

Fires when the current price moves **outside your existing liquidity range**.

You can choose:

* Min-only trigger (price drops below your min range)
* Max-only trigger (price rises above your max range)
* Both

#### **Price Change Percentage Trigger**

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2F1d7ERhfT1im00D2Ckz9c%2Fimage.png?alt=media&#x26;token=b5389c4f-afda-44d2-965d-73ad706b42ec" alt=""><figcaption></figcaption></figure>

Fires when the price moves by a specific **percentage** relative to the current price.

Supports:

* Below current by X%
* Above current by X%
* You may combine both directions.

Example (based on the image):

* Current Price: **3.00**
* Start Price set to: **2.90**
* Below Start Price: **-15%** → Trigger fires if price drops **15% below 2.90**, meaning it reaches **2.465**.
* Above Start Price: **+15%** → Trigger fires if price rises **15% above 2.90**, meaning it reaches **3.335**.

#### **Absolute Price Trigger**

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FjJbu0wBBSHzonP3WmZ0z%2Fimage.png?alt=media&#x26;token=f684ded2-0541-4784-96ed-5f6165a05588" alt=""><figcaption></figcaption></figure>

Fires at a specific **absolute price level**.

Supports:

* Below current by X \<quote-token>
* Above current by X \<quote-token>
* You may combine both directions.

Example based on the above image (SUI/USDC Absolute Price Trigger):

* Start Price: **2.90 USDC**
* "Below Start Price by **-0.3 USDC**" → trigger fires when price drops to **2.60 USDC**.
* "Above Start Price by **+0.5 USDC**" → trigger fires when price rises to **3.40 USDC**.

#### **Start Price**

The reference price used for your trigger. You can set it manually or use the current market price instantly.

*Example 1 — Using Current Price (SUI/USDC pool)*\
If SUI is currently **3.00 USDC**, tapping **Use Current** sets the Start Price to 3.00 USDC immediately.

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FNlTsgVakme1otaTAj8WH%2Fimage.png?alt=media&#x26;token=dc36d5f5-baac-4167-862b-dbbe684c4dc5" alt=""><figcaption></figcaption></figure>

*Example 2 — Manual Start Price*\
You believe the key level is **2.90 USDC**, so you manually enter 2.90 USDC. Trigger conditions (e.g., below or above) are calculated from this custom reference.

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FjJbu0wBBSHzonP3WmZ0z%2Fimage.png?alt=media&#x26;token=f684ded2-0541-4784-96ed-5f6165a05588" alt=""><figcaption></figcaption></figure>

### **New Range**

New Range defines the next liquidity boundaries (Min and Max) that your position will move into after a trigger activates.

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FutRHXJYqZ3XFnFoMFu4r%2Fimage.png?alt=media&#x26;token=1ac98a03-3645-494b-b565-5d9031062088" alt=""><figcaption></figcaption></figure>

After a trigger activates, the system creates a new price range based on:

* **Below Future Price** → new Min
* **Above Future Price** → new Max

New Range can be configured in two ways, and both methods are calculated based on the **future price** after the trigger condition is hit:

* **Absolute Price Mode:** Set the exact price difference from the future price (e.g., ±0.3 USDC).
* **Percentage Mode:** Set the range based on percentage movement relative to the future price (e.g., ±10 %).

### Time Delay

Adds a buffer time before the automation executes. The trigger only executes if the condition stays valid for the duration you set.

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FfJbEJ8kedxIWKNRc7lh9%2Fimage.png?alt=media&#x26;token=4b19eea4-9169-4b2a-afa2-605e65e32372" alt=""><figcaption></figcaption></figure>

**Example:**

* You set a **1‑hour Time Delay**.
* Price hits the trigger level but only stays there for **2 seconds** → **No rebalance** happens.
* After **1 hour**, the system checks the trigger condition again; if the condition is still satisfied, it **executes the rebalance**.

This helps prevent unnecessary rebalances caused by quick spikes or temporary volatility.

## **Ending Trigger**

The **Ending Trigger** determines when an automation cycle should stop after it has started. It acts as a final condition that, once met, terminates the current rebalance cycle.&#x20;

To activate the Ending Trigger, turn on the toggle switch:

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FC32oPwXD3Hg1fpUQaxDI%2Fimage.png?alt=media&#x26;token=1c71fe17-267a-4d22-b964-d79f915427b6" alt=""><figcaption></figcaption></figure>

Users can configure Ending Trigger using **three modes**: Price, Time, and Count.

#### **Ending Trigger — Price Mode**

Allows you to stop the automation when price crosses a specific price level.&#x20;

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FESe5nw72Yje4tgWhFEBH%2Fimage.png?alt=media&#x26;token=bb6d2d77-da7a-41e6-a2d3-87f797a0eb6b" alt=""><figcaption></figcaption></figure>

You can configure:

* **Price drops below X** → stops the cycle when price falls below your chosen threshold.
* **Price rises above X** → stops the cycle when price increases above your chosen threshold.

**Example (SUI/USDC):**

* Start Price: **2.90**
* Ending Trigger (Price): Price drops below **2.35**, or price rises above **3.60** In either case, once the price hits one of these boundaries, the cycle **ends**.

#### **Ending Trigger — Time Mode**

Stops the automation after a set duration has passed from the moment the cycle begins.

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2F8cO5sG0K330CxilmFHkj%2Fimage.png?alt=media&#x26;token=08e99764-44b1-4610-beb8-182eb0dd0728" alt=""><figcaption></figcaption></figure>

**Example:**

* Ending Trigger set to **12 hours**
* Even if the automation has not executed all possible rebalances, after **12 hours**, the cycle ends.

Useful when you want automation to run only for a limited time window.

#### **Ending Trigger — Count Mode**

Ends the cycle after a specific number of successful rebalances.

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FIruzHMY037osYOKv18qo%2Fimage.png?alt=media&#x26;token=cd32f7a5-57b6-4bd1-b000-bfc7cf56305c" alt=""><figcaption></figcaption></figure>

**Example:**

* Ending Trigger set to **12 executions** Once 12 rebalances have been completed, the automation stops regardless of price conditions.

### **Compound & Recurring**

These settings allow you to customize how the automation behaves after each rebalance.

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FeJXgekPb7WcDfuTqd0bq%2Fimage.png?alt=media&#x26;token=c6bac68c-3c66-4fc5-82d2-0ebb8ca0a6a4" alt=""><figcaption></figcaption></figure>

#### **Compound**

If enabled, all tokens left after the rebalance (e.g., unutilized amounts or rewards) are automatically added back into your liquidity position before deploying into the new range.

**Example (SUI/USDC):**

* After a rebalance, you have **$18** leftover.
* With **Compound ON**, the system adds this $18 to your liquidity and deploys a larger position into the new range.
* With **Compound OFF**, the $18 remains in your wallet or stays idle.

#### **Recurring**

If enabled, the automation will start a **new cycle** after completing the current rebalance.

**Example:**

* Your trigger activates at price **3.40** and a rebalance executes.
* With **Recurring ON**, the system automatically resets a fresh cycle using the updated Start Price and conditions.
* With **Recurring OFF**, the automation stops after one rebalance until you manually re‑enable it.

## How to Set Up Auto Rebalance

Setting up Auto Rebalance is simple:

### **Step 1 — Open Your Position Details**

Go to **LP Pro  → Open Positions**, then select the position you want to automate.

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FiwejihaCo0JPskEkjPOH%2Fimage.png?alt=media&#x26;token=354064ae-9775-43ec-bf4a-c0f17813eb43" alt=""><figcaption></figcaption></figure>

### **Step 2 — Create an Auto Rebalance Rule**

Inside your Position Details panel, click **Create Auto Rebalance**.&#x20;

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2F121jYD2imu3pFiRQtJMt%2Fimage.png?alt=media&#x26;token=23ef6f27-8102-4775-bb1b-4c4efb876871" alt=""><figcaption></figcaption></figure>

You’ll be asked to choose your preferred rebalance strategy.&#x20;

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FLp3OkqU3Nr9hKdrKwwS0%2Fimage.png?alt=media&#x26;token=0fbaf7e4-b6a8-44b8-9e8a-ebe46bd707b9" alt=""><figcaption></figcaption></figure>

The meaning of each field has already been explained above.

### **Step 3 — Confirm Setup**

Once you click **Confirm**, your Auto Rebalance rule becomes active:

* The system monitors your position 24/7
* Rebalances happen automatically when conditions are met

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FPftIqaNgevOfrFhYEaNF%2Fimage.png?alt=media&#x26;token=b9ed886b-f097-4959-b92c-7f91ac538b2a" alt=""><figcaption></figcaption></figure>

### Step 4 — Monitor Auto Rebalance Activity

In your Position Details, you will find a detailed list of all Auto Rebalance rules you have configured:

<figure><img src="https://2380703610-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy7rOL9uvLN542fZi4a7q%2Fuploads%2FgodShGO3KEEibuCEEcwk%2Fimage.png?alt=media&#x26;token=eb73e6d1-a3ac-4ef6-afe9-44419759a9eb" alt=""><figcaption></figcaption></figure>

You can modify or disable the rule anytime.

## Summary

Auto Rebalance keeps your LP position optimized without constant manual intervention. With multiple trigger types and strategy options, it adapts to beginners and advanced LPs alike — helping you stay active, capture more fees, and manage liquidity efficiently.
