Hyperliquid
v0.2.1Hyperliquid MCP — read-only market data from Hyperliquid's public info API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hyperliquid_perp_meta
Perpetuals universe metadata from Hyperliquid's public info API ({"type":"meta"}) — every perp contract Hyperliquid lists (currently 190+), each with its symbol, szDecimals (size precision), maxLeverage, and isDelisted when retired. This is the reference list to resolve a human-asked symbol ("BTC", "ETH", "SOL") to a contract Hyperliquid actually trades before calling hyperliquid_mids, hyperliquid_l2_book, hyperliquid_candles or hyperliquid_funding_history with it — those all take the bare coin symbol shown here (e.g. "BTC", not "BTC-PERP"). Pass `coin` to look up one symbol instead of the…
| Parameter | Type | Description |
|---|---|---|
coin | string | Optional — filter to one perp symbol, e.g. "BTC" or "ETH". Omit to list the whole universe. |
hyperliquid_spot_meta
Spot market metadata from Hyperliquid's public info API ({"type":"spotMeta"}) — every spot trading pair Hyperliquid lists, each with its pair name (e.g. "PURR/USDC"), pair index, the two token ids it is composed of, and whether it is the canonical listing for that token. Hyperliquid names most non-canonical spot pairs generically ("@1", "@2", ...) because the human-readable name belongs to the canonical pair; this tool returns Hyperliquid's raw naming as-is. Use the `index` from here as the `coin` argument to hyperliquid_l2_book/hyperliquid_candles for a spot pair, in the form "@<index>" (Hy…
hyperliquid_mids
Live mid prices (midpoint of best bid/ask) for every asset Hyperliquid tracks — perps by symbol ("BTC", "ETH", ...) and spot pairs by numeric id ("@0", "@1", ...) — in one call, from Hyperliquid's public info API ({"type":"allMids"}). This is the cheapest way to get a current price: one request returns 1,000+ symbols. Pass `coin` to get just one symbol's mid price instead of the full map.
| Parameter | Type | Description |
|---|---|---|
coin | string | Optional — return only this symbol's mid price, e.g. "BTC" or "ETH". Omit to get the full map. |
hyperliquid_asset_context
Live perp market context for one contract — current funding rate, open interest, mark price, oracle price, mid price, 24h premium, and 24h notional + base volume — from Hyperliquid's public info API ({"type":"metaAndAssetCtxs"}, matched to the requested coin by universe index). This is the single call that answers "what is BTC perp funding right now" or "what is Hyperliquid's open interest in ETH" — the live numbers next to kalshi_* and polymarket_* for anyone pricing crypto-adjacent prediction markets. For a HISTORY of funding rates rather than the current one, use hyperliquid_funding_h…
| Parameter | Type | Description |
|---|---|---|
coin * | string | Perp symbol, e.g. "BTC", "ETH", "SOL". See hyperliquid_perp_meta for the full list. |
hyperliquid_l2_book
Live level-2 order book (bids + asks, each with price, aggregate size, and order count) for one Hyperliquid perp or spot symbol, from Hyperliquid's public info API ({"type":"l2Book"}). Returns two arrays — bids (best first, descending price) and asks (best first, ascending price) — each entry {px, sz, n}. Use `depth` to trim to the top N levels per side; Hyperliquid itself returns the full book (often 20+ levels per side) when depth is omitted.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Perp symbol (e.g. "BTC") or spot pair id (e.g. "@0" from hyperliquid_spot_meta, or the canonical name like "PURR/USDC"). |
depth | number | Levels to keep per side, best-first (default: all levels Hyperliquid returns, typically 20+). Pass e.g. 5 for just the top of book. |
hyperliquid_candles
OHLCV candles for one Hyperliquid perp or spot symbol, from Hyperliquid's public info API ({"type":"candleSnapshot"}). Each candle: open/high/low/close/volume (base units), trade count, and the interval's start/end timestamps. Pass `lookback_hours` for a window ending now (default 24h), or an explicit `start_time`/`end_time` (ISO date/datetime or unix seconds/milliseconds) for a specific historical window — Hyperliquid retains candle history well beyond 24h. `interval` accepts Hyperliquid's own granularities: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w, 1M.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Perp symbol (e.g. "BTC") or spot pair id/name (e.g. "@0" or "PURR/USDC"). |
end_time | string | Window END — same formats as start_time. Defaults to now. |
interval | string | 1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 8h | 12h | 1d | 3d | 1w | 1M (default "1h") |
lookback_hours | number | Window length ending now, in hours (default 24). Ignored when start_time is given. |
start_time | string | Window START — ISO date/datetime or unix seconds/milliseconds. Use with end_time for a window that does not end now. |
hyperliquid_funding_history
Historical funding-rate payments for one Hyperliquid perp — timestamped funding rate and premium at each funding interval (hourly on Hyperliquid), from Hyperliquid's public info API ({"type":"fundingHistory"}). Use this to see how funding has trended (e.g. persistently positive BTC funding = longs paying shorts = crowded long), or to reconstruct realized funding cost over a window. For the CURRENT funding rate only, hyperliquid_asset_context is cheaper (one call, no window math).
| Parameter | Type | Description |
|---|---|---|
coin * | string | Perp symbol, e.g. "BTC", "ETH", "SOL". |
end_time | string | Window END — same formats as start_time. Defaults to now. |
lookback_hours | number | Window length ending now, in hours (default 24, funding pays hourly so this returns ~1 row/hour). Ignored when start_time is given. |
start_time | string | Window START — ISO date/datetime or unix seconds/milliseconds. Use with end_time for a window that does not end now. |
hyperliquid_account_state
Perpetuals account state for one Hyperliquid wallet address -- two separate flags (account_has_balance: non-zero account value, idle dust included; account_has_open_perp_positions: a position is open or notional / margin is non-zero), then account value, total notional, margin used, withdrawable, cross-maintenance margin, and every open perp position (coin, signed size where negative = short, entry price, position value, unrealized PnL, ROE, liquidation price, leverage, margin used, cumulative funding). Public on-chain data, keyless. Use for "what is this Hyperliquid wallet's position / margin…
| Parameter | Type | Description |
|---|---|---|
address * | string | 0x-prefixed 42-character wallet address. |
hyperliquid_spot_balances
Spot token balances for one Hyperliquid wallet address -- per token: total, amount on hold in open orders, available (total minus hold) and entry notional in USDC. Includes the spot USDC balance. Public on-chain data, keyless. Use for "what tokens does this Hyperliquid wallet hold". e.g. {address:"0x31dea2516beee92135b96f464eeec3cf292a13f2"}.
| Parameter | Type | Description |
|---|---|---|
address * | string | 0x-prefixed 42-character wallet address. |
limit | number | Max token rows to return, largest first (default 50). Totals always cover every token. |
hyperliquid_account_history
Account value and PnL history for one Hyperliquid wallet address over a day, week, month or all time -- starting and ending account value, PnL change, trading volume, then a downsampled series. Scope "combined" is perp plus spot; "perp" is perp only. Public on-chain data, keyless. e.g. {address:"0x31dea2516beee92135b96f464eeec3cf292a13f2", period:"week"}.
| Parameter | Type | Description |
|---|---|---|
address * | string | 0x-prefixed 42-character wallet address. |
period | string | Window (default "week"). |
scope | string | "combined" (default) = perp + spot; "perp" = perp only. |