> ## Documentation Index
> Fetch the complete documentation index at: https://manuals.cobo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 生成 Binance API key

> 学习如何生成 Binance API Key，以便安全地访问交易服务。

当您将 Binance 账户关联到交易所钱包时，需要提供 API key 和 secret key。此外，还需要将 Cobo 加入 IP 白名单，并为 API key 分配特定权限。

本文介绍如何生成 Binance 的 API key，包括将 Cobo 加入 IP 白名单和设置权限。

<Note>内容如有变更，以 Binance 网站为准。详情请参阅<a href="https://www.binance.com/zh/support/faq/how-to-create-api-keys-on-binance-360002502072">如何在币安创建 API 密钥</a>。</Note>

1. 登录到您的 Binance 账户。
2. 前往**账户** > **API 管理**。
3. 点击**创建 API**。
4. 在**选择 API key 类型**对话框中，选择**系统生成的**，然后点击**下一步**生成 API key。
   <img src="https://mintcdn.com/cobo-6/Xx55w4tZ_Q9FQEki/cn/images/exchange-wallet/binance1.png?fit=max&auto=format&n=Xx55w4tZ_Q9FQEki&q=85&s=3d8e869d6e5b46998cd32dafa0204233" className="screenshot_modal" alt="选择 API key 类型对话框" width="1032" height="910" data-path="cn/images/exchange-wallet/binance1.png" />
5. 成功生成 API key 后，您将看到一个 API key 和一个 secret key。
   <Note>secret key 仅会以明文显示一次，请妥善保管。</Note>
6. 在**API 权限**部分，选择以下选项：
   * **允许读取**
   * **允许提现**
   * **允许子母账户划转**
   * **允许万向转账**
   <img src="https://mintcdn.com/cobo-6/Xx55w4tZ_Q9FQEki/cn/images/exchange-wallet/binance_ip.png?fit=max&auto=format&n=Xx55w4tZ_Q9FQEki&q=85&s=fd2d1f7853d0349d5ced05169b77a999" className="screenshot_full_screen" alt="API 权限设置" width="1999" height="761" data-path="cn/images/exchange-wallet/binance_ip.png" />
7. 在 **IP 地址权限**部分，选择**限制只对受信任 IP 的访问**，然后输入 Cobo 的 IP 地址 `18.177.234.7` 及 `18.180.16.190`。
   <img src="https://mintcdn.com/cobo-6/Xx55w4tZ_Q9FQEki/cn/images/exchange-wallet/binance4.png?fit=max&auto=format&n=Xx55w4tZ_Q9FQEki&q=85&s=7b0afd6cc950838769ae724f21441ff6" className="screenshot_full_screen" alt="IP 地址权限设置" width="1624" height="294" data-path="cn/images/exchange-wallet/binance4.png" />
8. 点击**保存**提交设置。

API key 现已生成，且设置已完成。您可以前往 Cobo Portal，使用 API key 和 secret key 关联您的 Binance 账户。如欲了解如何关联账户，请参见[设置交易所钱包](/cn/portal/exchange-wallets/set-up)。
