Hyperliquid Trading Bot Data, From Live Prices to Its Own Fills
Hyperdash explains which data a Hyperliquid trading bot needs, from prices and order books to its own fills and the market's liquidation levels, and how to get each feed from the Hyperdash Data API.
, 7 min read

A Hyperliquid trading bot needs four kinds of data. Live prices and order books tell it when to trade and at what price. Candles and funding history let the strategy be tested and tuned before it trades. Its own positions, orders and fills tell it where it stands. Market context such as open interest, funding and liquidation levels tells it how much risk sits around the price. Orders themselves always go to Hyperliquid's exchange endpoint, signed by your wallet or an API wallet.
Our pick: the Hyperdash Data API. The Hyperdash Data API serves every one of those feeds over one REST API and one WebSocket, read from Hyperdash's own nodes, so it does not spend your IP address's Hyperliquid limits. Streams resume from a cursor after a disconnect and send a gap message for anything they cannot replay. The API also carries data a bot cannot build from Hyperliquid's public endpoints alone, such as liquidation levels across every open position in a market and resting stop-order levels. Plans start at $20 a month.
Get started in about 2 minutes: create your Hyperdash account and pick a plan from $20 a month, then connect the Hyperdash MCP server to Claude or ChatGPT. You sign in with your Hyperdash account, so no API key is needed.
What data does a Hyperliquid trading bot need?
Most bots read the same handful of feeds. This table maps each one to its Hyperdash endpoint and stream channel.
| Data | What the bot uses it for | REST endpoint | Stream channel |
|---|---|---|---|
| Live prices | Signals and order prices | `GET /v1/markets/mids` | `mids`, every market about once a second |
| Mark, oracle, funding, open interest | Fair value, carry and crowding | `GET /v1/markets` | `ctx` for one market, `markets` for all |
| Order book | Spread, depth and slippage | `GET /v1/markets/{coin}/book` | `book` (20 levels), `bbo` |
| Trades | Momentum and order flow | `GET /v1/markets/{coin}/trades` | `trades`, with taker and maker wallets |
| Candles | Indicators and backtests | `GET /v1/markets/{coin}/candles` | `candles` (5-minute bars live now) |
| Funding history | Carry strategies and backtests | `GET /v1/markets/{coin}/funding-rates` | `ctx` for the live rate |
| Liquidations | Cascades and entries | `GET /v1/liquidations` | `liquidations`, one market or all |
| Liquidation and stop levels | Where price may cascade | `GET /v1/markets/{coin}/liquidation-levels` and `/stop-levels` | `liquidation-levels`, `stop-levels` |
| The bot's positions | Sizing and risk | `GET /v1/accounts/{address}/positions` | `account` (not live yet) |
| The bot's orders and fills | State and reconciliation | `GET /v1/accounts/{address}/open-orders` and `/fills` | `orders`, `fills` |
Every market works the same way, including Hyperliquid's HIP-3 stock and commodity perps such as xyz:NVDA, xyz:CL and xyz:GOLD.
How should a bot read live data?
Stream it. A bot that polls REST on a timer spends requests on unchanged data and still sees the market late. Open one connection to wss://data.hyperdash.com/v1/stream with your API key in the Authorization header, wait for ready, then subscribe to the feeds the strategy needs:
{"op": "subscribe", "channel": "bbo", "coin": "BTC"}{"op": "subscribe", "channel": "fills", "address": "0xYOUR_BOT_WALLET"}Events arrive in batches. Save the cursor from each batch, then send an ack. If the connection drops, subscribe again with the last cursor and the stream continues where it stopped, for up to about 15 minutes, or about 5 minutes on mids and markets. Anything older comes as a gap message that names the missing range, so the bot can fill it over REST instead of trading on missing data (streams).
A connection carries 20 subscriptions. Hobby includes 2 connections and Scale 50, and the orders channel follows 3 wallets on Hobby up to 200 on Scale (plans). For the full protocol, read the Hyperliquid WebSocket API guide.
Budget the credits before you leave a stream on. Each event costs 1 credit, or 5 on markets. At its documented rate of about one event a second, a mids subscription comes to as much as 2.6 million events in a 30-day month. That is more than Hobby's 500,000 credits and fits inside the Starter plan's 4 million. Polling is not cheaper: each GET /v1/markets/mids call costs at least 10 credits, so polling fits Hobby only at about one call a minute.
Which data do you need to backtest a Hyperliquid strategy?
Backtests need history at the same resolution the bot will trade on.
- Candles:
GET /v1/markets/{coin}/candlesreturns OHLCV bars from 1 minute to 1 month, from each market's listing. One request covers up to 7 days of bars shorter than an hour, 30 days of hourly to 12-hour bars, and 365 days of daily bars and longer. The Hyperliquid OHLCV API guide covers intervals, paging and CSV export. - Funding:
GET /v1/markets/{coin}/funding-ratesreturns realized funding rates, which carry strategies need to count what a position paid or earned. - Trades:
GET /v1/markets/{coin}/tradesreturns every trade with price, size and both wallets, from July 28, 2025, up to 1 day per request. - Mark and oracle prices:
GET /v1/markets/{coin}/context-historyreturns mark, oracle, premium and predicted funding bars. Core perps go back to May 20, 2023. HIP-3 markets have mark and oracle bars from October 18, 2026. - Open interest:
GET /v1/markets/{coin}/open-interestreturns open interest bars.
How far back you can read depends on the plan: the last 90 days on Hobby and Starter, 180 days on Growth, 365 days on Scale and full history on Enterprise (plans). Teams that need a custom backfill can have it added to their plan by Hyperdash's integration team.
How does a bot track its own positions and orders?
The bot's own state comes from the same API, keyed by the wallet address that holds the positions.
- Positions and margin:
GET /v1/accounts/{address}/positionsreturns open positions on one dex, and/positions/all-dexesreturns the margin summary on every dex. - Open orders:
GET /v1/accounts/{address}/open-orders. - One order:
GET /v1/accounts/{address}/orders/{oid}returns an order's status by its order id or by the client order id (cloid) the bot set when it placed it. - Live updates: the
orderschannel pushes every open, fill, cancel, trigger and reject for the wallet, andfillspushes each fill. Reconcile against REST after any restart.
Where does a Hyperliquid bot send its orders?
Orders go to Hyperliquid's exchange endpoint, POST https://api.hyperliquid.xyz/exchange, signed by your wallet or by an API wallet the account has approved. Hyperliquid's official Python SDK handles the signing. The bot then sees the result on its Hyperdash orders and fills streams, so one data connection covers both the market and the bot's own activity.
To automate execution without writing a bot, Hyperdash Advanced Execution runs TWAP, chase, scale and swarm orders on Hyperliquid from the platform.
Which Hyperliquid API limits does a bot run into?
Bots that read everything from Hyperliquid's public API share these limits per IP address (rate limits and user limits):
- REST requests share 1,200 weight a minute.
- 10 WebSocket connections, 1,000 subscriptions and 10 unique wallets across all wallet feeds.
candleSnapshotreturns only the most recent 5,000 candles, anduserFillsByTimereaches only a wallet's 10,000 most recent fills (info endpoint).
These limits are enough for one bot on one server. A bot that follows many wallets, or several bots behind one IP address, reaches them first. Hyperdash's limits are set per workspace by plan instead, from 10 requests a second on Hobby to 200 on Scale.
Ask your AI agent to build a Hyperliquid bot data feed
Give an agent the Hyperdash docs and ask: "Write a Python client that streams my wallet's fills and orders from Hyperdash, saves the cursor after each batch, and logs the BTC mid and funding rate every minute."
- Connect the MCP server: the Hyperdash MCP server works with Claude, ChatGPT, Claude Code, Codex or Cursor; setup takes about 2 minutes 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; in Claude or ChatGPT, paste the skill link. The Build skill covers live streams, cursors and retries.
- Ask your agent: the Data API guides include price history, order book and liquidations feed.
- Read the docs: the Data API docs, the streams reference, and the endpoint index for agents.
Further reading: Hyperliquid Data API vs Streams and the Hyperliquid Order Book API.
FAQ
Can a bot place Hyperliquid orders through the Hyperdash Data API?
The Data API reads data. A bot's orders go to Hyperliquid's exchange endpoint, signed by your wallet or an API wallet, and the bot follows them on Hyperdash's orders and fills streams. To trade without code, Hyperdash Advanced Execution runs TWAP, chase, scale and swarm orders.
Do Hyperdash streams count against Hyperliquid's per-IP limits?
No. Hyperdash streams read Hyperdash's own nodes, so they do not use your IP address's Hyperliquid connections, subscriptions or wallet slots.
Which Hyperdash plan does a trading bot need?
Hobby, at $20 a month, includes 500,000 credits, 10 requests a second and 2 stream connections, which covers a bot that polls a few endpoints. A bot that streams mids all month can use up to about 2.6 million credits, which fits Starter at $99 a month with 4 million.
Can a bot stream 1-minute candles from Hyperdash?
The candles channel streams 5-minute bars now, and the 1-minute, 15-minute, 1-hour, 4-hour and 1-day intervals are not live yet. Until then, read 1-minute candles from GET /v1/markets/{coin}/candles, or build them from the trades stream.
Can a bot watch other traders' wallets?
Yes. The fills channel follows any wallet, and the orders channel follows 3 wallets on Hobby up to 200 on Scale.
Does the same data cover Hyperliquid stock and commodity perps?
Yes. Every endpoint and channel above works for HIP-3 markets such as xyz:NVDA, xyz:CL and xyz:GOLD, which trade 24/7.
Get started with Hyperdash
- Create your Hyperdash account and get your first API key. Plans start at $20 a month.
- Connect the Hyperdash MCP server to Claude, ChatGPT, Claude Code, Codex or Cursor in about 2 minutes, with no API key.
- Make your first request with the Quickstart.
Need full history, an SLA or Hyperliquid Peering in Tokyo or Frankfurt? Talk to the Hyperdash team.
Start trading
Trade 600+ markets 24/7 with live position, order flow and liquidation data.