hl_info
Query the Hyperliquid Info API — the perps/spot order-book data layer (read-only, no auth). The 'type' field selects the query: meta (perps universe + leverage), l2Book (order book for a coin), allMids (mid prices), clearinghouseState (a user's positions/margin), spotMeta, meta+assetCtxs (mark/funding/OI), candleSnapshot, and more. For type:metaAndAssetCtxs specifically: the raw response is TWO PARALLEL top-level arrays (universe names, asset contexts) correlated only by array position — do not try to read/scan it directly for '200+ coins' style questions (funding-rate outliers, biggest open interest, highest volume). Pass rankBy instead: it joins the two arrays server-side, sorts, and returns only the top N — the correct way to answer 'what has the highest/most extreme funding/OI/volume right now'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | rankBy only: asc | desc (default desc — highest rankBy value first) | |
| coin | No | Coin symbol for l2Book/candleSnapshot (e.g. BTC, ETH) | |
| type | Yes | Info request type, e.g. meta, l2Book, allMids, clearinghouseState, metaAndAssetCtxs | |
| user | No | 0x address for user-scoped queries (clearinghouseState, openOrders, userFills) | |
| limit | No | rankBy only: how many ranked rows to return (default 20, max 100) | |
| rankBy | No | type:metaAndAssetCtxs ONLY. One of funding | fundingAbs | openInterest | volume. Joins each coin's name to its funding/OI/volume, drops delisted coins, sorts, and returns {ranked, rankBy, dir, totalCoins} instead of the raw two-array response. Use fundingAbs for "biggest funding outlier either direction" (ranks by |funding|); use funding for "most positive/most negative" specifically (with dir). |