Hyperliquid
Hyperliquid perpetual and spot market data: mid prices, L2 order books, candles, funding history, vaults, portfolios and WebSockets.
Independent service, not affiliated with Hyperliquid. Hyperliquid is a trademark of its owner.
What you can get
- Live mid prices, mark prices, funding rates and open interest for every perpetual and spot market
- L2 order-book snapshots, OHLCV candles, recent trades and predicted funding across venues
- Per-address clearinghouse state, open orders, fills, PnL curves, vaults and HYPE staking
- 9 real-time WebSocket streams (trades, l2Book, allMids, candles, BBO)
First request
Example: POST /info/allMids. Send your key in the X-Hub-Key header.
curl -sS -X POST -H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
-d '{}' \
"https://openapihub.dev/run/hyperliquid/info/allMids"Response
The provider's JSON arrives unchanged in data. Abridged example; values change with the market.
{
"source": "hyperliquid",
"status": 200,
"data": {
"BTC": "91420.5",
"ETH": "3120.25",
"SOL": "188.40",
"HYPE": "28.15"
}
}Limits and key
80 requests per second per key, bursts up to 160, 60 requests in flight. On 429, wait for Retry-After. Limits · Pricing · OpenAPI JSON
Get a free key in the Telegram bot: one key per account, issued in a few seconds.
Use cases
- Perpetuals and options API: Hyperliquid, dYdX v4 & Deribit
- Real-time crypto WebSockets and WebSocket RPC
All endpoints
WebSocket streams
GET
/ws/hyperliquid/trades/{coin} [WS] — Live public trade tape for one Hyperliquid coin (WebSocket).GET
/ws/hyperliquid/l2Book/{coin} [WS] — Live public L2 order book snapshots for one Hyperliquid coin.GET
/ws/hyperliquid/allMids [WS] — Live mid-price ticks for all listed Hyperliquid coins (WebSocket).GET
/ws/hyperliquid/candle/{coin}/{interval} [WS] — Live OHLCV candle updates for one Hyperliquid coin and interval (WebSocket).GET
/ws/hyperliquid/bbo/{coin} [WS] — Live best bid/offer (top-of-book) updates for one Hyperliquid coin (WebSocket).GET
/ws/hyperliquid/activeAssetCtx/{coin} [WS] — Live asset context (funding, open interest, mark/oracle price, volume) for one coin (WebSocket).GET
/ws/hyperliquid/clearinghouseState/{user} [WS] — Live perpetual clearinghouse state and position stream for one EVM address (WebSocket).GET
/ws/hyperliquid/openOrders/{user} [WS] — Live open orders stream for one EVM address (WebSocket).GET
/ws/hyperliquid/userFills/{user} [WS] — Live trade fills stream for one EVM address (WebSocket).Borrow/lend
POST
/info/allBorrowLendReserveStates — Every borrow/lend reserve's live state: yearly borrow and supply rates, total supplied/borrowed, utilization, oracle price and LTV.POST
/info/borrowLendReserveState — Borrow/lend reserve state for one token index (0 is the first reserve, currently USDC).Candles
POST
/info/candleSnapshot — OHLCV candle snapshot for one coin and interval, bounded by startTime/endTime (the most recent 5000 candles are available).Exchange
POST
/info/exchangeStatus — Exchange-wide status: server time and any special per-asset status entries.POST
/info/perpDexs — Builder-deployed perpetual dex listings and their metadata, including the venues beyond the primary Hyperliquid book.POST
/info/perpDeployAuctionStatus — Current perp-deploy gas auction: start/duration, start/current/end gas and the auction window.POST
/info/perpDexLimits — Open-interest caps and transfer notional limits for one builder-deployed perp dex.Funding
POST
/info/fundingHistory — Funding-rate history for one perpetual coin in a time window: funding rate, premium and timestamp.POST
/info/predictedFundings — Current predicted funding rates across venues for every perpetual coin.Order book
POST
/info/l2Book — L2 order-book snapshot for one coin: aggregated bid and ask levels with price, size and order count.Perpetuals
POST
/info/meta — Listed perpetual universe with szDecimals, max leverage and the margin-table ladder used for maintenance-margin calculation.POST
/info/metaAndAssetCtxs — Perpetual universe together with every asset's live context: mark and oracle price, funding rate, open interest, day volume and premium.POST
/info/allMids — Mid price for every listed perpetual and spot asset, keyed by the exchange's own coin symbol.POST
/info/perpsAtOpenInterestCap — List of perpetual coin symbols currently at their open-interest cap.POST
/info/allPerpMetas — Perpetual universe and margin tables across the primary exchange and all builder-deployed dexes.Spot
POST
/info/spotMeta — Spot token and pair universe: token indices, pair names, szDecimals and the token metadata used by spot trading.POST
/info/spotMetaAndAssetCtxs — Spot universe together with every spot pair's live context (mark price, mid price, day volume and circulating supply where available).POST
/info/tokenDetails — Spot token details for one token id: name, deployer, deploy time, supply, circulating supply, mark/mid price and genesis info.POST
/info/spotPairDeployAuctionStatus — Current spot pair deployment gas auction window and gas prices.POST
/info/spotDeployState — Spot token deployment states and gas auction details for a deployer address.Staking
POST
/info/delegatorSummary — Staking summary for an EVM address: delegated, undelegated, and pending withdrawals.POST
/info/delegatorHistory — Historical staking deposit, delegation, and undelegation events for an EVM address.Trader
POST
/info/clearinghouseState — Per-address perpetual clearinghouse state: margin summary, cross margin summary, withdrawable balance, and open positions.POST
/info/userFills — Most recent trade fills for an EVM address (up to 2000 fills), including price, size, side, direction, closed PnL, and fees.POST
/info/userFees — Per-address fee schedule, daily volume history, VIP tiers, and referral discount.POST
/info/userNonFundingLedgerUpdates — Non-funding ledger updates for an EVM address in a time window: deposits, withdrawals, internal transfers, vault deposits, and liquidations.POST
/info/twapHistory — TWAP order submission, execution, and completion history for an EVM address.POST
/info/portfolio — Historical account value, PnL curve, and traded volume across day, week, month, allTime, and perp-only windows.POST
/info/subAccounts — Sub-accounts owned by a master EVM address with their clearinghouse and spot states.POST
/info/referral — Referral code, referrer info, cumulative volume, and unclaimed referral rewards.POST
/info/activeAssetData — Per-address leverage setting, max trade sizes, and available-to-trade for one coin.POST
/info/maxBuilderFee — Approved maximum builder fee (in tenths of a basis point) for a user and builder pair.POST
/info/preTransferCheck — Pre-transfer eligibility, sanctions flag, fee, and existence check between two addresses.Trades
POST
/info/recentTrades — Most recent public trades for one coin, with price, size, side, time and trade id.Validators
POST
/info/validatorSummaries — Per-validator summary: stake, commission, jailed status, signing performance and last activity.POST
/info/validatorL1Votes — Recent validator L1 votes recorded by the exchange, with the voting round and vote payload.Vaults
POST
/info/vaultDetails — Full vault details: leader, description, portfolio curves, APR, followers, leader commission, and relationship status.