# Hyperliquid Market Data **Hyperliquid Market Data** is an independently documented x402 Atlas bridge at https://hyperliquid.use.x402atlas.com. This document describes only this bridge; it does not aggregate routes, schemas, or content from any other bridge. ## How payment works Paid operations use the [x402 payment protocol](https://x402.org) and settle in USDC. Atlas supports deployments on Base, Polygon, and Arbitrum, plus configured Solana networks. This bridge currently advertises Arbitrum One (`eip155:42161`), Base (`eip155:8453`), Polygon (`eip155:137`), Solana mainnet (`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). 1. Send the HTTP request without a payment signature. 2. Read the `402 Payment Required` response. Its `accepts` entries are the authoritative network, asset, amount, and recipient options for that call. 3. Select an option, sign it with an x402-compatible wallet or SDK, and repeat the request with the `PAYMENT-SIGNATURE` header. The successful response is returned after verification and settlement. TypeScript clients can automate the challenge, signing, and retry flow with [`x402-fetch`](https://www.npmjs.com/package/x402-fetch) or [`x402-axios`](https://www.npmjs.com/package/x402-axios). Fund a dedicated wallet only with the working USDC balance it needs and keep that key separate from treasury accounts. ## Pricing Atlas route prices start at $0.005 per successful call. This bridge's fallback price is $0.005; operations below state their exact configured price in `x-x402` and `x-payment-info`. The live `402` challenge remains authoritative. ## Worked payment example Request one documented operation without a signature to inspect its live terms: ```bash curl -i 'https://hyperliquid.use.x402atlas.com/book?coin=BTC' # HTTP/1.1 402 Payment Required # Read accepts[].network, asset, amount, and payTo from this response. ``` Sign one accepted option and repeat the identical request with the `PAYMENT-SIGNATURE` header. Do not invent or cache payment terms; read them from the current challenge. ## Use this API - Interactive reference: https://hyperliquid.use.x402atlas.com/docs - OpenAPI 3.1 specification: https://hyperliquid.use.x402atlas.com/openapi.json - Agent-readable route corpus: https://hyperliquid.use.x402atlas.com/llms.txt - Endpoint index: https://hyperliquid.use.x402atlas.com/index.json Use the operation schemas and examples below to construct requests. Copy the server URL, path, method, parameters, and request body from the operation you want to call. Path and query examples are concrete and can be used directly. ## Atlas response metadata Successful JSON responses include an additive top-level `_atlas` block, kept separate from the bridge's data fields. `_atlas.docs` links this bridge's `/llms.txt` corpus. `_atlas.related` suggests adjacent APIs, each with a callable `url`, its own `docs` link, and a short `summary`. Suppress this block by sending `X-Atlas-Meta: none` or by adding `?_atlas=0` to the request. ## Errors and compatibility Validation failures use HTTP `400`. Paid operations may return `402` before dispatch. Upstream and internal failures use the documented `5xx` responses. Clients should rely on documented fields and tolerate additive response fields, including `_atlas` unless they explicitly opt out. ## Protocol reference - x402 protocol and SDKs: https://x402.org ## Hyperliquid Market Data Docs: https://hyperliquid.use.x402atlas.com/docs · OpenAPI: https://hyperliquid.use.x402atlas.com/openapi.json ### GET /book Live L2 order book for one Hyperliquid asset — bids and asks with price, size and order count, up to 20 levels per side. The live L2 order book for one Hyperliquid asset (up to 20 levels per side). Pass `coin` (e.g. BTC, ETH, or a spot pair like PURR/USDC). Hyperliquid nests bids and asks in a positional two-element array; this route splits them into named `bids` and `asks`, each level carrying `px` (price), `sz` (size) and `n` (order count). The book timestamp is normalized to RFC3339. Numeric fields are strings to preserve full precision. **Price:** $0.01 per call. Parameters: - `coin` (required, string) — Asset symbol (perp e.g. BTC, or spot pair e.g. PURR/USDC); maxLength: `32`; example: `"BTC"` Example: ```sh curl 'https://hyperliquid.use.x402atlas.com/book?coin=BTC' ``` Response example: ```json { "asks": [ { "n": 2, "px": "64251.0", "sz": "0.8" } ], "bids": [ { "n": 3, "px": "64249.0", "sz": "1.5" } ], "coin": "BTC", "queried_at": "2026-07-10T12:00:00Z", "time": "2026-07-10T12:00:00Z" } ``` ### GET /candles OHLCV candles for one Hyperliquid asset over any interval (1m to 1M), normalized into named fields with RFC3339 timestamps. OHLCV candles for one Hyperliquid asset. Pass `coin` and `interval` (one of 1m,3m,5m,15m,30m,1h,2h,4h,8h,12h,1d,3d,1w,1M). Optional `start`/`end` are millisecond-epoch timestamps; if omitted the route returns the most recent ~500 candles. An empty window returns `count: 0` with an empty `candles` array. Hyperliquid's terse single-letter candle fields are re-modelled into named `open/high/low/close/volume/trades` with RFC3339 `open_time`/`close_time`. Numeric fields are strings to preserve full precision. **Price:** $0.01 per call. Parameters: - `coin` (required, string) — Asset symbol (e.g. BTC); maxLength: `32`; example: `"BTC"` - `end` (optional, integer) — Optional end (ms epoch); defaults to now; minimum: `0`; example: `1784332800000` - `interval` (required, string) — Candle interval; allowed: ["1m","3m","5m","15m","30m","1h","2h","4h","8h","12h","1d","3d","1w","1M"]; example: `"1h"` - `start` (optional, integer) — Optional start (ms epoch); defaults to ~500 intervals ago; minimum: `0`; example: `1782864000000` Example: ```sh curl 'https://hyperliquid.use.x402atlas.com/candles?coin=BTC&end=1784332800000&interval=1h&start=1782864000000' ``` Response example: ```json { "candles": [ { "close": "64250.0", "close_time": "2026-07-10T12:00:00Z", "high": "64300.0", "low": "63900.0", "open": "64000.0", "open_time": "2026-07-10T11:00:00Z", "trades": 987, "volume": "1234.5" } ], "coin": "BTC", "count": 1, "interval": "1h", "queried_at": "2026-07-10T12:00:00Z" } ``` ### GET /funding Historical funding rates for one Hyperliquid perpetual over a time window — funding rate, premium and timestamp per hour. Historical funding rates for one Hyperliquid perpetual. Pass `coin`; optional `start`/`end` are millisecond-epoch timestamps (defaults to the last 7 days). An empty window returns `count: 0` with an empty `funding` array. Each entry carries the `funding_rate`, `premium` and an RFC3339 `time`. Funding on Hyperliquid is hourly; use this to compute realized carry or spot funding regime shifts. Numeric fields are strings to preserve full precision. **Price:** $0.01 per call. Parameters: - `coin` (required, string) — Perp asset symbol (e.g. BTC); maxLength: `32`; example: `"BTC"` - `end` (optional, integer) — Optional end (ms epoch); minimum: `0`; example: `1784332800000` - `start` (optional, integer) — Optional start (ms epoch); defaults to 7 days ago; minimum: `0`; example: `1782864000000` Example: ```sh curl 'https://hyperliquid.use.x402atlas.com/funding?coin=BTC&end=1784332800000&start=1782864000000' ``` Response example: ```json { "coin": "BTC", "count": 1, "funding": [ { "coin": "BTC", "funding_rate": "0.0000125", "premium": "0.0001", "time": "2026-07-10T11:00:00Z" } ], "queried_at": "2026-07-10T12:00:00Z" } ``` ### GET /mids Current mid price for every Hyperliquid asset (perps + spot) in one call — a fast whole-venue price snapshot. Current mid price for every asset trading on Hyperliquid, perps and spot, in one call. Returns a `mids` map of symbol → price string (prices are strings to preserve Hyperliquid's full precision). No parameters. Use it as a fast, single-request price snapshot across the whole venue; for one asset's full context (funding, open interest, mark/oracle price) use `/perps`. **Price:** $0.005 per call. Example: ```sh curl 'https://hyperliquid.use.x402atlas.com/mids' ``` Response example: ```json { "count": 2, "mids": { "BTC": "64250.0", "ETH": "3120.5" }, "queried_at": "2026-07-10T12:00:00Z" } ``` ### GET /oi-caps The Hyperliquid perpetual assets currently at their open-interest cap — a liquidity/risk signal. The perpetual assets currently pinned at their open-interest cap on Hyperliquid — new positions in these are constrained until open interest falls. Returns a `coins` array of symbols. No parameters. A useful liquidity/risk signal: a coin at its OI cap is one the venue won't let traders add exposure to right now. **Price:** $0.005 per call. Example: ```sh curl 'https://hyperliquid.use.x402atlas.com/oi-caps' ``` Response example: ```json { "coins": [ "HYPE" ], "count": 1, "queried_at": "2026-07-10T12:00:00Z" } ``` ### GET /perps Live context for every Hyperliquid perpetual — mark/oracle/mid price, funding, open interest, premium and 24h notional volume, zipped with each asset's metadata. Live trading context for every perpetual on Hyperliquid, in one call — mark price, oracle price, mid price, funding rate, open interest, premium, 24h notional volume and impact prices, joined to each asset's metadata (max leverage, size decimals). Hyperliquid returns this as two positionally-parallel arrays (metadata and contexts) that must be aligned by index; this route does that zip for you and returns one flat `assets` array. No parameters. Numeric fields are strings to preserve full precision. **Price:** $0.01 per call. Example: ```sh curl 'https://hyperliquid.use.x402atlas.com/perps' ``` Response example: ```json { "assets": [ { "day_ntl_vlm": "1234567.8", "funding": "0.0000125", "impact_pxs": [ "64249.0", "64251.0" ], "mark_px": "64250.0", "max_leverage": 50, "mid_px": "64249.5", "name": "BTC", "only_isolated": false, "open_interest": "12345.6", "oracle_px": "64240.0", "premium": "0.0001", "prev_day_px": "63000.0", "sz_decimals": 5 } ], "count": 1, "queried_at": "2026-07-10T12:00:00Z" } ``` ### GET /perps-meta The Hyperliquid perpetuals universe — tradeable symbols with max leverage and size decimals, without live context. The list of perpetual assets tradeable on Hyperliquid with their metadata — symbol, max leverage, size decimals and whether the market is isolated-only. No live prices or funding (use `/perps` for that); this is the cheaper call when you only need the tradeable universe. No parameters. **Price:** $0.005 per call. Example: ```sh curl 'https://hyperliquid.use.x402atlas.com/perps-meta' ``` Response example: ```json { "assets": [ { "max_leverage": 50, "name": "BTC", "only_isolated": false, "sz_decimals": 5 } ], "count": 1, "queried_at": "2026-07-10T12:00:00Z" } ``` ### GET /predicted-funding Predicted next funding rates per asset across venues (Hyperliquid vs CEX perps) — cross-venue carry, de-positioned from Hyperliquid's nested arrays. Predicted next funding rates per asset across venues (Hyperliquid and the CEX perp markets it references), so you can see funding dispersion and cross-venue carry at a glance. No parameters. Hyperliquid returns this as a deeply nested positional array; this route de-positions it into `assets`, each with a `venues` list of `{venue, funding_rate, next_funding_time}`. Numeric fields are strings to preserve full precision. **Price:** $0.01 per call. Example: ```sh curl 'https://hyperliquid.use.x402atlas.com/predicted-funding' ``` Response example: ```json { "assets": [ { "coin": "BTC", "venues": [ { "funding_rate": "0.0000125", "next_funding_time": "2026-07-10T13:00:00Z", "venue": "HlPerp" }, { "funding_rate": "0.0001", "next_funding_time": "2026-07-10T16:00:00Z", "venue": "BinancePerp" } ] } ], "count": 1, "queried_at": "2026-07-10T12:00:00Z" } ``` ### GET /spot Live context for every Hyperliquid spot pair — price, 24h notional volume and token supply, with token names resolved and context zipped in. Live context for every spot pair on Hyperliquid — mark/mid/prev-day price, 24h notional volume, and circulating/total token supply. Hyperliquid returns this as positionally-parallel metadata and context arrays, with pairs referencing their tokens by integer index; this route resolves the token names and zips the context into one flat `pairs` array with `base_token`/`quote_token`. No parameters. Numeric fields are strings to preserve full precision. **Price:** $0.01 per call. Example: ```sh curl 'https://hyperliquid.use.x402atlas.com/spot' ``` Response example: ```json { "count": 1, "pairs": [ { "base_token": "PURR", "circulating_supply": "1000000000.0", "day_ntl_vlm": "12345.6", "mark_px": "0.14", "mid_px": "0.141", "name": "PURR/USDC", "prev_day_px": "0.13", "quote_token": "USDC", "total_supply": "1000000000.0" } ], "queried_at": "2026-07-10T12:00:00Z" } ```