← 返回
沟通协作

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.
只读 Hyperliquid 市场数据助手(永续 + 可选现货),支持自然语言请求与确定性命令解析(终端风格 `hl ...` 与斜杠风格 `/hl …`)。通过 https://api.hyperliquid.xyz/info 获取报价(标记价/中间价/预言价/资金费率/未平仓量/成交量)、涨跌幅排行、资金费率排行、L2 订单簿以及 K 线快照,并将其格式化输出用于聊天。
k0nkupa
沟通协作 clawhub v1.0.0 1 版本 99313.9 Key: 无需
★ 1
Stars
📥 4,178
下载
💾 229
安装
1
版本
#latest

概述

Hyperliquid (read-only)

Implement read-only market-data queries for Hyperliquid using the Info HTTP endpoint:

  • POST https://api.hyperliquid.xyz/info
  • Content-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 : show mark/mid/oracle, 24h change (prevDayPx), 24h notional volume, open interest (perps), funding (perps), premium, impact prices
  • movers [--window 24h] [--top N]: rank by 24h % change (markPx vs prevDayPx)
  • funding-top|funding-bottom [--n N]: rank by funding (perps only)
  • book : show top 20 levels per side (and spread)
  • candles --interval <1m|...|1M> (--last N | --start --end )
  • overview: concise dashboard: top movers, top funding, top OI, top volume

Account (read-only):

  • positions : show perp positions + margin summary
  • balances : show spot balances
  • orders : show open orders
  • fills [--n N]: show recent fills

Saved account aliases (stored locally in ~/.clawdbot/hyperliquid/config.json):

  • account list
  • account 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 perps
  • l2Book
  • candleSnapshot

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"

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 12:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,583
security-compliance

Asana

k0nkupa
通过 Asana REST API 管理 Asana,用于列出工作区、项目、任务,搜索、评论、更新、完成或创建任务。
★ 2 📥 5,545
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,675