# 生成 Backpack 交易所 API 密钥

{% 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&#x26;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&#x26;token=79974173-f18d-4fac-87ea-b615fd9bf6dd" alt="" width="307"><figcaption></figcaption></figure></div>

> * **对于大多数个人用户，我们建议将 公钥 (public Key)字段留空。如果您选择提供 公钥：**
>   * 您必须自行生成该密钥；
>   * 它必须符合我们 [API 文档](https://docs.backpack.exchange/)中指定的支持格式和算法。
> * &#x20;**只读(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&#x26;token=8df4c4d5-7399-42d3-8f0f-18ca69201c8d" alt="" width="302"><figcaption></figcaption></figure></div>


---

# Agent Instructions: 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:

```
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>
```

The question should be specific, self-contained, and written in natural language.
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.
