Use when an agent sizes a Hyperliquid market order or compares liquidity
Use when an agent sizes a Hyperliquid market order or compares liquidity. Input: coin (perp or HIP-3 xyz:TSLA), optional sizes_usd (up to 5, default 1000,10000,100000), levels (0-20). Output: JSON best bid/ask, spread bps, depth USD within 0.1/0.5/1/2%, imbalance, per size buy/sell average fill, worst price and slippage bps vs mid, top levels. Cached 3 s. Example: ?coin=BTC&sizes_usd=1000,10000
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://1gateway.dev/v1/crypto/hyperliquid/orderbook
| Category | Market data |
|---|---|
| Provider host | 1gateway.dev |
| Networks | eip155:137, eip155:143, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 3 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"coin": "BTC",
"levels": 5,
"sizes_usd": "1000,10000,100000"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"coin": {
"description": "Hyperliquid perp symbol (BTC, ETH, kPEPE) or HIP-3 dex:COIN (xyz:TSLA). Not listed or delisted: 400\u2026",
"pattern": "^([a-z][a-z0-9]{0,9}:)?[A-Za-z0-9]{1,20}$",
"type": "string"
},
"levels": {
"default": 10,
"description": "Book levels per side to return (0-20, default 10)",
"maximum": 20,
"minimum": 0,
"type": "integer"
},
"sizes_usd": {
"description": "1-5 comma-separated order notionals in USD, 10 to 50,000,000 (default 1000,10000,100000)",
"maxLength": 80,
"pattern": "^[0-9.]+(,[0-9.]+){0,4}$",
"type": "string"
}
},
"required": [
"coin"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": true,
"properties": {
"as_of": {
"type": "string"
},
"coin": {
"type": "string"
},
"depth": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
"dex": {
"type": "string"
},
"levels": {
"additionalProperties": true,
"properties": {
"asks": {
"type": "array"
},
"bids": {
"type": "array"
}
},
"type": "object"
},
"slippage": {
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
"top": {
"additionalProperties": true,
"properties": {
"ask": {
"type": "integer"
},
"bid": {
"type": "integer"
},
"mid": {
"type": "number"
},
"spreadBps": {
"type": "number"
}
},
"type": "object"
},
"visibleBook": {
"additionalProperties": true,
"properties": {
"askUsd": {
"type": "integer"
},
"bidUsd": {
"type": "integer"
},
"imbalance": {
"type": "number"
},
"levelsPerSide": {
"type": "integer"
},
"rangePct": {
"type": "number"
}
},
"type": "object"
}
},
"required": [
"coin",
"dex",
"as_of",
"top",
"visibleBook",
"depth",
"slippage",
"levels"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}