Hyperliquid Perp Market Data API

io.github.Br0ski777由 GitHub 账号 Br0ski777 发布v1.1.0更新于 Oct 24, 2026

Hyperliquid perp order book, prices, funding, OI, candles. x402 paid.

已验证SSE可网页运行金融数据与分析

概览

AI 生成的概览

远程 MCP 端点,提供 Hyperliquid 永续合约市场数据——订单簿、价格、资金费率、未平仓量与 K 线,按次通过 x402 付费。

可以做什么
  • 获取单个 Hyperliquid 永续币种的 L2 订单簿深度、中间价与标记价、资金费率、未平仓量和 24 小时成交量
  • 获取全部已上市永续市场的快照,含价格、资金费率、未平仓量、成交量和日内涨跌
  • 按指定周期和数量拉取某币种的历史 OHLCV K 线
  • 三个数据端点均提供 GET 与 POST 两种调用方式
适用场景
适合需要 Hyperliquid 永续合约数据的场景:市场筛选、比较资金费率、下单前查看价差与深度,或对永续价格历史做技术分析和回测。
运行要求
以 URL 方式添加的远程 MCP 端点,无需 API 密钥或注册。每次调用需通过 x402 协议以 Base L2 上的 USDC 付费,因此需要支持 x402 的客户端和已充值的钱包来完成支付挑战。
安装前请注意
每次调用都会产生费用(约每请求 0.002–0.003 美元,以 Base 上的 USDC 支付),重复或自动化查询会持续消耗钱包余额。支付由第三方 facilitator(Coinbase CDP、PayAI)处理,数据来自第三方市场平台而非 Hyperliquid 官方。该服务器只读取行情数据,不执行交易。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Hyperliquid Perp Market Data API,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 SSE。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.Br0ski777%2Fhyperliquid-data/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "hyperliquid-perp-market-data-api": {
      "type": "sse",
      "url": "https://hyperliquid-data.api.klymax402.com/mcp"
    }
  }
}

README

Hyperliquid Perp Market Data API

[MCP Server] [x402] [License: MIT]

Hyperliquid perp market data -- order books, prices, funding rates, OI, volume, OHLCV candles in one API. Pay-per-call via x402 (USDC on Base L2) -- no API key, no signup, no rate-limit wall.

Part of the klymax402 marketplace -- 100 x402 micropayment APIs for AI agents, one wallet, USDC on Base.

Quickstart -- MCP

Add to your MCP client config (Claude Desktop, Cursor, ElizaOS, etc.):

json
{  "mcpServers": {    "hyperliquid-data": {      "url": "https://hyperliquid-data.api.klymax402.com/mcp"    }  }}

Quickstart -- HTTP (x402)

bash
curl "https://hyperliquid-data.api.klymax402.com/api/orderbook?coin=BTC"# -> 402 Payment Required, with an x402 payment challenge in the response body

Any x402-aware client (@x402/fetch, x402-agent-tools, ATXP) handles the 402 -> sign -> retry cycle automatically.

Tools

ToolMethodPathPriceDescription
hyperliquid_get_market_dataGET/api/orderbook$0.003L2 order book for a Hyperliquid perp pair
hyperliquid_get_market_dataPOST/api/orderbook$0.003L2 order book for a Hyperliquid perp pair (POST variant)
hyperliquid_get_all_marketsGET/api/markets$0.003All mid prices, funding rates, OI, volume for every Hyperliquid asset
hyperliquid_get_all_marketsPOST/api/markets$0.003All mid prices, funding rates, OI, volume for every Hyperliquid asset (POST variant)
hyperliquid_get_candlesGET/api/candles$0.002OHLCV candlestick data for a Hyperliquid perp pair
hyperliquid_get_candlesPOST/api/candles$0.002OHLCV candlestick data for a Hyperliquid perp pair (POST variant)

hyperliquid_get_market_data

Use this when you need Hyperliquid perpetual futures data for a specific coin. Returns full L2 order book depth with real-time pricing and funding metrics in one call.

Parameters

NameTypeRequiredDescription
coinstringyesCoin symbol (e.g. BTC, ETH, SOL, ARB, DOGE)

Returns

  • bids -- array of bid levels with price and size
  • asks -- array of ask levels with price and size
  • midPrice -- current mid price between best bid/ask
  • markPrice -- oracle mark price used for liquidations
  • fundingRate -- current hourly funding rate (e.g. 0.0001 = 0.01%)
  • openInterest -- total open interest in USD
  • volume24h -- 24-hour trading volume in USD

Example response:

json
{"midPrice":67450.5,"markPrice":67448.2,"fundingRate":0.00008,"openInterest":1250000000,"volume24h":3400000000,"bids":[{"price":67450,"size":12.5}],"asks":[{"price":67451,"size":8.3}]}

When to use: placing trades on Hyperliquid. Essential for checking spread, depth, and funding before entering a position.

hyperliquid_get_market_data

Use this when you need Hyperliquid perpetual futures data for a specific coin. Returns full L2 order book depth with real-time pricing and funding metrics in one call. POST variant of hyperliquid_get_market_data -- same params passed as JSON body instead of query string.

Parameters

