Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open intere...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install 0xarchive或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install 0xarchive⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/0xarchive/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: 0xarchive version: 1.5.0 description: > Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user asks about crypto market data, orderbooks, trades, funding rates, or historical prices on Hyperliquid, Lighter.xyz, or HIP-3. allowed-tools: Bash argument-hint: "query, e.g. 'BTC funding rate' or 'ETH 4h candles last week'" metadata: {"openclaw":{"requires":{"env":["OXARCHIVE_API_KEY"]},"primaryEnv":"OXARCHIVE_API_KEY"}} ---
Query historical and real-time crypto market data from 0xArchive using curl. Three exchanges are supported: Hyperliquid (perps DEX), Lighter.xyz (order-book DEX), and HIP-3 (Hyperliquid builder perps). Data types: orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality metrics.
All endpoints require the x-api-key header. The key is read from $OXARCHIVE_API_KEY.
curl -s -H "x-api-key: $OXARCHIVE_API_KEY" "https://api.0xarchive.io/v1/..."
| Exchange | Path prefix | Coin format | Examples |
|----------|-------------|-------------|---------|
| Hyperliquid | /v1/hyperliquid | UPPERCASE | BTC, ETH, SOL |
| HIP-3 | /v1/hyperliquid/hip3 | Case-sensitive, builder:NAME | km:US500, xyz:GOLD, hyna:BTC, vntl:SPACEX, flx:TSLA, cash:NVDA |
| Lighter | /v1/lighter | UPPERCASE | BTC, ETH |
Hyperliquid and Lighter auto-uppercase the symbol server-side. HIP-3 coin names are passed through as-is.
All timestamps are Unix milliseconds. Use these shell helpers:
NOW=$(( $(date +%s) * 1000 ))
HOUR_AGO=$(( NOW - 3600000 ))
DAY_AGO=$(( NOW - 86400000 ))
WEEK_AGO=$(( NOW - 604800000 ))
Every response follows this shape:
{
"success": true,
"data": [ ... ],
"meta": {
"count": 100,
"request_id": "uuid",
"next_cursor": "1706000000000" // present when more pages exist
}
}
/v1/hyperliquid)
| Endpoint | Params | Notes |
|----------|--------|-------|
| GET /instruments | -- | List all instruments |
| GET /instruments/{symbol} | -- | Single instrument details |
| GET /orderbook/{symbol} | timestamp, depth | Latest or at timestamp |
| GET /orderbook/{symbol}/history | start, end, limit, cursor, depth | Historical snapshots |
| GET /trades/{symbol} | start, end, limit, cursor | Trade history |
| GET /candles/{symbol} | start, end, limit, cursor, interval | OHLCV candles |
| GET /funding/{symbol}/current | -- | Current funding rate |
| GET /funding/{symbol} | start, end, limit, cursor, interval | Funding rate history |
| GET /openinterest/{symbol}/current | -- | Current open interest |
| GET /openinterest/{symbol} | start, end, limit, cursor, interval | OI history |
| GET /liquidations/{symbol} | start, end, limit, cursor | Liquidation events |
| GET /liquidations/{symbol}/volume | start, end, limit, cursor, interval | Aggregated liquidation volume (USD) |
| GET /liquidations/user/{address} | start, end, limit, cursor, coin | Liquidations for a user |
| GET /freshness/{symbol} | -- | Data freshness per data type |
| GET /summary/{symbol} | -- | Combined market summary (price, funding, OI, volume, liquidations) |
| GET /prices/{symbol} | start, end, limit, cursor, interval | Mark/oracle/mid price history |
| GET /orders/{symbol}/history | start, end, user, status, order_type, limit, cursor | Order history with user attribution (Build+) |
| GET /orders/{symbol}/flow | start, end, interval, limit | Order flow aggregation (Build+) |
| GET /orders/{symbol}/tpsl | start, end, user, triggered, limit, cursor | TP/SL order history (Pro+) |
| GET /orderbook/{symbol}/l4 | timestamp, depth | L4 orderbook reconstruction (Pro+) |
| GET /orderbook/{symbol}/l4/diffs | start, end, limit, cursor | L4 orderbook diffs (Build+) |
| GET /orderbook/{symbol}/l4/history | start, end, limit, cursor | L4 orderbook checkpoints (Pro+) |
/v1/hyperliquid/hip3)
Coin names are case-sensitive (e.g., km:US500). Orderbook requires Pro+ tier.
| Endpoint | Params | Notes |
|----------|--------|-------|
| GET /instruments | -- | List HIP-3 instruments |
| GET /instruments/{coin} | -- | Single instrument |
| GET /orderbook/{coin} | timestamp, depth | Requires Pro+ tier |
| GET /orderbook/{coin}/history | start, end, limit, cursor, depth | Requires Pro+ tier |
| GET /trades/{coin} | start, end, limit, cursor | Trade history |
| GET /trades/{coin}/recent | limit | Recent trades (no time range needed) |
| GET /candles/{coin} | start, end, limit, cursor, interval | OHLCV candles |
| GET /funding/{coin}/current | -- | Current funding rate |
| GET /funding/{coin} | start, end, limit, cursor, interval | Funding history |
| GET /openinterest/{coin}/current | -- | Current OI |
| GET /openinterest/{coin} | start, end, limit, cursor, interval | OI history |
| GET /liquidations/{coin} | start, end, limit, cursor | Liquidation events |
| GET /liquidations/{coin}/volume | start, end, limit, cursor, interval | Aggregated liquidation volume (USD) |
| GET /freshness/{coin} | -- | Data freshness per data type |
| GET /summary/{coin} | -- | Combined market summary (price, funding, OI) |
| GET /prices/{coin} | start, end, limit, cursor, interval | Mark/oracle/mid price history |
| GET /orders/{coin}/history | start, end, user, status, order_type, limit, cursor | Order history with user attribution (Build+) |
| GET /orders/{coin}/flow | start, end, interval, limit | Order flow aggregation (Build+) |
| GET /orders/{coin}/tpsl | start, end, user, triggered, limit, cursor | TP/SL order history (Pro+) |
| GET /orderbook/{coin}/l4 | timestamp, depth | L4 orderbook reconstruction (Pro+) |
| GET /orderbook/{coin}/l4/diffs | start, end, limit, cursor | L4 orderbook diffs (Build+) |
| GET /orderbook/{coin}/l4/history | start, end, limit, cursor | L4 orderbook checkpoints (Pro+) |
/v1/lighter)
Same data types as Hyperliquid except: no liquidations. Adds granularity on orderbook history and /recent trades.
| Endpoint | Params | Notes |
|----------|--------|-------|
| GET /instruments | -- | List Lighter instruments |
| GET /instruments/{symbol} | -- | Single instrument |
| GET /orderbook/{symbol} | timestamp, depth | Latest or at timestamp |
| GET /orderbook/{symbol}/history | start, end, limit, cursor, depth, granularity | Default granularity: checkpoint |
| GET /trades/{symbol} | start, end, limit, cursor | Trade history |
| GET /trades/{symbol}/recent | limit | Recent trades (no time range needed) |
| GET /candles/{symbol} | start, end, limit, cursor, interval | OHLCV candles |
| GET /funding/{symbol}/current | -- | Current funding rate |
| GET /funding/{symbol} | start, end, limit, cursor, interval | Funding history |
| GET /openinterest/{symbol}/current | -- | Current OI |
| GET /openinterest/{symbol} | start, end, limit, cursor, interval | OI history |
| GET /freshness/{symbol} | -- | Data freshness per data type |
| GET /summary/{symbol} | -- | Combined market summary (price, funding, OI) |
| GET /prices/{symbol} | start, end, limit, cursor, interval | Mark/oracle price history |
...
安装 0xArchive 后,可以对 AI 说这些话来触发它
Help me get started with 0xArchive
Explains what 0xArchive does, walks through the setup, and runs a quick demo based on your current project
Use 0xArchive to query historical crypto market data from 0xArchive across Hyperliqu...
Invokes 0xArchive with the right parameters and returns the result directly in the conversation
What can I do with 0xArchive in my finance & investment workflow?
Lists the top use cases for 0xArchive, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/0xarchive/ 目录(个人级,所有项目可用),或 .claude/skills/0xarchive/(项目级)。重启 AI 客户端后,用 /0xarchive 主动调用,或让 AI 根据上下文自动发现并使用。
0xArchive 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
0xArchive 可免费安装使用。请查阅仓库了解许可证信息。
Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open intere...
0xArchive 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using 0xArchive
Identifies repetitive steps in your workflow and sets up 0xArchive to handle them automatically