Hyperliquid
/install hyperliquid
Hyperliquid (read-only)
Implement read-only market-data queries for Hyperliquid using the Info HTTP endpoint:
POST https://api.hyperliquid.xyz/infoContent-Type: application/json
Prefer HTTP snapshot flows for v1. WebSocket streaming can be added later.
Supported user input styles
Treat these as equivalent:
- Natural language: “Hyperliquid quote BTC”, “top movers 24h”, “book ETH”, “1h candles for SOL last 48”
- Terminal style:
hl quote BTC,hl movers --top 10 --window 24h - Slash style:
/hl quote BTC,/hl overview
Parse /hl and hl first (deterministic). If no prefix, fall back to intent extraction from natural language.
Canonical commands (v1)
Market data:
quote \x3Ccoin>: show mark/mid/oracle, 24h change (prevDayPx), 24h notional volume, open interest (perps), funding (perps), premium, impact pricesmovers [--window 24h] [--top N]: rank by 24h % change (markPx vs prevDayPx)funding-top|funding-bottom [--n N]: rank by funding (perps only)book \x3Ccoin>: show top 20 levels per side (and spread)candles \x3Ccoin> --interval \x3C1m|...|1M> (--last N | --start \x3Cms> --end \x3Cms>)overview: concise dashboard: top movers, top funding, top OI, top volume
Account (read-only):
positions \x3CHL:0x..|0x..|label>: show perp positions + margin summarybalances \x3CHL:0x..|0x..|label>: show spot balancesorders \x3CHL:0x..|0x..|label>: show open ordersfills \x3CHL:0x..|0x..|label> [--n N]: show recent fills
Saved account aliases (stored locally in ~/.clawdbot/hyperliquid/config.json):
account listaccount add "sub account 1" HL:0x... [--default]account remove "sub account 1"account default "sub account 1"
Natural language equivalents should work too:
- “store this address HL:0x... as sub account 1”
- “show me positions of sub account 1”
Data sources
Perpetuals:
metaAndAssetCtxs(preferred): universe + asset contexts for all perpsl2BookcandleSnapshot
Spot (optional later):
spotMetaAndAssetCtxs,spotMeta
See references/hyperliquid-api.md for request bodies and field meanings.
Implementation guidance
Use the bundled scripts:
scripts/hyperliquid_api.mjs: thin HTTP client + helpers (safe defaults, timeouts)scripts/hyperliquid_chat.mjs: parses user text into an intent + args, calls API helpers, and prints a compact chat-friendly response
When responding:
- Prefer short bullet output.
- Show units and timeframes.
- Handle missing fields gracefully (e.g., midPx sometimes null).
Quick manual test
Run locally:
node skills/hyperliquid/scripts/hyperliquid_chat.mjs "hl quote BTC"
node skills/hyperliquid/scripts/hyperliquid_chat.mjs "/hl movers --top 5"
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hyperliquid - 安装完成后,直接呼叫该 Skill 的名称或使用
/hyperliquid触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Hyperliquid 是什么?
Read-only Hyperliquid market data assistant (perps + spot optional) with support for natural-language requests and deterministic command parsing (terminal-style `hl ...` and slash-style `/hl ...`). Use to fetch quotes (mark/mid/oracle/funding/OI/volume), top movers, funding rankings, L2 order book, and candle snapshots via https://api.hyperliquid.xyz/info, and to format results for chat. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2967 次。
如何安装 Hyperliquid?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hyperliquid」即可一键安装,无需额外配置。
Hyperliquid 是免费的吗?
是的,Hyperliquid 完全免费(开源免费),可自由下载、安装和使用。
Hyperliquid 支持哪些平台?
Hyperliquid 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Hyperliquid?
由 The Ton Le(@k0nkupa)开发并维护,当前版本 v1.0.0。