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

# Hyperliquid 价格历史

> 获取任意 Hyperliquid 市场（加密货币或股票）的价格历史，K 线从 1 秒到月线，以及任意期间的均价。

> AI agents: read [https://docs.hyperdash.com/skills/data](https://docs.hyperdash.com/skills/data) before using this API. Endpoint index: [https://data.hyperdash.com/llms.txt](https://data.hyperdash.com/llms.txt). Never ask the user to paste an API key into the chat.

> [!TIP]
>
> **向您的智能体提问**（需已连接 [Hyperdash Data MCP 服务器](https://docs.hyperdash.com/cn/data-api/mcp.md)）：
>
> ```text theme={null}
> 过去 30 天 BTC 的平均价格是多少？
> ```

[2 分钟连接您的智能体](https://docs.hyperdash.com/cn/data-api/quickstart.md)

## 示例答案

您的智能体会拉取 30 天的每小时 K 线，绘制价格图，并计算均价、最高价和最低价。

![折线图：2026 年 10 月 29 日至 11 月 28 日 Hyperliquid 上 BTC 的每小时价格，从约 78,200 USD 跌至 59,310 USD，并标出 68,816 USD 的 30 天均价。](https://mintcdn.com/hd-ebefeca3/yZu313HWnlJE-oK1/images/data-api/guides/price-history.png?fit=max\&auto=format\&n=yZu313HWnlJE-oK1\&q=85\&s=779ec9e9ba1202ec2c30bfdff93e7162)

BTC，2026 年 10 月 29 日至 11 月 28 日：

| | 价格 |
| - | - |
| 30 天均值 | 68,816 USD |
| 最高 | 81,177 USD |
| 最低 | 55,170 USD |
| 变化 | -24.2%（78,200 至 59,310 USD） |

## 开始使用

> [card] [1. 选择套餐](https://console.hyperdash.com?utm_source=web\&utm_medium=social\&utm_campaign=20261128-docs-guide-price-history)
>
> 每月 \$20 起。

> [card] [2. 连接您的智能体](https://docs.hyperdash.com/cn/data-api/quickstart.md)
>
> 只需 2 分钟。

## 常见问题

> [accordion] 哪些市场有价格历史？
>
> 所有 Hyperliquid 市场，包括加密货币和 Hyperliquid HIP-3 市场，例如黄金（`xyz:GOLD`）和 Nvidia（`xyz:NVDA`）。

> [accordion] 支持哪些 K 线周期？
>
> 从 1 秒到 1 个月：`1s`、`15s`、`30s`、`1m`、`3m`、`5m`、`15m`、`30m`、`1h`、`2h`、`4h`、`8h`、`12h`、`1d`、`3d`、`1w` 和 `1M`。

> [accordion] 可以下载吗？
>
> 可以。例如说：“将 30 天的每小时 BTC K 线导出为 CSV 文件。”

> [accordion] 可以追溯多久？
>
> 取决于您的套餐范围。参见[数据覆盖与历史](https://docs.hyperdash.com/cn/data-api/coverage.md)。

> [accordion] 会消耗多少积分？
>
> 约 730，约占 Hobby 套餐每月所含 500,000 积分的 0.15%。

> [accordion] 我需要写代码吗？
>
> 不需要。将您的智能体连接到 [Hyperdash Data MCP 服务器](https://docs.hyperdash.com/cn/data-api/mcp.md)，然后运行提示词即可。下方的 API 调用用于将其集成到您自己的应用中。

> [card] [Hyperliquid 历史数据](https://hyperdash.com/learn/hyperliquid-historical-data)
>
> 获取 Hyperliquid 历史数据的所有方式。

> [card] [股票和大宗商品](https://hyperdash.com/learn/hyperliquid-stocks-and-commodities)
>
> 所有已上线的股票和大宗商品永续合约。

## API 调用

面向开发者。请先设置您的 [API 密钥](https://docs.hyperdash.com/cn/data-api/authentication.md)：

```bash theme={null}
export HYPERDASH_API_KEY="hdk_sk_..."
```

| 您需要的数据 | 端点 | 积分 |
| - | - | - |
| 单个市场的 K 线 | [`GET /v1/markets/{coin}/candles`](https://docs.hyperdash.com/data-api/reference/get_candles) | 10 + 每根 1 |

**1. 获取每小时 K 线**

每个请求最多 1,000 根；沿 `next_cursor` 继续读取。`c` 为收盘价。

```bash theme={null}
curl "https://data.hyperdash.com/v1/markets/BTC/candles?interval=1h&limit=720" \
  -H "Authorization: Bearer $HYPERDASH_API_KEY"
```

参见[通用约定](https://docs.hyperdash.com/cn/data-api/conventions.md)和[积分费用](https://docs.hyperdash.com/cn/data-api/credit-costs.md)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.