agentskills.codes
0X

0xarchive

>

Install

mkdir -p .claude/skills/0xarchive && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16006" && unzip -o skill.zip -d .claude/skills/0xarchive && rm skill.zip

Installs to .claude/skills/0xarchive

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

>
1 chars · catalog descriptionno explicit “when” trigger

About this skill

0xArchive API Skill

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.

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

Exchanges & Coin Naming

ExchangePath prefixCoin formatExamples
Hyperliquid/v1/hyperliquidUPPERCASEBTC, ETH, SOL
HIP-3/v1/hyperliquid/hip3Case-sensitive, builder:NAMEkm:US500, xyz:GOLD, hyna:BTC, vntl:SPACEX, flx:TSLA, cash:NVDA
Lighter/v1/lighterUPPERCASEBTC, ETH

Hyperliquid and Lighter auto-uppercase the symbol server-side. HIP-3 coin names are passed through as-is.

Timestamps

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 ))

Response Format

Every response follows this shape:

{
  "success": true,
  "data": [ ... ],
  "meta": {
    "count": 100,
    "request_id": "uuid",
    "next_cursor": "1706000000000"   // present when more pages exist
  }
}

Endpoint Reference

Hyperliquid (/v1/hyperliquid)

EndpointParamsNotes
GET /instruments--List all instruments
GET /instruments/{symbol}--Single instrument details
GET /orderbook/{symbol}timestamp, depthLatest or at timestamp
GET /orderbook/{symbol}/historystart, end, limit, cursor, depthHistorical snapshots
GET /trades/{symbol}start, end, limit, cursorTrade history
GET /candles/{symbol}start, end, limit, cursor, intervalOHLCV candles
GET /funding/{symbol}/current--Current funding rate
GET /funding/{symbol}start, end, limit, cursor, intervalFunding rate history
GET /openinterest/{symbol}/current--Current open interest
GET /openinterest/{symbol}start, end, limit, cursor, intervalOI history
GET /liquidations/{symbol}start, end, limit, cursorLiquidation events
GET /liquidations/{symbol}/volumestart, end, limit, cursor, intervalAggregated liquidation volume (USD)
GET /liquidations/user/{address}start, end, limit, cursor, coinLiquidations 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, intervalMark/oracle/mid price history
GET /orders/{symbol}/historystart, end, user, status, order_type, limit, cursorOrder history with user attribution (Build+)
GET /orders/{symbol}/flowstart, end, interval, limitOrder flow aggregation (Build+)
GET /orders/{symbol}/tpslstart, end, user, triggered, limit, cursorTP/SL order history (Pro+)
GET /orderbook/{symbol}/l4timestamp, depthL4 orderbook reconstruction (Pro+)
GET /orderbook/{symbol}/l4/diffsstart, end, limit, cursorL4 orderbook diffs (Build+)
GET /orderbook/{symbol}/l4/historystart, end, limit, cursorL4 orderbook checkpoints (Pro+)

HIP-3 (/v1/hyperliquid/hip3)

Coin names are case-sensitive (e.g., km:US500). Orderbook requires Pro+ tier.

EndpointParamsNotes
GET /instruments--List HIP-3 instruments
GET /instruments/{coin}--Single instrument
GET /orderbook/{coin}timestamp, depthRequires Pro+ tier
GET /orderbook/{coin}/historystart, end, limit, cursor, depthRequires Pro+ tier
GET /trades/{coin}start, end, limit, cursorTrade history
GET /trades/{coin}/recentlimitRecent trades (no time range needed)
GET /candles/{coin}start, end, limit, cursor, intervalOHLCV candles
GET /funding/{coin}/current--Current funding rate
GET /funding/{coin}start, end, limit, cursor, intervalFunding history
GET /openinterest/{coin}/current--Current OI
GET /openinterest/{coin}start, end, limit, cursor, intervalOI history
GET /liquidations/{coin}start, end, limit, cursorLiquidation events
GET /liquidations/{coin}/volumestart, end, limit, cursor, intervalAggregated 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, intervalMark/oracle/mid price history
GET /orders/{coin}/historystart, end, user, status, order_type, limit, cursorOrder history with user attribution (Build+)
GET /orders/{coin}/flowstart, end, interval, limitOrder flow aggregation (Build+)
GET /orders/{coin}/tpslstart, end, user, triggered, limit, cursorTP/SL order history (Pro+)
GET /orderbook/{coin}/l4timestamp, depthL4 orderbook reconstruction (Pro+)
GET /orderbook/{coin}/l4/diffsstart, end, limit, cursorL4 orderbook diffs (Build+)
GET /orderbook/{coin}/l4/historystart, end, limit, cursorL4 orderbook checkpoints (Pro+)

Lighter (/v1/lighter)

