A Guide to Hyperliquid Data API vs. Streams
Scale your Hyperliquid bot with the right data layer. Compare REST and WebSocket with streams, plan for HIP-4 Outcome Market feeds, and pick the right private data infrastructure.
, 8 min read

If you're building anything on Hyperliquid blockchain: a trading bot, an analytics dashboard, a market-making engine, or even a simple price tracker, the first real decision you face isn't what to build. It's how you get the data. The Hyperliquid Data API gives you direct, free access to market prices, positions, trades, and order flow. It's the native data layer of the protocol, and for most developers, it's where everything starts.
HypeRPC is now part of Hyperdash, and its Hyperliquid RPC, node and data services run under the Hyperdash name.

Streams take a different approach. Instead of you polling for data, a streaming layer monitors the chain and pushes precisely the information you need directly to your application: filtered, compressed, and reliable. This includes native feeds from HyperCore or optimized, institutional-grade delivery through Hyperdash.
The Architecture of Hyperliquid Data Integration
Hyperliquid blockchain runs on two layers that work together. HyperCore is the trading engine; it handles the on-chain order books, perpetual futures, and spot markets with near-instant finality. HyperCore is a custom Rust-based L1 utilizing HyperBFT consensus to handle order-book operations with a median end-to-end latency of 0.2 seconds. It manages the trading engine with 8-decimal precision. Alongside it, HyperEVM acts as the Ethereum-compatible layer (18-decimal precision) for smart contract composability, allowing developers to deploy Solidity-based dApps that interact seamlessly with HyperCore's liquidity.
How Data Moves On Hyperliquid

Data access follows this same split. HyperCore provides trading data (prices, trades, order books, funding rates, liquidations) via its own endpoints. HyperEVM provides smart contract data via standard JSON-RPC methods, the same format used across Ethereum and its Layer 2s.
When people say "Hyperliquid Data API," they mean the official REST and WebSocket endpoints you can hit directly. When they say "Streams," they mean managed, push-based delivery systems, often accessed through a private gateway that sits on top of this infrastructure and handles the heavy lifting for you. Your Hyperliquid integration approach depends entirely on which model fits your use case.
Hyperliquid Data API: When Pulling Data Works Best
The official API is your simplest starting point. It's free, well-documented, and doesn't need any third-party accounts. The REST side works like a question-and-answer system. You send a request ("What are my open positions?" or "What's ETH's funding rate?"), and you get a JSON response back. There are over 50 query types covering everything from market metadata to trade history and candle charts.
How the Hyperliquid REST and WebSocket API Works
The WebSocket side handles real-time data. You open a persistent connection, subscribe to specific feeds, say, BTC trades or ETH order book updates, and the server pushes new data to you as it happens on-chain. It supports trades, order-book snapshots, best bid/offer, mid prices, candles, and user-specific feeds such as fills and funding payments.
For a personal trading tool, a price dashboard, or a basic bot watching a handful of assets, this covers everything you need.
Overcoming Subscription Caps and Scaling with Hyperdash
The catch? The public WebSocket caps you at 1,000 total subscriptions per IP address. Since each asset-feed combo (like "BTC trades" or "ETH order book") counts as one subscription, monitoring many markets across multiple feed types eats through that limit fast. There are also rate limits on REST queries, and if your connection drops, you're responsible for reconnecting and catching up on missed data.
For solo projects and moderate-scale applications, these limits rarely bite. For production systems that watch dozens or hundreds of markets, this becomes a real constraint. The public REST API allows 1,200 weight per minute per IP, about 60 requests a minute for most info requests. The Hyperdash Data API serves the same markets from Hyperdash's own nodes, so its requests never count against Hyperliquid's public limits.
Real-Time Streams: Mastering the Hyperliquid WebSocket and Beyond
Streams flip the whole model around. Instead of your app connecting to endpoints, managing subscriptions, handling disconnects, and filtering through everything client-side, a streaming service does all of that and delivers only what you asked for.
At the node level, managed providers expose seven HyperCore data stream types through gRPC: Trades, Orders, Book Updates, TWAP, Events, Blocks, and Writer Actions. That means smaller messages and faster processing compared to standard WebSocket feeds.
The biggest advantage is delivery guarantees. Streams provide exactly-once delivery: every event arrives once, in the right order, with no duplicates or gaps. Building this level of reliability with raw WebSocket connections and custom retry code is serious engineering work that most teams would rather skip.
Reduce your data overhead by 70% using zstd binary compression. In a 24/7 production environment, this efficiency significantly lowers your bandwidth costs while allowing you to process more market-depth (L2/L4) updates without hitting local hardware bottlenecks.
Why Hyperdash Is the Preferred Private Gateway for Data
Public endpoints are shared infrastructure. When traffic spikes, so does your latency. A private data service solves this, and that's exactly what Hyperdash provides.
Built specifically for the Hyperliquid ecosystem, Hyperdash serves Hyperliquid data from its own nodes through the Data API and WebSocket streams that resume from a cursor after a disconnect. Run your node next to the network in Tokyo (JP) or Frankfurt (DE) with Hyperliquid Peering: Hyperdash reserves a whitelisted slot for your node on its own node, which peers directly with a Hyperliquid Foundation node, so it keeps receiving blocks and mempool transactions through network upgrades.
The key distinction: Hyperdash covers both approaches, REST queries and push-based streams, plus dedicated nodes for teams that run their own stack. For anyone moving from prototype to production, it's usually the first upgrade that pays for itself.
HIP-4 and Beyond: Data Needs for Outcome Trading
Hyperliquid keeps expanding. HIP-4 Outcome Markets bring prediction-style YES/NO contracts to HyperCore. Think binary contracts on real-world events, settled on-chain in the market's quote token, such as USDC. This adds entirely new data types (contract creation, settlement triggers, outcome positions) that your app may need to consume alongside regular trading data.
If you're on Streams, adding these is just another subscription. On raw WebSocket connections, each new feed type eats into your 1,000-slot cap. As Hyperliquid's ecosystem grows with new asset types and market structures, choosing a data strategy that scales with it saves you from painful rewiring later.
Scaling Your Integration with a Private Hyperliquid Data API
Here's the honest bottom line. Neither approach is universally "better"; the right choice maps to where you are right now and where you're headed. Start with the free public Hyperliquid Data API. Use it to prototype and validate your idea. The official Python SDK and community SDKs in TypeScript and Rust make this fast.
Best Hyperliquid Data Approach

