# 自动购买

## 自动购买资源（能量与带宽）

Auto Buy 功能可以让您为指定地址 **自动购买能量（Energy）或带宽（Bandwidth）**。\
无需手动创建购买订单，系统将根据您 **预先设置的配置** 自动下单。

#### **步骤 1：连接您的钱包**

请确保您的钱包已连接到 [**Tronsave.io**](https://tronsave.io/dashboard/buyer/buy-resource)。

#### **步骤 2：进入 → 标签页**

选择 **Energy** 或 **Bandwidth**。\
在购买类型中选择 **Auto**。

#### **步骤 3：点击 “**&#x6DFB;加自动购买 energy/bandwidth 规&#x5219;**” 按钮**

即可添加自动购买能量的规则。

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

#### **步骤 4：检查内部账户余额**

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

Auto Buy 功能需要使用 **内部账户（internal account）余额** 进行支付，\
而不是直接从您的钱包扣款。

要为 Auto Buy 提供资金，只需点击 **“Recharge（充值）”**，\
然后将 **TRX 存入系统显示的充值地址**。

***

#### **步骤 5：配置 Auto Buy 设置**

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

* **买单设置（每次触发 Auto Buy 时都会应用以下参数）：**
  * **资源目标地址：**\
    需要能量或带宽的钱包地址。\
    \&#xNAN;*注意：不能是合约地址或无效地址。*
  * **数量：** 要购买的资源数量。
  * **时长：** 租赁资源的天数。
  * **价格：** 可选&#x62E9;*（快速）*、*（中等）*、*（慢速）* &#x6216;*（自定义）* 价格。\
    \&#xNAN;*建议选择中等）模式。*
* **资源购买阈值**\
  设置最低资源余额。当目标地址的能量或带宽低于该阈值时，系统将自动触发新的购买订单。
* **持续时间限制**\
  决定 Auto Buy 的启用时段。您可以设置为 **Always（始终启用）**，\
  或自定义一个时间范围。
* **预算上限**\
  定义 Auto Buy 的停止条件：
  * **无限制：** 持续购买，不设上限。
  * **金额限制：** 当总支出 TRX 达到设定金额后停止 Auto Buy。
  * **订单数量限制：** 当自动创建的订单数量达到设定值后停止 Auto Buy。

👉 **保存设置后**，当目标地址的能量或带宽低于设定阈值时，\
系统会自动创建新的购买订单，直到达到您设定的预算限制为止。

## 管理 Auto Buy

创建 Auto Buy 设置后，您可以通过以下操作进行管理：

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

**\[1] 启用 / 停用（Enable / Disable）**\
暂时停止或重新启动 Auto Buy，而无需删除设置。

**\[2] 编辑（Edit）**\
修改触发阈值、持续时间、价格或预算限制等参数。

**\[3] 删除（Delete）**\
永久删除该 Auto Buy 设置。

**\[4] 历史记录（History）**\
查看过去自动购买订单的执行日志，包括资源数量、租赁时长、价格以及已花费的 TRX。

## 🧩 **Auto Buy – 常见问答**

**1. Auto Buy 使用哪个钱包的资金进行支付？**\
Auto Buy 仅使用您的 **内部账户（internal account）** 余额进行支付。

**2. 什么时候 Auto Buy 会被停用？**\
Auto Buy 会在以下情况下自动停止：

* 当达到 **持续时间限制** 或 **预算限制** 时；
* 当用户 **手动停用** 时；
* 当 **内部账户余额耗尽** 时，系统会自动将当前的 Auto Buy 设置标记为 *Inactive*。

**3. 如果 Auto Buy 被系统停止，我该怎么办？**

* 如果是因为达到限制（持续时间或预算）而停止，请 **编辑设置** 并 **重新激活（Active）**，或创建新的 Auto Buy 任务；
* 如果是因为余额不足而停止，请先 **向内部账户充值**，然后 **重新激活** 该设置。


---

# 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://docs.tronsave.io/chinese/buyer/auto-buy.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.
