
Unlock 5x Deeper Hyperliquid Market Depth with Dwellir's Orderbook Server
Dwellir's dedicated Hyperliquid order book server unlocks the full depth of market data so trading teams can see 5x more liquidity than the public feed. In this guide, you'll learn how to stream deeper order book levels, compare them with the community endpoint, and integrate the feed into real trading workflows.
By the end, you’ll have sample code for both JavaScript and Python that subscribes to 100 levels per side with latency-optimized infrastructure.
Video Tutorial
Watch the full walkthrough on YouTube:
TL;DR: Dwellir's managed Hyperliquid stack streams 100 levels per side with lower latency than the public API. You get deep order book data alongside HyperEVM JSON-RPC and Hypercore gRPC access, all optimized for low-latency applications.
Code Examples
Check out our GitHub repository with progressive Python examples that walk through WebSocket basics, L2 order books, reconnection handling, and data analysis. Contact us for server access details.
Why You Need Deeper Hyperliquid Order Book Data
Hyperliquid has become one of the largest perpetuals platforms, which means understanding its order book depth is critical for building trading applications. The public WebSocket only provides about 20 levels of depth and runs on community infrastructure, so when you need to see deeper into the order book or require more consistent performance, you run into limits. Dwellir solves this by:
- Streaming up to 100 configurable levels per side
- Running infrastructure close to dedicated Hyperliquid nodes for lower latency
- Handling connection recovery, replay, and monitoring so you can focus on your application logic
How Does Dwellir Stream 5x More Order Book Data?
| Capability | Dwellir Orderbook WebSocket | Public Hyperliquid API |
|---|---|---|
| Depth per side | Up to 100 levels via nLevels | Fixed ~20 levels |
| Median latency | Sub-100 ms from Dwellir infrastructure | Highly variable, community hosted |
| Payload controls | Sig figs, coin filters, managed snapshots | Limited filtering options |
| Failover | Automatic reconnection and recovery | Manual reconnects |
| Built-in support | Direct escalation to Dwellir engineers | DIY, public Discord |
We run the order book service alongside our dedicated Hyperliquid nodes, which means updates arrive faster with more consistent timing. Each connection uses API key authentication and includes automatic monitoring. If your connection drops, the system automatically sends a fresh snapshot so you don't miss any updates.
Dwellir Hyperliquid Stack at a Glance
- HyperEVM JSON-RPC: Dedicated RPC nodes for smart contract calls and analytics workloads. Sign up to set up an endpoint for your needs.
- Orderbook WebSocket: Managed streaming with 5x more depth and configurable update filtering. Sign up and submit a support ticket to request access.
- Hypercore gRPC: Access liquidation feeds, block data, and funding events directly from Hyperliquid L1. Sign up and submit a support ticket to request access.
- Dedicated HL Nodes: Reserve dedicated infrastructure for consistent performance. View pricing or contact us to get started.
- Dedicated Execution Environments (VPS): Run your applications close to the nodes for even lower latency. Contact us to get access.
Subscribe to Deep Order Book Data
Here's a simple Python example showing how to connect to the Dwellir order book WebSocket and stream 100 levels of depth. For complete examples including reconnection handling and data analysis, check out the GitHub repository.
Example: Stream L2 order book data in Python (see full example)
import asyncio
import json
import os
import websockets
from dotenv import load_dotenv
load_dotenv()
WEBSOCKET_URL = os.getenv("WEBSOCKET_URL") # Your Dwellir endpoint
COIN = "BTC"
async def stream_orderbook():
async with websockets.connect(WEBSOCKET_URL, ping_interval=20) as ws:
# Subscribe to L2 order book with 100 levels
subscription = {
"method": "subscribe",
"subscription": {
"type": "l2Book",
"coin": COIN,
"nLevels": 100,
"nSigFigs": 5,
},
}
await ws.send(json.dumps(subscription))
async for message in ws:
data = json.loads(message)
bids = data["data"]["bids"]
asks = data["data"]["asks"]
# Access deep order book levels
print(f"Top bid: {bids[0]} | 50th level: {bids[49]}")
print(f"Total levels: {len(bids)} bids, {len(asks)} asks")
if __name__ == "__main__":
asyncio.run(stream_orderbook())
With the public Hyperliquid WebSocket (wss://api.hyperliquid.xyz/ws), the same subscription would only return about 20 levels instead of 100.
Build a Complete Hyperliquid Application
You can combine the order book feed with the rest of the Dwellir Hyperliquid stack to build a full application:
- Market data: Use the order book WebSocket to track liquidity and price levels in real time.
- Transaction submission: Send transactions through HyperEVM with a dedicated JSON-RPC endpoint to avoid rate limits.
- Event monitoring: Subscribe to the Hypercore gRPC
StreamLiquidationsservice for liquidation events and other on-chain activity. - Analytics: Collect order book updates and on-chain events in a colocated environment, then forward the data to your analytics system.
- Debugging: Request historical snapshots from Dwellir support when you need to replay or investigate past market conditions.
Common Questions
How quickly can I get access?
Most developers get set up in under an hour. Request access through the Hyperliquid docs or reach out to the Dwellir team to enable dedicated nodes and execution environments.
Can I choose a specific region?
Yes. We run Hyperliquid nodes in Singapore, Japan, and Stockholm. For trading or real-time sensitive use cases, we recommend nodes in Japan or Singapore for the lowest latency. You can also deploy your application inside a Dwellir dedicated execution environment next to your dedicated Hyperliquid node.
What happens if my connection drops?
The system maintains heartbeats and automatically sends catch-up snapshots when you reconnect. You'll receive a fresh snapshot instead of having to rebuild the order book state manually.
Getting Started Checklist
- Request API keys for HyperEVM, order book, and Hypercore gRPC
- Set up environment variables for staging and production
- Add latency and throughput monitoring to your observability system
- Deploy your application inside Dwellir execution environments if you need the lowest possible latency
- Reach out to Dwellir engineers for performance optimization help as your application scales
Next Steps
Dwellir provides comprehensive Hyperliquid infrastructure in one place: HyperEVM access, deep order book streaming, Hypercore gRPC, dedicated nodes, and low-latency execution environments.
Ready to access 5x more market depth? Sign up for free to get started with HyperEVM, then contact our team to enable order book streaming and dedicated infrastructure for your trading application.
read another blog post