Same data types as Hyperliquid except: no liquidations. Adds granularity on orderbook history and /recent trades.

EndpointParamsNotes
GET /instruments--List Lighter instruments
GET /instruments/{symbol}--Single instrument
GET /orderbook/{symbol}timestamp, depthLatest or at timestamp
GET /orderbook/{symbol}/historystart, end, limit, cursor, depth, granularityDefault granularity: checkpoint
GET /trades/{symbol}start, end, limit, cursorTrade history
GET /trades/{symbol}/recentlimitRecent trades (no time range needed)
GET /candles/{symbol}start, end, limit, cursor, intervalOHLCV candles
GET /funding/{symbol}/current--Current funding rate
GET /funding/{symbol}start, end, limit, cursor, intervalFunding history
GET /openinterest/{symbol}/current--Current OI
GET /openinterest/{symbol}start, end, limit, cursor, intervalOI 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, intervalMark/oracle price history
GET /l3orderbook/{symbol}timestamp, depth, accountL3 order-level orderbook (Pro+)
GET /l3orderbook/{symbol}/historystart, end, limit, cursor, granularity, accountHistorical L3 snapshots (Pro+)

Data Quality (/v1/data-quality)

EndpointParamsNotes
GET /status--System health status
GET /coverage--Coverage summary, all exchanges
GET /coverage/{exchange}--Coverage for one exchange
GET /coverage/{exchange}/{symbol}from, toSymbol-level coverage + gaps
GET /incidentsstatus, exchange, since, limit, offsetList incidents
GET /incidents/{id}--Single incident
GET /latency--Ingestion latency metrics
GET /slayear, monthSLA compliance report

WebSocket Channels

Additional real-time channels available via WebSocket (wss://api.0xarchive.io/ws?apiKey=KEY):

ChannelNotes
l4_diffsL4 orderbook diffs with user attribution (Build+, real-time only)
l4_ordersOrder lifecycle events with user attribution (Build+, real-time only)
lighter_l3_orderbookLighter L3 order-level orderbook snapshots (Pro+, historical only)
hip3_liquidationsHIP-3 liquidation events with long/short direction (Build+, historical only)
hip3_l4_diffsHIP-3 L4 orderbook diffs (Build+, real-time only)
hip3_l4_ordersHIP-3 order lifecycle events (Build+, real-time only)

Web3 Authentication (/v1)

Get API keys programmatically using an Ethereum wallet (SIWE). No API key required for these endpoints.

EndpointParamsNotes
POST /auth/web3/challengeaddress (wallet address)Returns SIWE message to sign
POST /web3/signupmessage, signatureReturns free-tier API key
POST /web3/keysmessage, signatureList all keys for wallet
POST /web3/keys/revokemessage, signature, key_idRevoke a key
POST /web3/subscribetier (build or pro), payment-signature headerx402 USDC subscription (see flow below)

Free-tier flow: Call /auth/web3/challenge with wallet address → sign the returned message with personal_sign (EIP-191) → submit to /web3/signup with the message and signature → receive API key.

Paid-tier flow (x402):

  1. POST /web3/subscribe with { "tier": "build" } → server returns 402 with payment.amount (micro-USDC), payment.pay_to (treasury address), payment.network.
  2. Sign an EIP-712 TransferWithAuthorization (EIP-

Content truncated.

self-improvement

LeoYeAI

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude rea

00

hs

LeoYeAI

ACTIVATE THIS SKILL FOR ANY SHELL COMMAND OR FILE READ. Check curl, wget, rm, sudo, apt, dpkg, chmod, dd, format, powershell, bash, sh. Check pipe patterns like | sh or | bash. Check shell wrappers like bash -c, xargs, find -exec. Check cloud CLI (aws, gcloud, kubectl, terraform). Check when user sa

00

smart-accounts-kit

LeoYeAI

Web3 development using MetaMask Smart Accounts Kit. Use when the user wants to build dApps with ERC-4337 smart accounts, send user operations, batch transactions, configure signers (EOA, passkey, multisig), implement gas abstraction with paymasters, create delegations, or request advanced permission

00

data-lineage-tracker

LeoYeAI

Track data origin, transformations, and flow through construction systems. Essential for audit trails, compliance, and debugging data issues.

00

zx

LeoYeAI

Comprehensive guide for writing shell scripts with Google zx — a tool for writing better scripts using JavaScript/TypeScript. Use when writing, debugging, or refactoring zx scripts (.mjs, .js, .ts files using zx), executing shell commands from JavaScript, working with ProcessPromise/ProcessOutput AP

00

relational-database-web-cloudbase

LeoYeAI

Use when building frontend Web apps that talk to CloudBase Relational Database via @cloudbase/js-sdk – provides the canonical init pattern so you can then use Supabase-style queries from the browser.

00

Search skills

Search the agent skills registry