⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
All Blog Posts
Article Image

Unlock 5x Deeper Hyperliquid Market Depth with Dwellir's Orderbook Server

3rd November 2025

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:

How Does Dwellir Stream 5x More Order Book Data?

CapabilityDwellir Orderbook WebSocketPublic Hyperliquid API
Depth per sideUp to 100 levels via nLevelsFixed ~20 levels
Median latencySub-100 ms from Dwellir infrastructureHighly variable, community hosted
Payload controlsSig figs, coin filters, managed snapshotsLimited filtering options
FailoverAutomatic reconnection and recoveryManual reconnects
Built-in supportDirect escalation to Dwellir engineersDIY, 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

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:

  1. Market data: Use the order book WebSocket to track liquidity and price levels in real time.
  2. Transaction submission: Send transactions through HyperEVM with a dedicated JSON-RPC endpoint to avoid rate limits.
  3. Event monitoring: Subscribe to the Hypercore gRPC StreamLiquidations service for liquidation events and other on-chain activity.
  4. Analytics: Collect order book updates and on-chain events in a colocated environment, then forward the data to your analytics system.
  5. 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

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

Get your API key

and join other leading Web3 companies using Dwellir's infrastructure