> 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/api-yu-kai-fa-zhe-wen-dang/sheng-cheng-backpack-jiao-yi-suo-api-mi-yao.md).

# 生成 Backpack 交易所 API 密钥

打开 [**Backpack Exchange** ](https://backpack.exchange/)并登录，然后再按照以下步骤操作。

> Backpack 新用户？请先[创建账户](/support-docs/cn/jiao-yi-suo/jiao-yi-suo-zhang-hu/chuang-jian-xin-zhang-hu/zai-wang-ye-duan-chuang-jian-xin-zhang-hu.md)。

{% hint style="info" %}
API 密钥目前仅支持在网页端创建。
{% endhint %}

#### 1. 前往 设置(Settings) → API Keys，然后点击 新建API Key(New API Key)

<figure><img src="https://592295428-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp2WpAGNII69RQ8wSTC1p%2Fuploads%2FA5jMNd89TlMhmzEciPYO%2Fimage.png?alt=media&amp;token=9d8cc2f0-7a69-4140-8b30-6ba36e49763b" alt=""><figcaption></figcaption></figure>

#### 2. 输入密钥名称，选择子账户，然后点击 创建(Create) 完成

<div align="left"><figure><img src="https://592295428-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp2WpAGNII69RQ8wSTC1p%2Fuploads%2F9lFy2aSFBYywQQMgmp9V%2Fimage.png?alt=media&amp;token=79974173-f18d-4fac-87ea-b615fd9bf6dd" alt="" width="307"><figcaption></figcaption></figure></div>

> * **对于大多数个人用户，我们建议将 公钥 (public Key)字段留空。如果您选择提供 公钥：**
> * 您必须自行生成该密钥；
> * 它必须符合我们 [API 文档](https://docs.backpack.exchange/)中指定的支持格式和算法。
> * **只读(Read Only)** 按钮会将 API 密钥的权限限制为仅查看访问。

#### 3. 将您的 API key 和 API secret 记录并妥善保存在安全位置。

<div align="left"><figure><img src="https://592295428-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp2WpAGNII69RQ8wSTC1p%2Fuploads%2FI2gtu41ekkGKcdPr7oqp%2Fimage.png?alt=media&amp;token=8df4c4d5-7399-42d3-8f0f-18ca69201c8d" alt="" width="302"><figcaption></figcaption></figure></div>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.backpack.exchange/support-docs/cn/jiao-yi-suo/api-yu-kai-fa-zhe-wen-dang/sheng-cheng-backpack-jiao-yi-suo-api-mi-yao.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
