0xarchive

0xarchive is a skill for Claude Code, Codex from 0xArchiveIO/0xarchive-skill. It costs 310 tokens per session (10,875 once invoked), scanned A, original, MIT.

A tool for querying historical and live cryptocurrency market data from 0xArchive, covering the Hyperliquid and Lighter.xyz trading venues.

In plain words
What is it for?
Use it to request market snapshots, candles, trade history, order-book data, prediction-market information, spot data, TWAP data, and data-quality measures through the available APIs.
Why use it?
It provides one documented way to retrieve market information such as prices, trades, order books, funding, liquidations, and open interest.

Skill for Claude CodeCodex

Part of the 0xarchive plugin — 1 skill shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/0xarchiveio/0xarchive-skill/query
Any agent
npx skills add 0xArchiveIO/0xarchive-skill --skill query
Clone the repo
git clone --depth 1 https://github.com/0xArchiveIO/0xarchive-skill

Made for: Claude Code, Codex.

Or install 0xarchive, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 0xarchive

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xarchiveio/0xarchive-skill/query.svg)](https://agentmods.dev/skills/0xarchiveio/0xarchive-skill/query)
Your own site
<a href="https://agentmods.dev/skills/0xarchiveio/0xarchive-skill/query"><img src="https://agentmods.dev/badge/skills/0xarchiveio/0xarchive-skill/query.svg" alt="Measured on agentmods" height="20"></a>
Per session 310 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,875 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00310 $0.10875
Opus 5 $0.00155 $0.05437
Sonnet 5 $0.00062 $0.02175
Haiku 4.5 $0.00031 $0.01087

Measured yesterday against content hash cc424e79cbe5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

0xarchive scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Query historical and real-time crypto market data from **0xArchive** using `curl`. 0xArchive exposes two top-level venue APIs: **Hyperliquid** and **Lighter.xyz**. **HIP-3** builder perps live under the Hyperliquid names
skills/query/SKILL.md · 558 lines

How it starts

The opening of the file, as written. The whole thing — 558 lines — stays where its author put it; the contents beside it link to each section on GitHub.

0xArchive API Skill

Query historical and real-time crypto market data from 0xArchive using curl. 0xArchive exposes two top-level venue APIs: Hyperliquid and Lighter.xyz. HIP-3 builder perps live under the Hyperliquid namespace at /v1/hyperliquid/hip3. HIP-4 outcome markets (binary prediction markets) live at /v1/hyperliquid/hip4. Hyperliquid Spot has 326 authenticated inventory rows at /v1/hyperliquid/spot. Data types are route-specific: orderbooks, trades, candles, funding rates, open interest, liquidations, outcome markets, spot, TWAP, and data quality metrics.

Orderbook depth limits apply to L2 snapshot endpoints only.

Authentication

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/..."

Venue Scopes & Coin Naming

Scope Path prefix Coin format Examples
Hyperliquid /v1/hyperliquid UPPERCASE BTC, ETH, SOL
Hyperliquid HIP-3 /v1/hyperliquid/hip3 Case-sensitive, builder:NAME km:US500, xyz:GOLD, hyna:BTC, vntl:SPACEX, flx:TSLA, cash:NVDA
Hyperliquid HIP-4 /v1/hyperliquid/hip4 Bare numeric <10*outcome_id + side> (legacy #0 / %230 also accepted) 0, 1, 10, 11
Hyperliquid Spot /v1/hyperliquid/spot Dashed canonical BASE-QUOTE HYPE-USDC, PURR-USDC, AAPL-USDC
Lighter /v1/lighter UPPERCASE BTC, ETH

Hyperliquid and Lighter auto-uppercase the symbol server-side. HIP-3 coin names are passed through as-is. HIP-4 coins encode outcome and side: 0 is outcome 0 / side 0 (YES), 1 is outcome 0 / side 1 (NO), 10 is outcome 1 / side 0, etc. The bare numeric form is canonical; the legacy #0 and %230 forms still work for backward compatibility. Spot symbols are dashed (HYPE-USDC, PURR-USDC, AAPL-USDC); the server resolves the dashed form to the wire format (PURR/USDC, @107) internally, so always use the dashed form.

Read the full file on GitHub · 558 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed cc424e79cbe5
  2. 5d ago First seen · 558 lines · 310 tokens per session scan A 582a06200698

Subscribe to this mod's changes

0xarchive is a skill published in the GitHub repository 0xArchiveIO/0xarchive-skill (10 stars, last pushed 4d ago), licensed MIT. It adds 310 tokens to every session and 10,875 once invoked, about $0.0015 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.