Move to Streams when scale demands it. Once you're watching many markets, feeding data into storage, or running anything where missed events cost real money, the reliability and filtering of Streams justify the cost. The engineering hours you save on connection management go straight into building what actually matters: your strategy, your product, your edge.
Layer in a private data service like Hyperdash when consistency matters. Whether you're using the Data API, Streams, or both, dedicated infrastructure gives you the predictable latency and uptime that shared public endpoints simply cannot guarantee.
Most mature setups end up combining all three: Streams for bulk data ingestion and analytics, the native Hyperliquid Data API for quick queries and order placement, and Hyperdash for reliable data access across the board.
Pull Hyperliquid data and streams with your AI agent
An AI agent connected to Hyperdash can answer "How did BTC open interest and liquidations on Hyperliquid change over the last 24 hours?" and build a live stream on top.
- Connect the MCP server: The Hyperdash MCP server works with Claude, ChatGPT, Claude Code, Codex or Cursor. Setup takes about a minute and you sign in with your Hyperdash account.
- Install the skills: Hyperdash skills give Claude Code, Codex or Cursor working knowledge of the API with one command. Start with the Build skill, which helps you build an app, bot, dashboard or script on the API, including live streams; in Claude or ChatGPT, paste its link into the chat.
- Try a recipe: The Data API recipes walk through questions like this step by step, including Liquidation cascade replay, Liquidation levels near the price and Market positioning snapshot.
- Read the docs: Start with the Data API docs and the streams docs. Agents can use the endpoint index at data.hyperdash.com/llms.txt.
For more, read the Hyperliquid API explained and where to get Hyperliquid historical data.
FAQs
Can I use the Hyperliquid Data API and Streams together?
Absolutely. Many production teams use Streams for heavy data ingestion and the native API for quick queries and order placement. They work great as complements, not competitors.
Is the free public API good enough for production?
For apps tracking a few markets at moderate frequency, yes. For anything that requires full market coverage, guaranteed delivery, or consistent low latency, a private gateway or a Streams provider is the safer bet.
Do I need to run my own node to use Streams?
No. Managed providers like Hyperdash handle the infrastructure for you. You simply connect to dedicated endpoints or configure where your data gets delivered.
What's the real latency difference between WebSocket and gRPC?
Native WebSocket delivers sub-second updates normally, but can spike during busy periods. gRPC Streams through dedicated providers show roughly 50ms median improvement with far fewer spikes. For most use cases, the consistency matters more than raw speed.
How does HIP-4 affect my data setup?
HIP-4 Outcome Markets add new event types to consume. On Streams, it's just more subscriptions. On raw WebSocket, each new feed counts against your 1,000-slot limit, worth planning for as Hyperliquid keeps growing.