> For the complete documentation index, see [llms.txt](https://codegreen.gitbook.io/codegreen/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codegreen.gitbook.io/codegreen/getting-started/pump-migration-bot-tutorial/step-9-set-minimum-and-maximum-holders-filter.md).

# Step 9: Set Minimum and Maximum Holders Filter

<figure><img src="https://749125823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuM1WRMXyQBRG9GO4oU1m%2Fuploads%2FEgiQU8kkJc9wUvLAiTdg%2FStep-10.png?alt=media&amp;token=689244fb-00d2-4a36-becd-85b36a8a00d2" alt=""><figcaption><p>Step 9: Set Minimum and Maximum Holders Filter</p></figcaption></figure>

In these steps, you’ll define a **range of token holders** to filter which tokens the bot will buy. This filter allows you to target tokens based on the number of holders at the time of migration from Pump.Fun to Raydium. If the token’s holders fall within your specified range, the bot will automatically buy it once it migrates to Raydium.

#### **How to Set the Holders Filter**

1. **Enter Minimum Holders**
   * Set the **minimum number of holders** for a token to be eligible for purchase. This ensures that the bot only considers tokens with a certain base level of support or interest.
2. **Enter Maximum Holders**
   * Set the **maximum number of holders** for a token to be eligible for purchase. This allows you to avoid tokens with too many holders, which may indicate high volatility or over-saturation.

#### **Example**

* **Minimum Holders: 50, Maximum Holders: 200**
  * If you set a minimum of **50 holders** and a maximum of **200 holders**, the bot will only buy tokens that have between **50 and 200 holders** at the time of migration. This helps you focus on tokens with a stable but not overcrowded holder base.

Setting a holders filter enables you to fine-tune your trading strategy, ensuring the bot buys only those tokens that meet your criteria for holder distribution, providing a balance of stability and growth potential.
