> For the complete documentation index, see [llms.txt](https://support.backpack.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.backpack.exchange/support-docs/cn/jiao-yi-suo/jiao-yi/jiao-yi-ji-qi-ren/xian-huo-wang-ge.md).

# 现货网格

## **为什么需要两种资产？**

现货网格同时需要：

* **计价资产**（如 USDC）→ 用于买入订单
* **基础资产**（如 BTC）→ 用于卖出订单

订单根据以下参数预先计算：

* 价格范围
* 网格数量
* 总投入金额

## **什么是缺口（Deficit）？**

缺口是指下达所有卖出订单所缺少的基础资产数量。

**示例：**

* 网格：BTC/USDC，范围 $90–$110
* 当前价格：$100
* 卖出订单所需 BTC：0.5 BTC
* 可用数量：0.2 BTC

→ 缺口 = **0.3 BTC**

**缺口状态**

* **缺口 = 0** → 无需操作
* **缺口 > 0** → 您必须选择一种资金补充方式

## **资金补充方式：借贷模式与买入模式**

|      | 借贷模式   | 买入模式           |
| ---- | ------ | -------------- |
| 工作原理 | 借入基础资产 | 使用 USDC 买入基础资产 |
| 前期成本 | 无      | 立即减少 USDC      |
| 持续成本 | 产生利息   | 无              |

{% hint style="info" %}
**注意：**\
买入模式使用 **最高买入价格（Max Entry Price）**&#x6765;限制买入价格上限（默认约为当前价格上方 1%）。
{% endhint %}

**自动选择逻辑**

系统将自动选择资金补充方式：

* 基础资产充足 → 无需补充资金
* 仅一种方式可用 → 使用该方式
* 两种方式均可用 → 默认使用**借贷模式**（可手动切换）


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://support.backpack.exchange/support-docs/cn/jiao-yi-suo/jiao-yi/jiao-yi-ji-qi-ren/xian-huo-wang-ge.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