NameTypeRequiredDescription
coinstringyesCoin symbol (e.g. BTC, ETH, SOL, ARB, DOGE)

Returns

  • bids -- array of bid levels with price and size
  • asks -- array of ask levels with price and size
  • midPrice -- current mid price between best bid/ask
  • markPrice -- oracle mark price used for liquidations
  • fundingRate -- current hourly funding rate (e.g. 0.0001 = 0.01%)
  • openInterest -- total open interest in USD
  • volume24h -- 24-hour trading volume in USD

Example response:

json
{"midPrice":67450.5,"markPrice":67448.2,"fundingRate":0.00008,"openInterest":1250000000,"volume24h":3400000000,"bids":[{"price":67450,"size":12.5}],"asks":[{"price":67451,"size":8.3}]}

When to use: placing trades on Hyperliquid. Essential for checking spread, depth, and funding before entering a position.

hyperliquid_get_all_markets

Use this when you need a snapshot of all Hyperliquid perpetual markets at once. Returns pricing, funding, and volume data for every listed asset in a single call.

Parameters: none.

Returns

  • markets -- array of all listed perp assets
  • totalMarkets -- number of listed perp markets
  • timestamp -- data timestamp in ISO format

Example response:

json
{"markets":[{"coin":"BTC","midPrice":67450,"fundingRate":0.00008,"openInterest":1250000000,"volume24h":3400000000,"dayChange":2.3},{"coin":"ETH","midPrice":3520,"fundingRate":0.00012,"openInterest":890000000,"volume24h":1200000000,"dayChange":1.1}],"totalMarkets":148}

When to use: screening all Hyperliquid markets, finding highest funding rates, or building a market overview dashboard.

hyperliquid_get_all_markets

Use this when you need a snapshot of all Hyperliquid perpetual markets at once. Returns pricing, funding, and volume data for every listed asset in a single call. POST variant of hyperliquid_get_all_markets -- same params passed as JSON body instead of query string.

Parameters: none.

Returns

  • markets -- array of all listed perp assets
  • totalMarkets -- number of listed perp markets
  • timestamp -- data timestamp in ISO format

Example response:

json
{"markets":[{"coin":"BTC","midPrice":67450,"fundingRate":0.00008,"openInterest":1250000000,"volume24h":3400000000,"dayChange":2.3},{"coin":"ETH","midPrice":3520,"fundingRate":0.00012,"openInterest":890000000,"volume24h":1200000000,"dayChange":1.1}],"totalMarkets":148}

When to use: screening all Hyperliquid markets, finding highest funding rates, or building a market overview dashboard.

hyperliquid_get_candles

Use this when you need historical OHLCV candlestick data for a Hyperliquid perpetual pair. Returns open, high, low, close, volume for the specified interval.

Parameters

NameTypeRequiredDescription
coinstringyesCoin symbol (e.g. BTC, ETH, SOL)
intervalstringnoCandle interval (1m, 5m, 15m, 1h, 4h, 1d)
limitnumbernoNumber of candles to return (default 100, max 5000)

Returns

  • candles -- array of OHLCV bars
  • coin -- the coin symbol queried
  • interval -- the candle interval used
  • count -- number of candles returned

Example response:

json
{"coin":"BTC","interval":"1h","count":100,"candles":[{"timestamp":"2026-04-13T10:00:00Z","open":67200,"high":67550,"low":67100,"close":67450,"volume":45000000}]}

When to use: technical analysis, backtesting strategies, or charting price history on Hyperliquid perps.

hyperliquid_get_candles

Use this when you need historical OHLCV candlestick data for a Hyperliquid perpetual pair. Returns open, high, low, close, volume for the specified interval. POST variant of hyperliquid_get_candles -- same params passed as JSON body instead of query string.

Parameters

NameTypeRequiredDescription
coinstringyesCoin symbol (e.g. BTC, ETH, SOL)
intervalstringnoCandle interval (1m, 5m, 15m, 1h, 4h, 1d)
limitnumbernoNumber of candles to return (default 100, max 5000)

Returns

  • candles -- array of OHLCV bars
  • coin -- the coin symbol queried
  • interval -- the candle interval used
  • count -- number of candles returned

Example response:

json
{"coin":"BTC","interval":"1h","count":100,"candles":[{"timestamp":"2026-04-13T10:00:00Z","open":67200,"high":67550,"low":67100,"close":67450,"volume":45000000}]}

When to use: technical analysis, backtesting strategies, or charting price history on Hyperliquid perps.

Example agent prompts

  • "Hyperliquid perpetual futures data for a specific coin"
  • "Hyperliquid perpetual futures data for a specific coin"
  • "A snapshot of all Hyperliquid perpetual markets at once"

Payment

  • Protocol: x402 -- HTTP-native pay-per-call, no signup, no API key
  • Network: Base L2 (eip155:8453)
  • Asset: USDC
  • Facilitator: Coinbase CDP (primary), PayAI (fallback)
  • Also reachable via ATXP (OAuth-wrapped x402, RFC 9728 protected-resource metadata)

Part of klymax402

100 x402 micropayment APIs for AI agents -- one wallet, USDC on Base, zero signup.

License

MIT

来源:README.md,提交 4442c70

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v1.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式必需10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分