> For the complete documentation index, see [llms.txt](https://dexdaily.gitbook.io/dexdaily/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dexdaily.gitbook.io/dexdaily/cac-telegram-bot-ho-tro-giao-dich/trojan-bot/mua-token-swap-limit-dca.md).

# Mua token (Swap/Limit/DCA)

### 1. Dán địa chỉ token vào bot

* Dán địa chỉ token vào bot để hiện bảng menu.

<figure><img src="https://1438063337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SC3wu2Tl4RqPMgcaPj3%2Fuploads%2FQKqjsi8j29uYaO0uTDrL%2Fimage.png?alt=media&amp;token=b5c85db6-b815-458e-880a-7f981536504d" alt=""><figcaption></figcaption></figure>

***

### 2. Swap

* **Swap:** Chế độ mua token tại mức giá thị trường hiện tại với các mức tiền mong muốn và Slippage đã cài đặt trước.

<figure><img src="https://1438063337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SC3wu2Tl4RqPMgcaPj3%2Fuploads%2Fq0OyOtzxRsQTMiEnOgCz%2Fimage.png?alt=media&amp;token=7fa6d55a-171b-471f-a2ab-75264bacf297" alt=""><figcaption></figcaption></figure>

***

### 3. Limit

* **Limit:** Chế độ mua token với lệnh điều kiện.

<figure><img src="https://1438063337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SC3wu2Tl4RqPMgcaPj3%2Fuploads%2FIFXa79yBOHl4xc5vcXH4%2Fimage.png?alt=media&amp;token=61e58ba3-e1b6-42de-b925-29031a84e574" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Price" %}

* **Price**: Cài đặt mức giá mong muốn mua token.

<figure><img src="https://1438063337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SC3wu2Tl4RqPMgcaPj3%2Fuploads%2Fy4N6jZciwJxWKHDEupGZ%2Fimage.png?alt=media&amp;token=9bee28b6-da93-4816-82ac-137af12a4264" alt=""><figcaption></figcaption></figure>

* Chọn nút `"Trigger Price"` -> điền <mark style="color:red;">**mức vốn hóa**</mark> mong muốn mua (ví dụ: <mark style="color:red;">2M</mark> mc, tức thực hiện lệnh mua ở mức vốn hóa 2 triệu usd) hoặc điền <mark style="color:red;">**phần trăm thay đổi**</mark> so với mức giá hiện tại (ví dụ: <mark style="color:red;">-20%</mark>, tức thực hiện lệnh mua khi giá token giảm 20%).
* **`"Expiry"`**: Thời gian hiệu lực của lệnh điều kiện (ví dụ: <mark style="color:red;">1d</mark>, tức sau 1 ngày lệnh điều kiện đối với token này sẽ hết hiệu lực).
* `"Create Order"` : chính thức khởi tạo lệnh điều kiện.![](https://1438063337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SC3wu2Tl4RqPMgcaPj3%2Fuploads%2F5ao3Cl29kPKXkhLIPmJO%2Fimage.png?alt=media\&token=6d800339-704b-4d15-b14b-9934e98abbb5)
  {% endtab %}

{% tab title="Schedule" %}

* **Schedule**: cài đặt thời gian chờ để gửi lệnh điều kiện đã cài đặt ở **Price**.
* Ví dụ: <mark style="color:red;">30m</mark>, tức 30 phút sau khi chính thức tạo lệnh `"Create Order"`, lệnh điều kiện này mới được kích hoạt.

<figure><img src="https://1438063337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SC3wu2Tl4RqPMgcaPj3%2Fuploads%2FEPWLQtUhJln9nEL4viOg%2Fimage.png?alt=media&amp;token=38cf9dc6-7aa2-4e97-b923-d48e0bed66e3" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Event" %}

* **Event**: mua token theo sự kiện:
  * ***Migration***: Nếu token vẫn ở trên Pumpfun/Moonshot, thực hiện lệnh mua ngay khi token này <mark style="color:red;">hoàn thành quá trình Bonding</mark>.
  * ***Dev Sell***: Nếu token vẫn được <mark style="color:red;">DEV nắm giữ</mark>, thực hiện lệnh mua ngay khi <mark style="color:red;">DEV bán ra</mark> token.
  * ***Expiry:*** Thời gian hiệu lực của lệnh điều kiện (ví dụ: <mark style="color:red;">1d</mark>, tức sau 1 ngày lệnh điều kiện đối với token này sẽ hết hiệu lực).

<figure><img src="https://1438063337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SC3wu2Tl4RqPMgcaPj3%2Fuploads%2FBjn7LLibpHhld26H2x5a%2Fimage.png?alt=media&amp;token=610bbd84-513b-4cfa-b30a-867604af4140" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

***

### 4. DCA

* **DCA**: Chế độ mua trung bình giá.

<figure><img src="https://1438063337-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1SC3wu2Tl4RqPMgcaPj3%2Fuploads%2F7rcnn65Ljh9cCGWa2mDd%2Fimage.png?alt=media&amp;token=cb75b161-6668-4f55-a79e-3f35116c752a" alt=""><figcaption></figcaption></figure>

| Interval      | <p>Vòng lặp thực hiện lệnh.<br>(ví dụ: <mark style="color:red;">30m,</mark> tức cứ 30 phút, thực hiện quét giá token, nếu giá token nằm trong khoảng Min-Max Price, thì thực hiện lệnh mua).</p> |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Duration      | <p>Thời gian hiệu lực.<br>(ví dụ: <mark style="color:red;">12h</mark>, tức các lệnh DCA này chỉ được thiện hiện trong giới hạn 12 giờ sau khi "Create Order")</p>                                |
| Min/Max price | <p>Mức giá thấp nhất/cao nhất có thể mua.<br>(ví dụ: 200k - 250k, tức chỉ thực hiện mua khi vốn hóa token thuốc khoảng này tại thời điểm quét giá).</p>                                          |
