# Hyperliquid

### 交易所创建 API

1. 进入 Hyperliquid 的API页面： <https://app.hyperliquid.xyz/API>
   1. 输入 API 钱包名称，例如“***Hibot-API***”
   2. 点击“***生成***”按钮， 生成 API 钱包地址
   3. 点击“***授权 API 钱包***”按钮

<figure><img src="/files/5yUZHh62pqojosQM1Csg" alt=""><figcaption><p>创建API图示 - 1</p></figcaption></figure>

2. 弹出授权框
   1. 输入授权天数，例如“***180***”
   2. 此为生成地址的 API 密钥
   3. 点击“***授权***”

<div data-full-width="false"><figure><img src="/files/WqbIsQ7tMaeudusAZIeO" alt=""><figcaption><p>创建API图示 - 2</p></figcaption></figure></div>

{% hint style="danger" %} <mark style="color:red;">请注意：在点击“</mark><mark style="color:red;">**授权**</mark><mark style="color:red;">”之前请先</mark><mark style="color:red;">**复制**</mark><mark style="color:red;">好</mark> <mark style="color:red;"></mark><mark style="color:red;">**API 密钥**</mark><mark style="color:red;">，否则将无法再访问此密钥。</mark>
{% endhint %}

***

### 将 API 添加到 Hibot

1. 在 Hibot 的 API 管理页面，点击“***新增 API***”
   1. 交易所选择 “***HYPERLIQUID***”
   2. 用途选择“***套利***” / “***Arbitrage***”
   3. 输入您hyperliquid&#x7684;***主钱包地址***（即<mark style="color:red;">**登陆钱包地址**</mark>）
   4. 输入在上一个步骤中交易所生成的“***私钥***”

点击“***Submit***”提交

<div align="center"><figure><img src="/files/MXODUDmXE2RPrKeHxKts" alt=""><figcaption><p>添加API图示 - 1</p></figcaption></figure></div>

2. 添加成功后可在列表中查看该 API
   1. 点击“**测试** / ***Test***”按钮，如出现 “<mark style="color:green;">**Ok**</mark>” 字样即表示该API信息填写正确<mark style="color:green;">连接成功</mark>，若出现 “<mark style="color:red;">N/A</mark>” 字样即表示输入的 API 信息有误，请删除再重新添加
   2. 点击 “***Ping***” 按钮可测试连接交易所的延迟

<figure><img src="/files/YRcw4g2VRUNZhZEqPRTs" alt=""><figcaption><p>添加API图示 - 2</p></figcaption></figure>

{% hint style="info" %}
&#x20;关于 API 延迟，请参考[API连接延迟](/hibot-docs/others/api-delay.md)文档。
{% endhint %}


---

# 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://hibot-docs.gitbook.io/hibot-docs/arbitrage/exchange-api-settings/hyperliquid.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.
