Crypto order book, Hyperliquid: bids, asks, spread and depth of a perp
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
Live order book of a Hyperliquid perpetual (BTC, ETH, SOL, HYPE…): the best bid and ask levels with price, size and order count, the mid price, the spread in USD and basis points, and the summed depth on each side. Up to 20 levels a side (default 10). Read from Hyperliquid's public API. Use to judge liquidity and slippage before a trade, or for market-making and arbitrage checks.
Inputs
| Name | Type | Description |
|---|---|---|
coin | string | Coin symbol such as BTC, ETH, SOL or HYPE (default BTC) |
levels | integer | Levels per side, 1-20 (default 10) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/hyperliquid/orderbook?coin=BTC"
Node.js
const r = await fetch("https://glyphtools.com/hyperliquid/orderbook?coin=BTC", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/hyperliquid/orderbook?coin=BTC", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Or one of your 3 free calls, no key — the same request with &trial=1 on the end:
curl "https://glyphtools.com/hyperliquid/orderbook?coin=BTC&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"coin": "BTC",
"time": "2026-10-23T13:24:02.893Z",
"mid": 81870.5,
"spread": 1,
"spreadBps": 0.12,
"bids": [
{
"px": 81870,
"sz": 3.89437,
"n": 22
}
],
"asks": [
{
"px": 81871,
"sz": 1.2,
"n": 4
}
],
"bidDepth": 12.3,
"askDepth": 9.8,
"bidDepthUsd": 1007000,
"askDepthUsd": 802000,
"source": "Hyperliquid public info API"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is hyperliquid_orderbook, and the first 10 successful calls are free:
https://glyphtools.com/mcp