Back to Blog

research

Query Crypto Market Data with the 0xarchive Agent Skill

Introducing the 0xarchive skill for AI agents: historical and real-time crypto data from Hyperliquid and Lighter, including prediction markets and spot.

OpenAgentSkillPublished:

Where this fits

You're building an agent that needs to answer questions like "What was the funding rate for BTC perps on Hyperliquid last hour?" or "Is there a live prediction market for ETH above $4,000 by June?" Without a dedicated skill, your agent would either rely on a generic REST call with messy parsing or miss real-time channels entirely. The 0xarchive skill gives your agent structured access to historical and live data across Hyperliquid and Lighter, covering perps, outcome markets, spot, and more.

Why agents benefit

  • Query specific venue namespaces – The skill routes requests to /v1/hyperliquid/hip3, /v1/hyperliquid/hip4, and /v1/hyperliquid/spot, so your agent can fetch exactly what it needs without guessing API paths.
  • Access both historical and real-time data – REST endpoints serve stored candles, trades, and orderbooks, while WebSocket channels deliver live HIP-4 trades, L4 events, and settlement updates. Your agent can switch between replay and live based on context.
  • Understand data quality nuances – The skill knows which endpoints are paused (e.g., HIP-4 L2 orderbook live bridges) and can fall back to REST or stored replay, avoiding dead-ends.
  • Cover niche market types – Binary outcome markets (HIP-4), builder perps (HIP-3), and 326 spot pairs (including equity tokens like AAPL-USDC) are all accessible with consistent query patterns.
  • Reduce integration overhead – Pre-built skill logic handles authentication, route selection, and response normalization, so your agent spends less time on plumbing and more on analysis.

Practical scenarios

Monitoring funding rates for a perp strategy

An agent can pull historical funding rates for a specific HIP-3 builder perp, detect anomalies, and trigger alerts when rates exceed a threshold—all without hardcoding API endpoints.

Analyzing prediction market outcomes

Your agent can fetch live HIP-4 trades and settlement events to answer "What's the current probability of BTC > $100k by Dec 31?" by reading the latest outcome-side prices and open interest.

Building a spot price dashboard

Using the spot namespace, the agent can retrieve candles for HYPE-USDC and compare them with perp prices to compute basis, or list all available spot pairs to let users pick.

Add it to your agent workflow

Install the skill via the command line:

npx skills add 0xArchiveIO/0xarchive-skill --skill 0xarchive

Then, in your agent prompt, request data naturally: "Get the last 24h of 1m candles for HYPE-USDC spot from 0xarchive." The skill will handle the REST call and return structured data. For live streams, specify a WebSocket channel like hip4.trades.

Compare before adopting

Before integrating, assess:

  • Quality signals – Are the data sources reliable? Check the skill's version history and any documented data gaps (e.g., spot candles start 2025-03-22).
  • Maintenance freshness – The skill is at v1.12.0 with active updates; verify that paused bridges and new endpoints are reflected in the README.
  • Alternatives – Compare with other crypto data skills or direct API wrappers. 0xarchive is focused on two venues; if you need broader exchange coverage, consider a different skill.
  • Workflow fit – Does your agent need real-time WebSocket support? If so, confirm the channels you need are live. For HIP-4 L2 orderbook, you'll rely on REST replay—plan accordingly.

Why it is worth tracking

With 10 stars and a dedicated GitHub repo, 0xarchive is an early but focused skill. Its strength lies in the granular coverage of Hyperliquid's newer markets (HIP-3 and HIP-4) and the explicit handling of data quality states. As prediction markets grow, this skill could become a standard tool for agents that need to reason about binary outcomes. Track its version updates and community adoption to see if it matures into a reliable long-term dependency. For a curated overview, see OpenAgentSkill's listing.

Featured Skill

0xarchive

Skill by 0xArchiveIO