# Copy Trade DLMM

***

Run `/valhalla settings_dlmm` and click **Follow Wallet**.

Set the **max size and copy ratio** for the wallet you followed.

* You can also configure advanced controls (see below after image).

Click **Turn On** — and you're live!

<figure><img src="/files/1xOGXhg71v5q0dST8XQ7" alt=""><figcaption></figcaption></figure>

#### Ratio trading helps you scale positions relative to the wallet you're copying.&#x20;

#### Example Setup:

A general rule of thumb is to just take the total SOL you have, divided by the total amount of SOL your target wallet has (including open positions). So if you have 5 and they have 100 sol, then 5/100 = 5% ratio.

This helps avoid going all-in on small positions and prevents outsized exposure.

Image below shows how to set-up Ratio Trading.

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

You can also **copy up to 4 different wallets**, each with its own unique settings.\
This allows for tailored strategies across wallets based on their risk profile or purpose. For example:

* One wallet can have **SOL Only Mode** enabled, while another operates with it **disabled**.
* A **safer wallet** may be set with **0 Jup Organic Score** to allow full flexibility.
* A **degen wallet** can have a **minimum Jup Organic Score threshold** to avoid risky trades.

This setup ensures each wallet functions according to your custom strategy.

#### Manual Commands

* `/valhalla close_all_positions` — Closes all open DLMM positions.
* `/settings` — Adjust the **max fee paid to Jito**. Default is 0.001 SOL (\~17¢). You can lower this to 0.0001 to reduce costs.

#### Bot Behaviour and Logic

Max **20 positions** at a time.\
We **will NOT copy**:

* If the wallet **adds liquidity** to an existing position (feature coming soon).
* If the claim fee is **under $2**.
* **Manually opened DLMMs** — they will be auto-closed to avoid desync.

If a **swapping error** occurs, we retry with **Jupiter Ultra**, which is more consistent but charges **0.1%** and may cause slippage.

#### Notification and PNL Tracking

* The bot will **DM you** each time a trade is executed or closed.
* You'll receive **PNL Images** to visualize profits/losses.

**To enable DMs**:

* (A) Turn on DMs for the server, or
* (B) Click the **Valhalla Bot** in the user list → Click avatar → Message icon → Start chat → Run commands directly via DM

#### Fees

* We'll only copy the claim fee if it's above $2.
  * If you have a swapping error, we will retry using Jupiter Ultra, which is much more consistent, but they charge 0.1% and sometimes have higher slippage
  * We will force close any random DLMM position you open manually.
  * Also, if the target adds liquidity to a position he is already in, currently we will ignore this. In the future, we will support the addition of one liquidity add. The target can open a new position in the same coin and we'll still follow it.

#### Max Positions open with Timeframe

The **Max Open Positions** setting now supports **time-based limits**, allowing you to restrict how many trades per wallet can be copied within a specific timeframe (e.g., 5 trades per hour).\
\
How to use:

1. Run `/valhalla settings_dlmm`
2. Click on "Wallet Settings" and then **"Advance Settings" (for your followed wallet)**
3. Choose:
   * **Number of positions**
   * **Timeframe in minutes** (e.g., 60 for 1 hour)

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

#### Max Target Wallets per Position

You can now set a limit on how many target wallets can trigger a copy trade for the **same token** within a certain timeframe.

New features:

* Tracks both **open and close** events
* Timeframe setting has been changed from **hours → minutes** for more precision

This prevents overexposure to tokens that are being simultaneously targeted by multiple wallets.

#### ~~New Command: `/valhalla buy_dlmm_tx`~~

~~This new command lets you manually copy **any live DLMM trade** by entering the transaction signature and your desired SOL amount.~~

~~Example:~~

```bash
/valhalla buy_dlmm_tx
transaction: [TX HASH]
amount: 1.5
```

~~Works for:~~

* ~~Duplicate positions~~
* ~~Missed trades~~
* ~~Handles add/remove/claim/close actions like any normal copy~~

~~The bot will also alert you when you have insufficient balance to copy a trade. You will now receive a custom recovery command in DM. This command allows you to take the trade manually at your own convenience.~~\
\
WORK IN PROGRESS - WILL BE LIVE AGAIN SOON

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

#### Smart Token Retention Logic

The bot now:

* Preserves **accurate copy ratios**
* Dynamically calculates **top-ups** to existing positions
* Prevents over-stacking of tokens if the wallet you copy partially re-enters

#### External Tools

* Make sure to always have the <https://lp4fun.vercel.app/> website open for both your wallet, and the wallet(s) you are copying so you can compare your current positions side by side.
* And once every few weeks go to [https://www.burnlify.com](https://www.burnlify.com/) to burn old tokens / close empty accounts

#### Final Tips

* Always **read this before using**: [DLMM Risk & Warnings](https://discord.com/channels/687032564829126657/1362307923069636788/1372444596306579549)
* You are **100% responsible** for your funds. Copying high-risk wallets or poor sizing can result in complete loss.
* Use ratio trading and filters for safer execution.

### DAMM Copying (Experimental / Disabled for Now)

The bot now supports **copying DAMM positions** (Dynamic AMM), but this feature is **currently disabled** due to ongoing security evaluations.

When enabled:

* You can toggle **DAMM mode** via:
  * `/settings_dlmm` → **Wallet Settings** → Enable DAMM
* Position size is **capped at 0.2 SOL**
* **No filters**: Market Cap, Token Age, Jupiter Score are ignored
* **Initialize\_Pool** transactions are now supported
* `/valhalla close_all_positions` works for both DLMM and DAMM
* DM/Embed labels now clearly show **DLMM vs. DAMM**

📌 *Note: We will announce when this is officially available.*

***


---

# 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://valhalla-bot.gitbook.io/valhalla-bot/copy-trade-dlmm.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.
