0xarchive
git clone https://github.com/0xArchiveIO/0xarchive-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/0xArchiveIO/0xarchive-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/query" ~/.claude/skills/0xarchiveio-0xarchive-skill-0xarchive && rm -rf "$T"
skills/query/SKILL.md0xArchive 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 | | UPPERCASE | , , |
| Hyperliquid HIP-3 | | Case-sensitive, | , , , , , |
| Hyperliquid HIP-4 | | Bare numeric (legacy / also accepted) | , , , |
| Hyperliquid Spot | | Dashed canonical | , , |
| Lighter | | UPPERCASE | , |
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.
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": "opaque-cursor" // present when more pages exist } }
Endpoint Reference
Hyperliquid (/v1/hyperliquid
)
/v1/hyperliquid| Endpoint | Params | Notes |
|---|---|---|
| -- | List all instruments |
| -- | Single instrument details |
| , | Latest or at timestamp |
| , , , , | Historical snapshots |
| , , , | Trade history |
| , , , , | OHLCV candles |
| -- | Current funding rate |
| , , , , | Funding rate history |
| -- | Current open interest |
| , , , , | OI history |
| , , , | Liquidation events |
| , , , , | Aggregated liquidation volume (USD) |
| , , , , | Liquidations for a user |
| -- | Data freshness per data type |
| -- | Combined market summary (price, funding, OI, volume, liquidations) |
| , , , , | Mark/oracle/mid price history |
| , , , , , , | Order history with user attribution |
| , , , | Order flow aggregation |
| , , , , , | TP/SL order history |
| , | L4 orderbook reconstruction |
| , , , | L4 orderbook diffs |
| , , , | L4 orderbook checkpoints |
| , | L2 full-depth orderbook derived from L4 |
| , , , , | L2 full-depth checkpoints |
| , , , | L2 tick-level diffs |
HIP-3 (/v1/hyperliquid/hip3
)
/v1/hyperliquid/hip3Coin names are case-sensitive (e.g.,
km:US500). The authenticated August 22, 2026 inventory has 267 instruments across 10 builder prefixes: abcd, cash, flx, hyna, io, km, mkts, para, vntl, and xyz. Served trades, candles, and liquidation events begin February 1, 2026; native L2, funding, and OI begin February 16, 2026; L4 diffs and order-lifecycle rows have a March 10, 2026 family floor; reconstructable checkpoints and point-in-time state can begin later by symbol. All HIP-3 symbols are available on every tier.
| Endpoint | Params | Notes |
|---|---|---|
| -- | List HIP-3 instruments |
| -- | Single instrument |
| , | All HIP-3 symbols, every tier. |
| , , , , | All HIP-3 symbols, every tier. |
| , , , | Trade history |
| | Recent trades (no time range needed) |
| , , , , | OHLCV candles |
| -- | Current funding rate |
| , , , , | Funding history |
| -- | Current OI |
| , , , , | OI history |
| , , , | Liquidation events |
| , , , , | Aggregated liquidation volume (USD) |
| -- | Data freshness per data type |
| -- | Combined market summary (price, funding, OI) |
| , , , , | Mark/oracle/mid price history |
| , , , , , , | Order history with user attribution |
| , , , | Order flow aggregation |
| , , , , , | TP/SL order history |
| , | L4 orderbook reconstruction |
| , , , | L4 orderbook diffs |
| , , , | L4 orderbook checkpoints |
| , | L2 full-depth orderbook derived from L4 |
| , , , , | L2 full-depth checkpoints |
| , , , | L2 tick-level diffs |
HIP-4 (/v1/hyperliquid/hip4
)
/v1/hyperliquid/hip4Outcome markets are binary prediction markets (e.g. "Will BTC be >= $X by date Y?"). Coin names are bare numerics
<10*outcome_id + side> (e.g. 0, 1, 10); the legacy #0 / %230 forms are still accepted. HIP-4 has candles and outcome-side open interest from May 2, 2026, with raw OI updates at roughly 10 seconds. HIP-4 has no funding rates and no liquidations. The mark_price field on HIP-4 instruments and prices is an implied probability in the range 0..1, not a USD price.
| Endpoint | Params | Notes |
|---|---|---|
| -- | List all outcome markets (HIP-4 only; not present on other venues) |
| -- | Single outcome market detail (HIP-4 only) |
| -- | List HIP-4 instruments (one per side per outcome) |
| -- | Single instrument. Coin is the bare numeric (e.g. ); legacy also accepted. |
| , | Latest or at timestamp |
| , , , , | Historical snapshots |
| , , , | Trade history |
| | Recent trades |
| , , , , | Implied-probability OHLCV candles |
| -- | Current open interest |
| , , , , | Outcome-side OI history; raw rows roughly every 10 seconds |
| -- | Data freshness per data type |
| -- | Combined market summary (implied probability + OI; no funding) |
| , , , , | Implied-probability history (mark/oracle/mid in 0..1) |
| , , , , , , | Order history |
| , , , | Order flow aggregation |
| , , , , , | TP/SL order history |
| , | L4 orderbook reconstruction |
| , , , | L4 orderbook diffs |
| , , , | L4 orderbook checkpoints |
| , | L2 full-depth orderbook derived from L4 |
| , , , , | L2 full-depth checkpoints |
| , , , | L2 tick-level diffs |
Hyperliquid Spot (/v1/hyperliquid/spot
)
/v1/hyperliquid/spotThe authenticated inventory has 326 Hyperliquid Spot rows (HYPE-USDC, PURR-USDC, AAPL-USDC, ...). Symbols are dashed canonical (
BASE-QUOTE); the server resolves to the wire format (PURR/USDC, @107) internally. Spot has no funding rates, open interest, or liquidations. Spot candles are served from 2025-03-22T10:50:22Z through a dedicated OHLCV route. Use spot for pair discovery, candles, current and historical L2 orderbooks, fills, L4 reconstruction, order lifecycle, and TWAP execution status.
Coverage:
- Candles: served from 2025-03-22T10:50:22Z at
,1m
,5m
,15m
,30m
,1h
,4h
, and1d
; maximum1w
is 1000 andlimit
is opaque.next_cursor - Trades: backfilled from 2025-03-22 (~284M rows). Pre-March 2025 spot fills are not available (no public archive existed).
- Native L2 and TWAP: live-forward from 2026-05-05. No native L2 history is claimed before that date.
- L4: raw diffs are served from 2026-03-10; reconstructable checkpoints and point-in-time state are observed from 2026-03-11. Exact starts vary by pair.
| Endpoint | Params | Notes |
|---|---|---|
| -- | List current Spot pairs; authenticated inventory has 326 rows |
| -- | Single pair detail (e.g. ) |
| , , , , | OHLCV candles from 2025-03-22T10:50:22Z; intervals through ; max 1000; cursor is opaque |
| , | Current L2 orderbook (live from 2026-05-05) |
| , , , , | L2 history window (from 2026-05-05) |
| , | Point-in-time L4 reconstruction; observed from 2026-03-11 and exact starts vary by pair |
| , , , | Raw L4 diffs |
| , , , | L4 checkpoints |
| , , , , | Spot trades. Pass to filter to a wallet's fills. Backfilled to 2025-03-22. |
| , , , , , , | Spot order lifecycle |
| , , , | TWAP execution statuses for a symbol |
| , , , | TWAP execution statuses for a wallet |
| -- | Data freshness per data type |
Lighter (/v1/lighter
)
/v1/lighterLighter has native L2, L3, trades, candles, funding, open interest, liquidation events and volume, freshness, summary, and price history. Candles begin August 1, 2025. Funding and OI begin August 25, 2025 and update roughly every 10 seconds. Served trades have an observed global floor of August 27, 2025 at fill grain with maker/taker context; exact starts vary by market. Native L2 begins January 29, 2026. L3 begins March 5, 2026 and is capped at 250 resting orders per side. Liquidations are live-only from ingester deploy time and have no public backfill before that capture window.
| Endpoint | Params | Notes |
|---|---|---|
| -- | List Lighter instruments |
| -- | Single instrument |
| , | Latest or at timestamp |
| , , , , , | Default granularity: |
| , , , | Per-fill history with maker/taker context; starts August 27, 2025 |
| | Recent trades (no time range needed) |
| , , , , | OHLCV candles from August 1, 2025 |
| -- | Current funding rate |
| , , , , | Funding history from August 25, 2025; raw updates roughly every 10 seconds |
| -- | Current OI |
| , , , , | OI history from August 25, 2025; raw updates roughly every 10 seconds |
| , , , | Liquidation events; live-only from capture start, with no earlier public backfill |
| , , , , | Time-bucketed liquidation volume |
| -- | Data freshness per data type |
| -- | Combined market summary (price, funding, OI) |
| , , , , | Mark/oracle price history |
| , , | L3 order-level snapshot; up to 250 orders per side |
| , , , , , | Tick-level L3 snapshots from March 5, 2026; up to 250 orders per side |
Data Quality (/v1/data-quality
)
/v1/data-quality| Endpoint | Params | Notes |
|---|---|---|
| -- | System health status |
| -- | Coverage summary across venue APIs |
| -- | Coverage for one venue scope |
| , | Symbol-level coverage + gaps |
| , , , , | List incidents |
| -- | Single incident |
| -- | Ingestion latency metrics |
| , | SLA compliance report |
WebSocket Channels
Real-time + historical-replay channels available via WebSocket (
wss://api.0xarchive.io/ws?apiKey=KEY). WebSocket access (including all L4 channels) is available on every tier, starting with Free (10 subscriptions / 2 connections / 10x replay).
Trades + liquidations (realtime + replay):
| Channel | Notes |
|---|---|
| Hyperliquid trades. One row per side per fill. |
| HIP-3 trades. |
| HIP-4 trades. |
| Hyperliquid Spot trades. Symbol is dashed (). |
| Lighter trades. |
| Hyperliquid liquidations. Each event is a fill row with (same shape as ). |
| HIP-3 liquidations. Each event is a fill row with (same shape as ). |
Orderbook + open interest:
| Channel | Notes |
|---|---|
, , | Live and replayable L2 orderbook updates |
| Hyperliquid Spot L2 orderbook updates. Symbol is dashed (). |
| Stored replay only while the live HIP-4 L2 bridge is paused; use REST for current snapshots |
| Stored replay only while the live HIP-4 OI bridge is paused; use REST for current outcome-side OI |
Order-level (realtime only):
| Channel | Notes |
|---|---|
| Hyperliquid L4 orderbook diffs with user attribution |
| Hyperliquid order lifecycle events |
| HIP-3 L4 orderbook diffs |
| HIP-3 order lifecycle events |
| HIP-4 L4 orderbook diffs |
| HIP-4 order lifecycle events |
| Hyperliquid Spot L4 orderbook diffs with user attribution |
| Hyperliquid Spot order lifecycle events |
| Lighter L3 order-level orderbook snapshots |
TWAP (realtime):
| Channel | Notes |
|---|---|
| Hyperliquid Spot TWAP execution status updates. Symbol is dashed (). |
HIP-4 outcome events:
| Event type | Notes |
|---|---|
| Fired once per HIP-4 outcome when it resolves ( flips to true). Payload includes , , and the settled timestamp. |
Web3 Authentication (/v1
)
/v1Get API keys programmatically using an Ethereum wallet (SIWE). No API key required for these endpoints.
| Endpoint | Params | Notes |
|---|---|---|
| (wallet address) | Returns SIWE message to sign |
| , | Returns free-tier API key |
| , | List all keys for wallet |
| , , | Revoke a key |
| ( or ), header | x402 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):
withPOST /web3/subscribe
→ server returns 402 with{ "tier": "build" }
(micro-USDC),payment.amount
(treasury address),payment.pay_to
.payment.network- Sign an EIP-712
(EIP-3009) on USDC Base:TransferWithAuthorization- Domain:
{ name: "USD Coin", version: "2", chainId: 8453, verifyingContract: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" } - Type:
TransferWithAuthorization(address from, address to, uint256 value, uint256 validAfter, uint256 validBefore, bytes32 nonce) - Message:
{ from: <wallet>, to: <pay_to>, value: <amount>, validAfter: 0, validBefore: <now+3600>, nonce: <32 random bytes hex> }
- Domain:
- Build x402 v2 payment payload:
{ "x402Version": 2, "payload": { "signature": "0x<EIP-712 signature hex>", "authorization": { "from": "0x<wallet>", "to": "0x<pay_to from step 1>", "value": "<amount as string>", "validAfter": "0", "validBefore": "<unix timestamp as string>", "nonce": "0x<64 hex chars>" } } } - Base64-encode the JSON and retry:
withPOST /web3/subscribe
and header{ "tier": "build" }
→ receive API key + subscription.payment-signature: <base64 payload>
Important: All
authorization values (value, validAfter, validBefore) must be strings, not numbers. See scripts/web3_subscribe.py for a complete working Python implementation.
Common Parameters
| Param | Type | Description |
|---|---|---|
| int | Start timestamp (Unix ms). Defaults to 24h ago. |
| int | End timestamp (Unix ms). Defaults to now. |
| int | Max records. Default 100; candle limits are route-specific: max 1000 for Spot and HIP-4, max 10000 for core Hyperliquid, HIP-3, and Lighter. |
| string | Pagination cursor from . |
| string | Candle interval: , , , , , , , . Default: . For OI/funding: , , , , , . Omit for raw data: core funding is roughly 1 minute; HIP-3 funding/OI, HIP-4 OI, and Lighter funding/OI are roughly 10 seconds. |
| int | Route-specific orderbook depth. Hyperliquid-family native L2 caps at 20 levels per side; Lighter L3 caps at 250 orders per side. |
| string | Lighter orderbook resolution: (default), , , , . |
| int | Lighter L3 orderbook: filter by account index (e.g., for LLP vault). |
Smart Defaults
When the user does not specify a time range, default to the last 24 hours:
NOW=$(( $(date +%s) * 1000 )) DAY_AGO=$(( NOW - 86400000 ))
For candles with no explicit range, default to a range that makes sense for the interval (e.g., last 7 days for 4h candles, last 30 days for 1d candles).
Trade Response Fields
Each trade/fill record includes:
| Field | Type | Description |
|---|---|---|
/ | string | Trading pair symbol |
| string | (buy) or / (sell) |
| string | Execution price |
| string | Trade size |
| string | ISO 8601 timestamp |
| integer | Unique trade ID |
| integer | Associated order ID |
| boolean | = taker, = maker |
| string | Base trading fee |
| string | Fee denomination (e.g., USDC) |
| string | Realized PnL if closing position |
| string | , , , etc. |
| string | Position size before trade |
| string | User's wallet address |
| string | Builder address that routed this order. Only present when the order was placed through a builder. |
| string | Builder fee charged on this fill, paid to the builder (quote currency, typically USDC). Only present when is set. |
| string | HIP-3 deployer fee share (quote currency). Negative for the maker side (rebate), positive for the taker side. HIP-3 only. |
| number | Priority fee burned in HYPE (not USDC) for write priority on the Hyperliquid validator queue. Independent of and (paid to the network, not to a builder or deployer). Only present when the order paid for priority. |
| string | Client order ID |
| integer | TWAP execution ID |
builder_address, builder_fee, deployer_fee, priority_gas, cloid, and twap_id are optional. They are only present when non-zero/non-empty. deployer_fee is specific to HIP-3. priority_gas appears on any order that paid for write priority (most common on HIP-3 IOC orders).
Pagination
When
meta.next_cursor is present in the response, more data is available. Append &cursor=VALUE to fetch the next page:
# First page curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/trades/BTC?start=$START&end=$END&limit=1000" # Next page (use next_cursor from previous response) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/trades/BTC?start=$START&end=$END&limit=1000&cursor=1706000000000_12345"
Tier Limits
| Tier | Price | Credits | Coins | Orderbook Depth | Lighter Granularity | Historical Depth | Rate Limit |
|---|---|---|---|---|---|---|---|
| Free | $0 | 50,000/mo | All symbols | Full depth | all granularities | Full history | 15 RPS |
| Build | $49/mo | 80M/mo | All symbols | Full depth | all granularities | Full history | 50 RPS |
| Pro | $199/mo | 400M/mo | All symbols | Full depth | all granularities | Full history | 150 RPS |
| Scale | $799/mo | 2B/mo | All symbols | Full depth | all granularities | Full history | 500 RPS |
| Enterprise | Custom | Unlimited | All symbols | Full depth | + tick | Full history | Custom |
Scale ($799/mo, $639 annual) also includes 20,000 WebSocket subscriptions across 16 connections, 300x replay speed, and 200 API keys.
Error Handling
| HTTP Status | Meaning | Action |
|---|---|---|
| 400 | Bad request / validation error | Check params (missing start/end, invalid interval) |
| 401 | Missing or invalid API key | Set |
| 403 | Plan limit reached | Hit a credit, RPS, concurrency, WebSocket-cap, or export limit; upgrade plan or wait for reset (all markets and schemas are available on every tier) |
| 404 | Symbol not found | Check coin name spelling and exchange |
| 429 | Rate limited | Back off and retry |
Error responses return
{ "code": 400, "error": "description" }.
Example Queries
# List Hyperliquid instruments curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/instruments" | jq '.data | length' # Current BTC orderbook (top 10 levels) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/orderbook/BTC?depth=10" | jq '.data' # ETH trades from the last hour NOW=$(( $(date +%s) * 1000 )); HOUR_AGO=$(( NOW - 3600000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/trades/ETH?start=$HOUR_AGO&end=$NOW&limit=100" | jq '.data' # SOL 4h candles for the last week NOW=$(( $(date +%s) * 1000 )); WEEK_AGO=$(( NOW - 604800000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/candles/SOL?start=$WEEK_AGO&end=$NOW&interval=4h" | jq '.data' # Current BTC funding rate curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/funding/BTC/current" | jq '.data' # BTC open interest aggregated to 1h intervals (last week) NOW=$(( $(date +%s) * 1000 )); WEEK_AGO=$(( NOW - 604800000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/openinterest/BTC?start=$WEEK_AGO&end=$NOW&interval=1h" | jq '.data' # ETH funding rates aggregated to 4h intervals (last 30 days) NOW=$(( $(date +%s) * 1000 )); MONTH_AGO=$(( NOW - 2592000000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/funding/ETH?start=$MONTH_AGO&end=$NOW&interval=4h" | jq '.data' # HIP-3 km:US500 current orderbook curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/hip3/orderbook/km:US500" | jq '.data' # HIP-3 km:US500 orderbook history NOW=$(( $(date +%s) * 1000 )); HOUR_AGO=$(( NOW - 3600000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/hip3/orderbook/km:US500/history?start=$HOUR_AGO&end=$NOW&limit=10" | jq '.data' # HIP-3 km:US500 candles (last 24h, 1h interval) NOW=$(( $(date +%s) * 1000 )); DAY_AGO=$(( NOW - 86400000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/hip3/candles/km:US500?start=$DAY_AGO&end=$NOW&interval=1h" | jq '.data' # HIP-4 list all outcome markets curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/hip4/outcomes" | jq '.data' # HIP-4 single outcome market detail (outcome_id = 0) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/hip4/outcomes/0" | jq '.data' # HIP-4 orderbook for outcome 0 / side 0 (coin = "0", canonical bare numeric form) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/hip4/orderbook/0?depth=10" | jq '.data' # HIP-4 implied-probability price history for outcome 0 / side 1 (last 24h) NOW=$(( $(date +%s) * 1000 )); DAY_AGO=$(( NOW - 86400000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/hip4/prices/1?start=$DAY_AGO&end=$NOW&interval=1h" | jq '.data' # HIP-4 recent trades for outcome 0 / side 0 curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/hip4/trades/0/recent?limit=20" | jq '.data' # HIP-4 list active outcomes (not yet settled) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/hip4/outcomes?is_settled=false" | jq '.data' # Hyperliquid Spot list current pairs curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/spot/pairs" | jq '.data | length' # Hyperliquid Spot single pair detail (HYPE-USDC, dashed canonical) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/spot/pairs/HYPE-USDC" | jq '.data' # Hyperliquid Spot current orderbook (top 10 levels) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/spot/orderbook/HYPE-USDC?depth=10" | jq '.data' # Hyperliquid Spot trades for the last hour (PURR-USDC) NOW=$(( $(date +%s) * 1000 )); HOUR_AGO=$(( NOW - 3600000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/spot/trades/PURR-USDC?start=$HOUR_AGO&end=$NOW&limit=100" | jq '.data' # Hyperliquid Spot trades filtered to a specific wallet NOW=$(( $(date +%s) * 1000 )); DAY_AGO=$(( NOW - 86400000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/spot/trades/HYPE-USDC?start=$DAY_AGO&end=$NOW&user=0xYourWalletHere" | jq '.data' # Hyperliquid Spot TWAP statuses for a symbol (last hour) NOW=$(( $(date +%s) * 1000 )); HOUR_AGO=$(( NOW - 3600000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/spot/twap/HYPE-USDC?start=$HOUR_AGO&end=$NOW" | jq '.data' # Hyperliquid Spot TWAP statuses for a wallet NOW=$(( $(date +%s) * 1000 )); DAY_AGO=$(( NOW - 86400000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/spot/twap/user/0xYourWalletHere?start=$DAY_AGO&end=$NOW" | jq '.data' # Hyperliquid Spot data freshness (per data type) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/spot/freshness/HYPE-USDC" | jq '.data' # Lighter BTC orderbook history (30s granularity, last hour) NOW=$(( $(date +%s) * 1000 )); HOUR_AGO=$(( NOW - 3600000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/lighter/orderbook/BTC/history?start=$HOUR_AGO&end=$NOW&granularity=30s&limit=100" | jq '.data' # System health status curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/data-quality/status" | jq '.' # SLA report for current month curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/data-quality/sla" | jq '.' # BTC market summary (price, funding, OI, volume, liquidations in one call) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/summary/BTC" | jq '.data' # BTC data freshness (lag per data type) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/freshness/BTC" | jq '.data' # BTC price history (mark/oracle/mid) aggregated to 1h NOW=$(( $(date +%s) * 1000 )); DAY_AGO=$(( NOW - 86400000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/prices/BTC?start=$DAY_AGO&end=$NOW&interval=1h" | jq '.data' # BTC liquidation volume aggregated to 4h buckets NOW=$(( $(date +%s) * 1000 )); WEEK_AGO=$(( NOW - 604800000 )) curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/hyperliquid/liquidations/BTC/volume?start=$WEEK_AGO&end=$NOW&interval=4h" | jq '.data' # Data coverage for Hyperliquid BTC curl -s -H "x-api-key: $OXARCHIVE_API_KEY" \ "https://api.0xarchive.io/v1/data-quality/coverage/hyperliquid/BTC" | jq '.'