---
id: document_item.connecting-to-the-gate-exchange
page_type: documentation_article
title: "连接 Gate 交易所"
description: "如何将 Gate 交易所连接到 Moonbot：创建 API 密钥、激活现货和合约账户、设置终端参数。"
section: documentation
category: "“Settings”按钮 / “Settings → Login”选项卡"
url: https://moonbot.pro/zh/documentation/settings-login-tab/connecting-to-the-gate-exchange?format=md
locale: zh
alternate_ru: https://moonbot.pro/ru/documentation/settings-login-tab/connecting-to-the-gate-exchange?format=md
alternate_en: https://moonbot.pro/documentation/settings-login-tab/connecting-to-the-gate-exchange?format=md
parent: https://moonbot.pro/zh/documentation/settings-login-tab?format=md
previous: https://moonbot.pro/zh/documentation/settings-login-tab/connecting-to-the-bybit-exchange?format=md
next: https://moonbot.pro/zh/documentation/settings-login-tab/connecting-to-the-bitget-exchange?format=md
status: published
updated_at: 2026-11-11T03:21:14+03:00
---

# 连接 Gate 交易所

在把 Moonbot 用作 Gate 的终端之前，建议通过我们的推荐链接在 Gate 交易所注册账户：\
🔗[https://www.gate.io/signup/MOONLOVE?ref_type=103](https://www.gate.io/signup/MOONLOVE?ref_type=103)

所有通过该链接注册的用户，在现货和合约上自动享受 20% 的返现。

使用 Moonbot 的推荐链接并激活 PRO 版本后，您可以获得以下奖励：

- **GT 自动买入**选项；
- **MoonHook** 策略；
- 用 **Pencil**（铅笔）在图表上模拟价格的工具；
- **在独立窗口中监控图表**的模块；
- **Moon Kernel** 模块 —— 客户端-内核模式，用于加快手动交易。

Moonbot 作为 Gate 的终端，支持现货和合约市场。

在独立服务器上使用 Gate 版 Moonbot 终端时，为获得更低的延迟（ping），请选择“日本”（东京）机房位置。

Gate 终端的激活通过 Moon Credits 窗口完成（说明见下文），需要 500 Moon Credits：激活主账户以及激活之后的每一个子账户都是如此。Moon Credits 仅面向 Moonbot PRO 版本的用户开放。在激活 Gate 之前，您必须已经激活了用于其他任一交易所的 Moonbot 终端 PRO 版本。

### 开启用 GT 支付手续费

要获得交易手续费折扣，需要：

1. 买入一些 GT 代币；
2. 进入交易所个人中心的 **My Fees** 页面；
3. 在“**Fee Rate**”部分点击“**More**”；
4. 选择“**GT Fee Rate**”；
5. 点击“**Confirm Use**”。

![](https://moonbot.pro/storage/editor-images/01%20GT%20Fee%20eng.jpg)

![(dark)](https://moonbot.pro/storage/editor-images/01%20GT%20Fee%20eng.jpg)

![](https://moonbot.pro/storage/editor-images/02%20GT%20Fee%20eng.jpg)

![(dark)](https://moonbot.pro/storage/editor-images/02%20GT%20Fee%20eng.jpg)

### 说明：如何在 Gate 上为 Moonbot 创建 API 密钥

### 在 Gate 交易所激活合约账户

Gate 交易所的合约账户只有在向其划转一定数量的资金后才会自动创建。\
如果输入 API 密钥时 Moonbot 日志中出现错误：\
**"label":"USER_NOT_FOUND","message":"please transfer funds first to create futures account"**，请执行以下操作：

1. 登录 Gate 交易所的个人中心；
2. 进入合约交易页面；
3. 向合约账户划转任意金额的 USDT。
4. 然后进入 **Account** → **API Key Management**。
5. 点击按钮 **Create API Key**。

![](https://moonbot.pro/storage/editor-images/01%20Create%20API%20Key%20eng.jpg)

![(dark)](https://moonbot.pro/storage/editor-images/01%20Create%20API%20Key%20eng.jpg)

在窗口 **Account Type** 中点击 **Trading Account：**

![](https://moonbot.pro/storage/editor-images/02%20Create%20API%20Key%20eng.jpg)

![(dark)](https://moonbot.pro/storage/editor-images/02%20Create%20API%20Key%20eng.jpg)

💡 **请注意！**

每位用户在经典账户上最多可以创建 20 组 API v4 密钥。

API 密钥所需的权限必须在创建时设置好。如果没有全部选中，在 Moonbot 终端中注册后使用时可能出现错误，届时只能新建 API 密钥，因为不建议编辑已创建的 API 密钥。

在 API 密钥的 **Note** 字段中填写其名称，例如 MOONBOT

在 **IP Permissions** 选项中可以选择：

- **Bind to IP**\
  出于安全考虑，建议把 IP 绑定到 API 密钥。每个 API 密钥最多可以绑定 40 个 IP 地址或 IP 段。选择该选项后会出现一个附加字段，可以直接填写单个 IP 地址或 IP 段；多个 IP 地址或 IP 段需用逗号分隔。\
  示例：192.168.1.1, 192.168.1.2, 192.168.0.1/24；
- **Later**\
  不绑定 IP。未绑定 IP 地址的 API 密钥会在 90 天后自动停用；连续 90 天以上未使用的 API 密钥（无论是否绑定 IP 地址）会在 90 天后自动删除。

在 **API Key Type** 选项中可以选择：

- **API v4 Key**（默认应选择它）；
- **API v2 Key。**

在选项 **Account Type** 中应选择：

- **Trading Account**

在 **Permissions** 选项中，应按截图选择各项：

![](https://moonbot.pro/storage/editor-images/03%20Create%20API%20Key%20eng-1783503367.jpg)

![(dark)](https://moonbot.pro/storage/editor-images/03%20Create%20API%20Key%20eng-1783503367.jpg)

然后点击按钮 **Submit**。

在窗口 **Risk Reminder** 中勾选全部三个复选框，并点击按钮 **I Accept**。

![](https://moonbot.pro/storage/editor-images/04%20Create%20API%20Key%20eng.jpg)

![(dark)](https://moonbot.pro/storage/editor-images/04%20Create%20API%20Key%20eng.jpg)

在窗口 **Security Verification** 中填写 **Fund password**（资金密码），输入 **Google Authenticator Code**，然后点击按钮 **Confirm**。

![](https://moonbot.pro/storage/editor-images/05%20Create%20API%20Key%20eng.jpg)

![(dark)](https://moonbot.pro/storage/editor-images/05%20Create%20API%20Key%20eng.jpg)

完成这些步骤后，API 密钥即创建成功。

![](https://moonbot.pro/storage/editor-images/06%20Create%20API%20Key%20eng.jpg)

![(dark)](https://moonbot.pro/storage/editor-images/06%20Create%20API%20Key%20eng.jpg)

⚠️ **重要！** \
请把 **Key** （API Key）和 **Secret**（Secret Key）保存在 U 盘上的文本文件中，或抄写在纸上：在 Moonbot 终端中注册密钥时（在选项卡 **Settings → Login**）需要用到它们。

### 说明：如何把 Gate 连接到 Moonbot 终端

1. 在 Gate 交易所网站上为主账户或子账户创建 API 密钥；
2. 把您用于其他交易所的主 PRO 终端所在的文件夹复制到新文件夹，并以管理员模式启动这份终端副本，以便之后把它设置为 Gate 终端；
3. 进入 **Settings → Login**，在 **Exchange** 字段中选择 **Gate Spot**（现货）或 **Gate Futures** （合约），然后点击按钮 **Apply**；
4. 在 **Settings → Login** 中注册您主账户或子账户的 Gate API 密钥；
5. 在 Moonbot 终端主窗口的右下角点击文字 **PRO version**，打开 **Moon Credits** 窗口，其中可以激活付费模块（见下图）；
6. 窗口 **Moon Credits** 的下方显示您的 Moon Credits 余额；激活主账户或一个子账户需要 500 Moon Credits；如果余额足够，请在 **Activate API Key** 区块中点击按钮 **Activate for 500 Credits**，API 密钥就会在该终端中激活，可用于在 Gate 交易所交易加密货币；
7. 如果显示 **Wrong account**，说明该账户不是通过上述推荐链接注册的；
8. 如果需要激活同一交易所的其他子账户，请按所需次数重复上述步骤。

![](https://moonbot.pro/storage/editor-images/MoonCredits_W-eng.jpg)

![(dark)](https://moonbot.pro/storage/editor-images/MoonCredits_B-eng.jpg)

### 使用 Gate 的特点（包括当前的限制）

- 无需切换到统一账户（UTA，像 Bybit 那样）；此外，没有 VIP2 等级也无法切换。
- Gate 交易所的交易对数量很多；因此 Moonbot 可能占用较多内存；这是正常的，但建议遵循“**1 个 Moonbot 对应 1 台 VPS**”的原则。
- 在合约市场上，可用余额的更新有延迟；
- 在 Gate 网站上，合约交易以“张”（合约）为单位；每个币种有固定的合约面值（例如 ETH 的合约面值为 0.01 ETH）；在 Moonbot 中这一逻辑被隐藏，数量以币种单位显示；例如，终端中 0.01 ETH 的仓位对应交易所网站上的 1 张 ETH 合约；
- 在现货市场上，1000 档深度的订单簿加载可能有最长 1 分钟的延迟；在此期间可用的是档位数量有限的订单簿；
- 在合约上首次启动 Moonbot 后，会用 2–3 分钟初始化仓位；在此期间无法更改杠杆和最大订单，自动杠杆管理也不工作；
- 再次启动时，自动杠杆管理在最初几分钟同样不工作；但可以手动更改杠杆；
- **API 中很可能没有公开的强平数据**；因此不支持 Liquidations（强平）策略；
- 终端不支持“**Hedge mode**”模式；
- **支持冰山订单**，合约和现货均可；订单的可见部分设为最小下单量；
- 由于 API 对行情请求的限额较低，行情数据的初始加载可能需要较长时间；手动交易时建议关闭选项 **Settings → Main → Analize coins** **on startup**；
- 自动交易时请严格遵守“**1 个 Moonbot 对应 1 台 VPS**”的原则；建议的 **VPS 所在地区为东京（日本）**；
- 在合约市场上，API 不返回手续费数值；报告中的盈利可能与实际盈利相差 maker 手续费的数额。

获得 Gate 的 API 密钥并在 Moonbot 终端中注册之后，可以继续设置终端，或者开始创建策略，用于检测波动行情并在 Gate 交易所进行加密货币自动交易（参见 [Moonbot 中的自动交易 >>](https://moonbot.pro/zh/begin/simple-auto-trading/what-is-autotrading-in-moonbot?format=md)）。

## 导航

路径: [首页](https://moonbot.pro/zh?format=md) / [文档](https://moonbot.pro/zh/documentation?format=md) / [“Settings”按钮](https://moonbot.pro/zh/documentation/settings-button?format=md) / [“Settings → Login”选项卡](https://moonbot.pro/zh/documentation/settings-login-tab?format=md) / 连接 Gate 交易所

上级栏目: [“Settings → Login”选项卡](https://moonbot.pro/zh/documentation/settings-login-tab?format=md)

上一页: [连接 Bybit 交易所](https://moonbot.pro/zh/documentation/settings-login-tab/connecting-to-the-bybit-exchange?format=md)

下一页: [连接 Bitget 交易所](https://moonbot.pro/zh/documentation/settings-login-tab/connecting-to-the-bitget-exchange?format=md)

## 相关内容

- [连接 Bitget 交易所](https://moonbot.pro/zh/documentation/settings-login-tab/connecting-to-the-bitget-exchange?format=md)
- [连接 Hyperliquid 交易所](https://moonbot.pro/zh/documentation/settings-login-tab/connecting-to-the-hyperliquid-exchange?format=md)
- [连接 OKX 交易所](https://moonbot.pro/zh/documentation/settings-login-tab/connecting-to-the-okx-exchange?format=md)
