> For the complete documentation index, see [llms.txt](https://biyi.gitbook.io/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://biyi.gitbook.io/guide/basic/api/gate-app.md). Agents can also search and read this documentation through its [MCP server](https://biyi.gitbook.io/guide/~gitbook/mcp).

# 3.2 芝麻 Gate 创建 API（App）

创建前，请确认用于跟单的 Gate 账户已开通永续合约交易。

## 步骤 1 进入 API 管理

1. 登录 Gate App，点击首页左上角的用户头像。
2. 滑动到菜单底部，打开「其他」→「API」。也可尝试在首页搜索「API」。如果找不到入口，可使用[电脑网页指南](https://biyi.gitbook.io/guide/basic/api/gate.md)。

<figure><img src="https://content.gitbook.com/content/UYNPao5tBjlSEjbJfEFs/blobs/gK6EePO04wkgF2qgOj3B/image.png" alt="Gate App 首页左上角的用户头像" width="563"><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/UYNPao5tBjlSEjbJfEFs/blobs/UJFJWT1xzfwegxvw2cGV/image.png" alt="Gate App 菜单里的 API 入口" width="563"><figcaption></figcaption></figure>

## 步骤 2 创建 API 并配置权限

1. 点击「创建 API Key」，填写备注名，例如「币易合约跟单」。
2. 如果页面显示 API 类型和账户类型，分别选择「API V4 Key」和「交易账户」。在 IP 地址权限中选择「绑定 IP」，粘贴 [Gate IP 白名单](https://biyi.gitbook.io/guide/basic/api.md#ip-whitelist)。
3. 将 **永续合约** 设为 **读写**，将 **Account** 设为 **只读**。提现和其他权限保持关闭。
4. 点击「创建 API Key」或「提交」，按提示完成安全验证。

<figure><img src="https://3134925619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUYNPao5tBjlSEjbJfEFs%2Fuploads%2Fp2UtMFEEDYU7TdB6OQdn%2Fimage.png?alt=media&amp;token=a6051585-b635-4871-add7-00958c915f53" alt="Gate App 的 API 权限设置" width="563"><figcaption></figcaption></figure>

## 步骤 3 保存密钥

在创建成功的页面复制 **API Key** 和 **Secret Key** 并妥善保存。关闭页面后，Secret Key 无法再次查看。

创建完成后，[将交易所 API 绑定到币易](https://biyi.gitbook.io/guide/basic/api/bang-ding-jiao-yi-suo-api.md)。
