<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hanson</title>
    <description>The latest articles on DEV Community by Hanson (@hansonhyperdash).</description>
    <link>https://dev.to/hansonhyperdash</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4285401%2F71e4190a-0ad2-4033-82bf-2ea0b2d38c2e.png</url>
      <title>DEV Community: Hanson</title>
      <link>https://dev.to/hansonhyperdash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hansonhyperdash"/>
    <language>en</language>
    <item>
      <title>Hyperliquid Historical Data: Where to Get It and How Far Back It Goes</title>
      <dc:creator>Hanson</dc:creator>
      <pubDate>Sat, 05 Dec 2026 20:39:16 +0000</pubDate>
      <link>https://dev.to/hyperdash/hyperliquid-historical-data-where-to-get-it-and-how-far-back-it-goes-13j3</link>
      <guid>https://dev.to/hyperdash/hyperliquid-historical-data-where-to-get-it-and-how-far-back-it-goes-13j3</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://hyperdash.com/learn/hyperliquid-historical-data" rel="noopener noreferrer"&gt;Hyperdash blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Historical Hyperliquid data comes from four places: the public Hyperliquid API, Hyperliquid's S3 archive, a node you run yourself, and a data API such as the Hyperdash Data API. The public API only keeps recent history per request, the S3 archive covers order book snapshots and asset contexts but not candles, and a node only records from the day it starts. The Hyperdash Data API serves wallet ledgers from February 26, 2023, candles from March 30, 2023, and every trade with both wallets from July 28, 2025.&lt;/p&gt;

&lt;p&gt;The Hyperdash Data API is the shortest of the four routes: one key and one REST API for every dataset, queried by time range, with no archive files to parse and no node to run. Plans start at $20 a month, and every plan includes WebSocket streams and a hosted MCP server for AI agents.&lt;/p&gt;

&lt;p&gt;This guide lists each dataset, where to get it, and how far back each source goes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where can you get historical Hyperliquid data?
&lt;/h2&gt;

&lt;p&gt;There are four routes, and most projects combine two of them.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The public Hyperliquid API.&lt;/strong&gt; Free, no key, but built for live trading. History requests return the most recent rows only: the 5,000 most recent candles per market and interval, and the 10,000 most recent fills per wallet. Time-range requests return 500 rows at a time (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint" rel="noopener noreferrer"&gt;info endpoint&lt;/a&gt;). &lt;a href="https://hyperdash.com/blog/hyperliquid-api-explained" rel="noopener noreferrer"&gt;Hyperliquid API Explained&lt;/a&gt; covers each request and its limits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hyperliquid's S3 archive.&lt;/strong&gt; Hyperliquid uploads L2 order book snapshots and daily asset contexts to the &lt;code&gt;hyperliquid-archive&lt;/code&gt; bucket about once a month, and node fills to &lt;code&gt;hl-mainnet-node-data&lt;/code&gt;. The requester pays the transfer cost, updates are not guaranteed, and candles and spot data are not included (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/historical-data" rel="noopener noreferrer"&gt;historical data page&lt;/a&gt;). Files are LZ4-compressed and need parsing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own node.&lt;/strong&gt; A non-validating node can write every fill and block to disk (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/nodes" rel="noopener noreferrer"&gt;node docs&lt;/a&gt;). It needs a server and storage, and it only records from the day it starts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Hyperdash Data API.&lt;/strong&gt; Live and historical data from Hyperdash's own nodes and history store over REST, by time range, with cursors for paging (&lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;API page&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How far back does each Hyperliquid dataset go?
&lt;/h2&gt;

&lt;p&gt;Each dataset has its own start date. The table shows what the public API keeps and where the Hyperdash Data API history starts; the &lt;a href="https://docs.hyperdash.com/data-api/coverage" rel="noopener noreferrer"&gt;Data coverage page&lt;/a&gt; lists every dataset.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hyperliquid historical data by dataset&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Dataset&lt;/th&gt;
&lt;th&gt;Public Hyperliquid API&lt;/th&gt;
&lt;th&gt;Hyperdash Data API from&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Wallet ledger, funding payments, completed trades&lt;/td&gt;
&lt;td&gt;Time range, 500 rows per request&lt;/td&gt;
&lt;td&gt;Feb 26, 2023&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Candles (1 minute to 1 month)&lt;/td&gt;
&lt;td&gt;5,000 most recent per interval&lt;/td&gt;
&lt;td&gt;Mar 30, 2023&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mark, oracle and predicted funding bars (core perps)&lt;/td&gt;
&lt;td&gt;Current only&lt;/td&gt;
&lt;td&gt;May 20, 2023&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open interest, trade bars and footprint&lt;/td&gt;
&lt;td&gt;Current only&lt;/td&gt;
&lt;td&gt;Mar 22, 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Liquidation totals per market&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Mar 22, 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trade tape (every trade, taker and maker wallet)&lt;/td&gt;
&lt;td&gt;Live only&lt;/td&gt;
&lt;td&gt;Jul 28, 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fee and volume totals per market&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Jul 28, 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Settled funding rates&lt;/td&gt;
&lt;td&gt;By time range&lt;/td&gt;
&lt;td&gt;Sep 27, 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wallet fills&lt;/td&gt;
&lt;td&gt;10,000 most recent per wallet&lt;/td&gt;
&lt;td&gt;Mar 22, 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Liquidation events&lt;/td&gt;
&lt;td&gt;Only for a subscribed wallet&lt;/td&gt;
&lt;td&gt;Jul 28, 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Account value per wallet (hourly and daily)&lt;/td&gt;
&lt;td&gt;Summary by period (&lt;code&gt;portfolio&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Jul 29, 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Order book, 20 levels, each minute&lt;/td&gt;
&lt;td&gt;Current only&lt;/td&gt;
&lt;td&gt;Nov 11, 2026, kept 30 days&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;How far back you can query also depends on the plan's history depth: 90 days on Hobby and Starter, 180 on Growth, 365 on Scale and full history on Enterprise (&lt;a href="https://docs.hyperdash.com/data-api/plans" rel="noopener noreferrer"&gt;plans&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you get historical Hyperliquid candles?
&lt;/h2&gt;

&lt;p&gt;The public &lt;code&gt;candleSnapshot&lt;/code&gt; request returns only the 5,000 most recent candles, which is about three and a half days of 1-minute bars. The Hyperdash Data API returns candles by time range from March 30, 2023, at intervals from 1 minute to 1 month, plus 1, 15 and 30 second bars for the last 23 hours (&lt;a href="https://docs.hyperdash.com/data-api/reference/get_candles" rel="noopener noreferrer"&gt;candles reference&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://data.hyperdash.com/v1/markets/BTC/candles?interval=1m&amp;amp;start_time=1793491200000&amp;amp;end_time=1794096000000&amp;amp;limit=5000"&lt;/span&gt; -H &lt;span class="s2"&gt;"Authorization: Bearer $HYPERDASH_API_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 1-minute request covers up to 7 days; hourly bars cover up to 30 days per request and daily bars up to 365. Each response carries a &lt;code&gt;next_cursor&lt;/code&gt; for the next page.&lt;/p&gt;

&lt;p&gt;For every interval, CSV export, Python code and what each request costs, see &lt;a href="https://hyperdash.com/learn/hyperliquid-ohlcv-candle-data-api" rel="noopener noreferrer"&gt;Hyperliquid OHLCV API: Candle Intervals, History and CSV Export&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you get Hyperliquid trade history?
&lt;/h2&gt;

&lt;p&gt;There are two kinds of trade history: every trade in a market (the trade tape), and every fill of one wallet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The trade tape.&lt;/strong&gt; The public API streams trades live but has no request for past trades in a market; Hyperliquid's node data on S3 holds fills from a non-validating node. The Hyperdash Data API returns every trade from July 28, 2025, with aggressor side, price, size, and both the taker and maker wallet, one day per request:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://data.hyperdash.com/v1/markets/ETH/trades?start_time=1793491200000&amp;amp;end_time=1793577600000&amp;amp;limit=1000"&lt;/span&gt; -H &lt;span class="s2"&gt;"Authorization: Bearer $HYPERDASH_API_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;One wallet's fills.&lt;/strong&gt; The public API stops at the 10,000 most recent fills. The Hyperdash Data API returns a wallet's fills by time range from March 22, 2025, and completed round-trip trades with realized PnL from February 26, 2023. &lt;a href="https://hyperdash.com/blog/hyperliquid-wallet-pnl-and-trade-history" rel="noopener noreferrer"&gt;How to Get Hyperliquid Wallet PnL and Trade History&lt;/a&gt; walks through both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hyperliquid tick data
&lt;/h2&gt;

&lt;p&gt;On Hyperliquid, tick data means every trade, or fill, plus every update to the order book. Hyperdash serves the trades as the trade tape above: every trade since July 28, 2025 by REST, one day per request, or live on the &lt;code&gt;trades&lt;/code&gt; stream.&lt;/p&gt;

&lt;p&gt;For the book, Hyperdash serves the live 20-level L2 book with its &lt;code&gt;book&lt;/code&gt; and &lt;code&gt;bbo&lt;/code&gt; streams, 1-minute L2 snapshots kept for a rolling 30 days, and the L4 book of individual resting orders with their wallets on Growth and up. Hyperdash's integration team adds L4 updates at every block to any plan on request. &lt;a href="https://hyperdash.com/learn/hyperliquid-order-book-api" rel="noopener noreferrer"&gt;Hyperliquid Order Book API&lt;/a&gt; covers each book endpoint and its cost, and &lt;a href="https://hyperdash.com/learn/hyperliquid-l2-vs-l4-order-book" rel="noopener noreferrer"&gt;L2 vs L4 Order Books on Hyperliquid&lt;/a&gt; explains the two views.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you get historical funding, open interest and order books?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Funding rates:&lt;/strong&gt; settled hourly or daily rates from September 27, 2025 (&lt;code&gt;GET /v1/markets/{coin}/funding-rates&lt;/code&gt;), and predicted funding with mark and oracle bars from May 20, 2023 (&lt;code&gt;GET /v1/markets/{coin}/context-history&lt;/code&gt;). &lt;a href="https://hyperdash.com/blog/hyperliquid-funding-rates" rel="noopener noreferrer"&gt;Hyperliquid Funding Rates&lt;/a&gt; covers the scanner and every funding source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open interest:&lt;/strong&gt; &lt;a href="https://hyperdash.com/learn/hyperliquid-open-interest-history-api" rel="noopener noreferrer"&gt;bars from 1 minute to 1 day&lt;/a&gt; from March 22, 2025 (&lt;code&gt;GET /v1/markets/{coin}/open-interest&lt;/code&gt;), plus daily open interest in USD and totals by category or dex.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Order books:&lt;/strong&gt; Hyperliquid's S3 archive holds L2 snapshots uploaded about monthly. The Hyperdash Data API samples the 20-level book once a minute from its own node and keeps 30 days (&lt;code&gt;GET /v1/markets/{coin}/book/history?time=...&lt;/code&gt;). Sampling started on November 11, 2026, so there is no earlier book history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Liquidations:&lt;/strong&gt; every liquidation event across markets from July 28, 2025 (&lt;code&gt;GET /v1/liquidations&lt;/code&gt;, 7 days per request), and liquidation totals per market from March 22, 2025.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Can you download Hyperliquid history in bulk?
&lt;/h2&gt;

&lt;p&gt;Within limits. The Hyperdash Data API is built for applications, research and monitoring, not for copying whole datasets, so each plan caps bulk reads. The trade tape, for example, allows 30 million rows per 30 days on Starter, 100 million on Growth and 300 million on Scale. Async jobs on Growth and above run heavy summaries server side, such as a wallet's per-market fills summary over 90 days, instead of paging through every fill.&lt;/p&gt;

&lt;p&gt;For a full copy of a dataset, &lt;a href="https://hyperdash.com/products/data/enterprise-solutions" rel="noopener noreferrer"&gt;Enterprise Solutions&lt;/a&gt; covers custom datasets and dedicated nodes under one contract. For S3 data, you pay the transfer cost to AWS and parse the files yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask your AI agent about Hyperliquid history
&lt;/h2&gt;

&lt;p&gt;Your AI agent can answer "What was the daily open interest of SOL on Hyperliquid in October 2026, and on which day were the most longs liquidated?"&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Connect the MCP server:&lt;/strong&gt; The &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; works with Claude, ChatGPT, Claude Code, Codex or Cursor. Setup takes about a minute and you sign in with your Hyperdash account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Install the skills:&lt;/strong&gt; &lt;a href="https://docs.hyperdash.com/data-api/skills" rel="noopener noreferrer"&gt;Hyperdash skills&lt;/a&gt; give Claude Code, Codex or Cursor working knowledge of the API with one command. Start with the &lt;a href="https://docs.hyperdash.com/skills/data" rel="noopener noreferrer"&gt;Data skill&lt;/a&gt;, which answers quick questions on markets, funding, liquidations, order flow and positioning; in Claude or ChatGPT, paste its link into the chat.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask your agent:&lt;/strong&gt; The &lt;a href="https://docs.hyperdash.com/data-api/guides" rel="noopener noreferrer"&gt;Data API guides&lt;/a&gt; answer questions like this with one prompt, including &lt;a href="https://docs.hyperdash.com/data-api/guides/position-changes" rel="noopener noreferrer"&gt;Position changes&lt;/a&gt; and &lt;a href="https://docs.hyperdash.com/data-api/guides/liquidations-feed" rel="noopener noreferrer"&gt;Liquidations feed&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the docs:&lt;/strong&gt; Start with the &lt;a href="https://docs.hyperdash.com/data-api/overview" rel="noopener noreferrer"&gt;Data API docs&lt;/a&gt; and the &lt;a href="https://docs.hyperdash.com/data-api/coverage" rel="noopener noreferrer"&gt;data coverage page&lt;/a&gt;. Agents can use the endpoint index at &lt;a href="https://data.hyperdash.com/llms.txt" rel="noopener noreferrer"&gt;data.hyperdash.com/llms.txt&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For more, read &lt;a href="https://hyperdash.com/blog/hyperliquid-funding-rates" rel="noopener noreferrer"&gt;Hyperliquid funding rates and history&lt;/a&gt; and &lt;a href="https://hyperdash.com/blog/hyperliquid-api-explained" rel="noopener noreferrer"&gt;the Hyperliquid API explained&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For liquidation history specifically, see &lt;a href="https://hyperdash.com/learn/hyperliquid-liquidation-data-api" rel="noopener noreferrer"&gt;Hyperliquid liquidation data by API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does Hyperliquid provide historical data?&lt;/strong&gt; Partly. The public API returns recent history per request, and Hyperliquid's S3 archive holds L2 book snapshots, asset contexts and node fills. It does not publish historical candles or spot data on S3.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How far back does Hyperliquid data go?&lt;/strong&gt; It depends on the dataset. The Hyperdash Data API serves wallet ledgers from February 26, 2023, candles from March 30, 2023, mark and oracle prices from May 20, 2023, wallet fills and open interest from March 22, 2025, and the trade tape from July 28, 2025. The &lt;a href="https://docs.hyperdash.com/data-api/coverage" rel="noopener noreferrer"&gt;coverage page&lt;/a&gt; lists every dataset.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I get more than 5,000 Hyperliquid candles?&lt;/strong&gt; The public API stops at the 5,000 most recent candles per interval. Request older candles by time range from the Hyperdash Data API, which has them from March 30, 2023.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is Hyperliquid tick data available?&lt;/strong&gt; Yes. The trade tape is tick-level: every trade with its price, size, side and both wallets. The Hyperdash Data API has it from July 28, 2025.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get historical Hyperliquid order book data?&lt;/strong&gt; Hyperliquid's S3 archive has L2 book snapshots, uploaded about once a month. The Hyperdash Data API has the 20-level book for every minute, kept for 30 days, from November 11, 2026.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is historical Hyperliquid data free?&lt;/strong&gt; The public API and the S3 archive are free to read, though S3 transfer costs are paid by the requester. The Hyperdash Data API starts at $20 a month.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the difference between the public API and the Hyperdash Data API?&lt;/strong&gt; The public API is built for trading and live state. The Hyperdash Data API is read-only and built for history and analytics; &lt;a href="https://hyperdash.com/blog/hyperliquid-data-api-explained" rel="noopener noreferrer"&gt;Hyperliquid Native API vs Hyperdash Data API&lt;/a&gt; compares them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started with Hyperdash
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;Create your Hyperdash account and get your first API key&lt;/a&gt;. Plans start at $20 a month.&lt;/li&gt;
&lt;li&gt;Connect the &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; to Claude, ChatGPT, Claude Code, Codex or Cursor in about 2 minutes, with no API key.&lt;/li&gt;
&lt;li&gt;Make your first request with the &lt;a href="https://docs.hyperdash.com/data-api/quickstart" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Need full history, an SLA or Hyperliquid Peering in Tokyo or Frankfurt? &lt;a href="https://hyperdash.com/products/data/enterprise-solutions" rel="noopener noreferrer"&gt;Talk to the Hyperdash team&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>hyperliquid</category>
      <category>api</category>
      <category>crypto</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Hyperliquid API Explained: Endpoints, Signing, Rate Limits and SDKs</title>
      <dc:creator>Hanson</dc:creator>
      <pubDate>Sat, 05 Dec 2026 20:33:45 +0000</pubDate>
      <link>https://dev.to/hyperdash/hyperliquid-api-explained-endpoints-signing-rate-limits-and-sdks-2jpd</link>
      <guid>https://dev.to/hyperdash/hyperliquid-api-explained-endpoints-signing-rate-limits-and-sdks-2jpd</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://hyperdash.com/learn/hyperliquid-api-explained" rel="noopener noreferrer"&gt;Hyperdash blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The Hyperliquid API is the public interface to Hyperliquid's exchange, HyperCore, at &lt;code&gt;https://api.hyperliquid.xyz&lt;/code&gt;. It has three parts: the info endpoint (&lt;code&gt;POST /info&lt;/code&gt;) for market and account data, the exchange endpoint (&lt;code&gt;POST /exchange&lt;/code&gt;) for signed orders, cancels and transfers, and a WebSocket at &lt;code&gt;wss://api.hyperliquid.xyz/ws&lt;/code&gt; for live updates. Reading data needs no key. Trading needs a signature from your wallet or an API wallet you approve. Every IP gets 1,200 request weight a minute. For data the public API does not keep, such as a wallet's fills past its latest 10,000 or liquidations across every market, the &lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;Hyperdash Data API&lt;/a&gt; adds it from $20 a month, with the last 90 days on the $20 plan and full history on Enterprise.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the Hyperliquid API?
&lt;/h2&gt;

&lt;p&gt;Hyperliquid runs one API for HyperCore, its on-chain order book. API servers keep a copy of the chain state, answer reads from it and forward signed actions to a node, then return the result once the block commits (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/hypercore/api-servers" rel="noopener noreferrer"&gt;API servers&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The three parts of the Hyperliquid API&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;Mainnet address&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;Auth&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Info endpoint&lt;/td&gt;
&lt;td&gt;POST &lt;a href="https://api.hyperliquid.xyz/info" rel="noopener noreferrer"&gt;https://api.hyperliquid.xyz/info&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;Prices, order books, candles, funding, metadata, and any wallet's positions, orders and fills&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exchange endpoint&lt;/td&gt;
&lt;td&gt;POST &lt;a href="https://api.hyperliquid.xyz/exchange" rel="noopener noreferrer"&gt;https://api.hyperliquid.xyz/exchange&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;Orders, cancels, leverage, margin, transfers, withdrawals, API wallet approval&lt;/td&gt;
&lt;td&gt;Signed by the account or an approved API wallet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WebSocket&lt;/td&gt;
&lt;td&gt;wss://api.hyperliquid.xyz/ws&lt;/td&gt;
&lt;td&gt;Live subscriptions, plus info requests and signed actions sent over the socket&lt;/td&gt;
&lt;td&gt;None to read&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Testnet uses the same paths at &lt;code&gt;https://api.hyperliquid-testnet.xyz&lt;/code&gt; and &lt;code&gt;wss://api.hyperliquid-testnet.xyz/ws&lt;/code&gt;. The API is still labeled v0, and its short field names (&lt;code&gt;px&lt;/code&gt; for price, &lt;code&gt;sz&lt;/code&gt; for size, &lt;code&gt;szi&lt;/code&gt; for signed size) are listed on the &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/notation" rel="noopener noreferrer"&gt;Notation&lt;/a&gt; page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hyperliquid API docs: where each topic lives
&lt;/h2&gt;

&lt;p&gt;The official &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api" rel="noopener noreferrer"&gt;Hyperliquid API docs&lt;/a&gt; sit in Hyperliquid's GitBook under For developers, then API. Each page also has a Markdown copy at the same URL plus &lt;code&gt;.md&lt;/code&gt;, and the docs publish an &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/llms.txt" rel="noopener noreferrer"&gt;llms.txt index&lt;/a&gt; for AI agents.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api" rel="noopener noreferrer"&gt;&lt;strong&gt;API overview&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; mainnet and testnet URLs and the list of SDKs.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint" rel="noopener noreferrer"&gt;&lt;strong&gt;Info endpoint&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; every read request, with &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals" rel="noopener noreferrer"&gt;perpetuals&lt;/a&gt; and &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/spot" rel="noopener noreferrer"&gt;spot&lt;/a&gt; subpages.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint" rel="noopener noreferrer"&gt;&lt;strong&gt;Exchange endpoint&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; every signed action, from placing an order to approving an API wallet.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket" rel="noopener noreferrer"&gt;&lt;strong&gt;WebSocket&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; connecting, &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions" rel="noopener noreferrer"&gt;subscriptions&lt;/a&gt;, &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/post-requests" rel="noopener noreferrer"&gt;post requests&lt;/a&gt; and &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/timeouts-and-heartbeats" rel="noopener noreferrer"&gt;heartbeats&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/nonces-and-api-wallets" rel="noopener noreferrer"&gt;&lt;strong&gt;Nonces and API wallets&lt;/strong&gt;&lt;/a&gt; and &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/signing" rel="noopener noreferrer"&gt;&lt;strong&gt;Signing&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; how actions are authorized and the usual signing mistakes.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits" rel="noopener noreferrer"&gt;&lt;strong&gt;Rate limits and user limits&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; IP weights, WebSocket caps and per-address limits.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/asset-ids" rel="noopener noreferrer"&gt;&lt;strong&gt;Asset IDs&lt;/strong&gt;&lt;/a&gt; and &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/tick-and-lot-size" rel="noopener noreferrer"&gt;&lt;strong&gt;Tick and lot size&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; the numbers orders need and the prices and sizes they accept.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/error-responses" rel="noopener noreferrer"&gt;&lt;strong&gt;Error responses&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; what rejected orders and cancels return.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/historical-data" rel="noopener noreferrer"&gt;&lt;strong&gt;Historical data&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;:&lt;/strong&gt; the S3 buckets for older market and node data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hyperliquid takes API questions in the #api-traders channel of its &lt;a href="https://discord.gg/hyperliquid" rel="noopener noreferrer"&gt;Discord&lt;/a&gt;, not in support tickets, and posts API changes to its &lt;a href="https://t.me/hyperliquid_api" rel="noopener noreferrer"&gt;API announcements&lt;/a&gt; Telegram channel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hyperliquid API quick start
&lt;/h2&gt;

&lt;p&gt;These four steps go from a first read to a first order, on testnet for the order. Steps 1 to 3 run as pasted; step 4 needs the setup below.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read the mid price of every main-dex perp and spot pair, with no key: &lt;code&gt;curl -X POST https://api.hyperliquid.xyz/info -H "Content-Type: application/json" -d '{"type": "allMids"}'&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Install the official Python SDK: &lt;code&gt;pip install hyperliquid-python-sdk&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Read the BTC order book from Python: &lt;code&gt;from hyperliquid.info import Info; from hyperliquid.utils import constants; info = Info(constants.MAINNET_API_URL, skip_ws=True); print(info.l2_snapshot("BTC"))&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Place a resting order on testnet, signed by an API wallet for your main account: &lt;code&gt;exchange = Exchange(eth_account.Account.from_key(API_WALLET_KEY), constants.TESTNET_API_URL, account_address=MAIN_ADDRESS)&lt;/code&gt;, then &lt;code&gt;exchange.order("ETH", True, 0.2, 1100, {"limit": {"tif": "Gtc"}})&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 4 needs &lt;code&gt;from hyperliquid.exchange import Exchange&lt;/code&gt; and &lt;code&gt;import eth_account&lt;/code&gt;, a testnet balance, and an API wallet approved by your testnet account. &lt;code&gt;MAIN_ADDRESS&lt;/code&gt; is your account's address, not the API wallet's. The order comes from the SDK's own &lt;code&gt;basic_order.py&lt;/code&gt; example: a buy of 0.2 ETH at $1,100, far enough below the market that it rests on the book.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you read data from the info endpoint?
&lt;/h2&gt;

&lt;p&gt;Every info request is a POST to &lt;code&gt;/info&lt;/code&gt; with &lt;code&gt;Content-Type: application/json&lt;/code&gt; and a body that names the request &lt;code&gt;type&lt;/code&gt;. The most used types are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;allMids:&lt;/strong&gt; the mid price of every perp on the main dex and every spot pair; add &lt;code&gt;"dex": "xyz"&lt;/code&gt; for a Hyperliquid HIP-3 dex.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;meta&lt;/strong&gt; and &lt;strong&gt;metaAndAssetCtxs:&lt;/strong&gt; every perp market on the main dex (add &lt;code&gt;dex&lt;/code&gt; for a Hyperliquid HIP-3 dex), with mark price, funding, open interest and 24-hour volume in the second.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;l2Book:&lt;/strong&gt; the order book, at most 20 levels per side, with optional &lt;code&gt;nSigFigs&lt;/code&gt; to group levels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;candleSnapshot:&lt;/strong&gt; candles from 1 minute to 1 month for one market, limited to the most recent 5,000.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;fundingHistory:&lt;/strong&gt; past funding rates for one market from a &lt;code&gt;startTime&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;clearinghouseState&lt;/strong&gt; and &lt;strong&gt;spotClearinghouseState:&lt;/strong&gt; one wallet's perp positions and margin, and its spot balances.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;openOrders, userFills, userFillsByTime&lt;/strong&gt; and &lt;strong&gt;historicalOrders:&lt;/strong&gt; one wallet's orders and fills.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;userRateLimit:&lt;/strong&gt; how much of its address-based limit a wallet has used.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Five rules catch most first-time errors. Perps use the coin name from &lt;code&gt;meta&lt;/code&gt;, such as &lt;code&gt;BTC&lt;/code&gt;. Spot uses &lt;code&gt;PURR/USDC&lt;/code&gt; for PURR and &lt;code&gt;@&lt;/code&gt; plus the pair index for everything else, so HYPE is &lt;code&gt;@107&lt;/code&gt; on mainnet. Hyperliquid HIP-3 markets carry their dex name as a prefix, such as &lt;code&gt;xyz:XYZ100&lt;/code&gt;. Account queries take the account's own address: an API wallet's address returns an empty result. Most requests over a time range return at most 500 items (userFillsByTime returns up to 2,000), so page forward from the last timestamp.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does the exchange endpoint work?
&lt;/h2&gt;

&lt;p&gt;Every exchange request is a POST to &lt;code&gt;/exchange&lt;/code&gt; with four parts: an &lt;code&gt;action&lt;/code&gt; object, a &lt;code&gt;nonce&lt;/code&gt;, a &lt;code&gt;signature&lt;/code&gt; and, when trading for a sub-account or vault, a &lt;code&gt;vaultAddress&lt;/code&gt;. Some actions also take &lt;code&gt;expiresAfter&lt;/code&gt;, a time in milliseconds after which the action is rejected.&lt;/p&gt;

&lt;p&gt;An order action lists one or more orders, each with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;a:&lt;/strong&gt; the asset ID. Perps use their index in &lt;code&gt;meta&lt;/code&gt; (BTC is 0 on mainnet), spot uses 10000 plus the pair index, and Hyperliquid HIP-3 perps use 100000 plus 10000 times the perp dex index plus the market's index (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/asset-ids" rel="noopener noreferrer"&gt;Asset IDs&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;b, p, s, r:&lt;/strong&gt; buy or sell, price, size and reduce-only. Prices take at most 5 significant figures (whole numbers are always allowed), and sizes are rounded to the asset's &lt;code&gt;szDecimals&lt;/code&gt; from &lt;code&gt;meta&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;t:&lt;/strong&gt; a limit order with time in force &lt;code&gt;Gtc&lt;/code&gt;, &lt;code&gt;Ioc&lt;/code&gt; or &lt;code&gt;Alo&lt;/code&gt; (post-only), or a trigger order for take-profit and stop-loss.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;c:&lt;/strong&gt; an optional client order ID, a 128-bit hex string you can cancel by.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Other actions cover cancels, modifies, a scheduled cancel (dead man's switch), leverage and isolated margin, TWAP orders, transfers, withdrawals, staking, and approving API wallets and builder fees.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do API wallets and signing work?
&lt;/h2&gt;

&lt;p&gt;The Hyperliquid API has no key and secret pair to send in a header. Each action is signed with an Ethereum private key, either the account's own or that of an API wallet (also called an agent wallet) the account has approved to sign for it and its sub-accounts. An account can approve 1 unnamed API wallet and up to 3 named ones, plus 2 more named ones per sub-account, and a named wallet can be set to expire up to 180 days ahead. Sub-accounts and vaults have no keys of their own: the master account or its API wallet signs, with &lt;code&gt;vaultAddress&lt;/code&gt; set.&lt;/p&gt;

&lt;p&gt;Hyperliquid's docs recommend an SDK over hand-written signatures. There are two signing schemes, called &lt;code&gt;sign_l1_action&lt;/code&gt; and &lt;code&gt;sign_user_signed_action&lt;/code&gt; in the Python SDK, and the usual mistakes are field order in the msgpack payload, trailing zeros on numbers and upper-case letters in addresses. A wrong signature does not fail with a reason: it recovers a different address, so the error names a user or API wallet that "does not exist" (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/signing" rel="noopener noreferrer"&gt;Signing&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Nonces work differently from Ethereum. Hyperliquid stores the 100 highest nonces per signer. A new nonce must be higher than the lowest of them, never used before, and within 2 days before to 1 day after the block time. The docs recommend the current time in milliseconds, one API wallet per trading process, and a new API wallet address rather than reusing an old one, because a deregistered wallet's nonce history can be pruned (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/nonces-and-api-wallets" rel="noopener noreferrer"&gt;Nonces and API wallets&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  What are the Hyperliquid API rate limits?
&lt;/h2&gt;

&lt;p&gt;Hyperliquid limits requests per IP address and actions per wallet address.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hyperliquid API rate limits per IP address&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Limit&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;REST weight, shared by info and exchange&lt;/td&gt;
&lt;td&gt;1,200 per minute&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exchange actions&lt;/td&gt;
&lt;td&gt;Weight 1, plus 1 per 40 orders or cancels in a batch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;l2Book, allMids, clearinghouseState, orderStatus, spotClearinghouseState, exchangeStatus&lt;/td&gt;
&lt;td&gt;Weight 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;userRole&lt;/td&gt;
&lt;td&gt;Weight 60&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Every other info request&lt;/td&gt;
&lt;td&gt;Weight 20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fills, historical orders, funding and other list requests&lt;/td&gt;
&lt;td&gt;Extra weight per 20 items returned (per 60 for candles)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WebSocket connections&lt;/td&gt;
&lt;td&gt;10 open, 30 new per minute&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WebSocket subscriptions&lt;/td&gt;
&lt;td&gt;1,000, across at most 10 unique wallets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Messages sent over WebSocket&lt;/td&gt;
&lt;td&gt;2,000 per minute, 100 post requests in flight&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At weight 20, one IP can send about 60 info requests a minute, or 600 at weight 2. Polling many wallets or markets reaches that quickly, which is why apps move live data to the WebSocket.&lt;/p&gt;

&lt;p&gt;The wallet limit covers actions only, not info requests. Each address gets an initial 10,000 requests plus 1 request per 1 USDC it has ever traded. Past the limit it can send one request every 10 seconds, and cancels get extra room so open orders can always be canceled. A batch of orders counts as one request against the IP limit and as one per order against the address limit. Each account can hold 1,000 open orders, plus 1 more per $5 million of volume, up to 5,000.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testnet vs mainnet
&lt;/h2&gt;

&lt;p&gt;Testnet runs the same API at &lt;code&gt;https://api.hyperliquid-testnet.xyz&lt;/code&gt;, so code moves between the two by changing the base URL, or &lt;code&gt;constants.TESTNET_API_URL&lt;/code&gt; in the Python SDK. Three things differ. Asset IDs are not the same: HYPE's spot ID is 107 on mainnet and 1035 on testnet. User-signed actions such as withdrawals name the chain in &lt;code&gt;hyperliquidChain&lt;/code&gt;, &lt;code&gt;"Mainnet"&lt;/code&gt; or &lt;code&gt;"Testnet"&lt;/code&gt;. And testnet funds come from a faucet that pays 1,000 mock USDC to addresses that have deposited on mainnet. Faucet steps, the HyperEVM testnet and SDK setup are in &lt;a href="https://hyperdash.com/learn/hyperliquid-testnet" rel="noopener noreferrer"&gt;Hyperliquid Testnet: Faucet, API URLs, Chain ID and SDK Setup&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hyperliquid SDKs: official and community
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python (official):&lt;/strong&gt; &lt;a href="https://github.com/hyperliquid-dex/hyperliquid-python-sdk" rel="noopener noreferrer"&gt;hyperliquid-python-sdk&lt;/a&gt;, installed with &lt;code&gt;pip install hyperliquid-python-sdk&lt;/code&gt;. It covers the info and exchange endpoints and the WebSocket, handles signing, and ships runnable examples. Hyperliquid's docs point to its code as the reference for signing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rust (community):&lt;/strong&gt; &lt;a href="https://github.com/infinitefield/hypersdk" rel="noopener noreferrer"&gt;hypersdk&lt;/a&gt;, written by Infinite Field.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript (community):&lt;/strong&gt; &lt;a href="https://github.com/nktkas/hyperliquid" rel="noopener noreferrer"&gt;nktkas/hyperliquid&lt;/a&gt; and &lt;a href="https://github.com/nomeida/hyperliquid" rel="noopener noreferrer"&gt;nomeida/hyperliquid&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CCXT:&lt;/strong&gt; a &lt;a href="https://docs.ccxt.com/#/exchanges/hyperliquid" rel="noopener noreferrer"&gt;Hyperliquid integration&lt;/a&gt; in several languages, using CCXT's standard interface.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Hyperliquid WebSocket in brief
&lt;/h2&gt;

&lt;p&gt;Connect to &lt;code&gt;wss://api.hyperliquid.xyz/ws&lt;/code&gt; and send &lt;code&gt;{"method": "subscribe", "subscription": {"type": "trades", "coin": "BTC"}}&lt;/code&gt; to stream BTC trades; other channels cover order books, candles, asset contexts and a wallet's fills, orders and funding. The server closes a connection it has not sent a message to in 60 seconds, so clients on quiet channels send &lt;code&gt;{"method": "ping"}&lt;/code&gt;. Reconnects, snapshots, the full channel list and the Hyperdash stream are covered in &lt;a href="https://hyperdash.com/learn/hyperliquid-websocket-api" rel="noopener noreferrer"&gt;Hyperliquid WebSocket API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How much history does the Hyperliquid API return?
&lt;/h2&gt;

&lt;p&gt;The public API is built for trading and live state, so its history is short. Candles stop at the most recent 5,000 per interval, which is about three and a half days of 1-minute bars. A wallet's fills stop at its 10,000 most recent, and its historical orders at 2,000. The order book is the current one only, and there is no request for every past trade in a market.&lt;/p&gt;

&lt;p&gt;For older data, Hyperliquid's &lt;code&gt;hyperliquid-archive&lt;/code&gt; S3 bucket holds L2 book snapshots and asset contexts, uploaded about once a month with no guarantee of timely updates, and &lt;code&gt;hl-mainnet-node-data&lt;/code&gt; holds node fills and blocks. The requester pays the transfer cost, and there are no candles in S3. &lt;a href="https://hyperdash.com/learn/hyperliquid-historical-data" rel="noopener noreferrer"&gt;Hyperliquid Historical Data&lt;/a&gt; compares every route and lists how far back each dataset goes.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to add the Hyperdash Data API
&lt;/h2&gt;

&lt;p&gt;Keep the Hyperliquid API for orders signed by your own code and for live state of one wallet or one market at a time. The Hyperdash Data API is read-only. Add the &lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;Hyperdash Data API&lt;/a&gt; when a job needs data the public API does not keep or limits you on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Longer history:&lt;/strong&gt; a wallet's fills past its latest 10,000, and candles by time range instead of the latest 5,000, with 90 days of history on Hobby up to full history on Enterprise (&lt;a href="https://docs.hyperdash.com/data-api/plans" rel="noopener noreferrer"&gt;plans&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Market-wide data:&lt;/strong&gt; every liquidation with the liquidated wallet, and every trade with both the taker and maker wallets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Many wallets at once:&lt;/strong&gt; batch requests read up to 10,000 wallets on Scale, plus leaderboards, cohort positioning and trader statistics.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Separate from Hyperliquid's rate limits:&lt;/strong&gt; Hyperdash serves its data from its own Hyperliquid nodes, so these reads do not use your 1,200 weight a minute.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI agents:&lt;/strong&gt; a hosted MCP server, so Claude or ChatGPT can query the data in plain language.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Requests are REST with a bearer key. This one returns about 30 days of hourly BTC candles: &lt;code&gt;curl "https://data.hyperdash.com/v1/markets/BTC/candles?interval=1h" -H "Authorization: Bearer $HYPERDASH_API_KEY"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For keys, request formats, limits and streams side by side, read &lt;a href="https://hyperdash.com/learn/hyperliquid-data-api-explained" rel="noopener noreferrer"&gt;Hyperliquid Native API vs Hyperdash Data API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build on the Hyperliquid API with your AI agent
&lt;/h2&gt;

&lt;p&gt;Connect an AI agent and ask: "Pull the last 7 days of hourly BTC candles and funding on Hyperliquid, then write a Python script that fetches the same data every hour."&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Connect the MCP server:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; at &lt;code&gt;https://data.hyperdash.com/mcp&lt;/code&gt; works with Claude, ChatGPT, Claude Code, Codex or Cursor. Setup takes about 2 minutes and you sign in with your Hyperdash account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Install the skills:&lt;/strong&gt; &lt;a href="https://docs.hyperdash.com/data-api/skills" rel="noopener noreferrer"&gt;Hyperdash skills&lt;/a&gt; give Claude Code, Codex or Cursor working knowledge of the API with one command. Start with the &lt;a href="https://docs.hyperdash.com/skills/build" rel="noopener noreferrer"&gt;Build skill&lt;/a&gt; for apps, bots, dashboards and scripts, including live streams; in Claude or ChatGPT, paste its link into the chat.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask your agent:&lt;/strong&gt; The &lt;a href="https://docs.hyperdash.com/data-api/guides" rel="noopener noreferrer"&gt;Data API guides&lt;/a&gt; answer questions like this with one prompt, including &lt;a href="https://docs.hyperdash.com/data-api/guides/trader-positioning" rel="noopener noreferrer"&gt;Trader positioning&lt;/a&gt;, &lt;a href="https://docs.hyperdash.com/data-api/guides/hyperliquid-funding-rates" rel="noopener noreferrer"&gt;Funding rates&lt;/a&gt; and &lt;a href="https://docs.hyperdash.com/data-api/guides/liquidations-feed" rel="noopener noreferrer"&gt;Liquidations feed&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the docs:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/overview" rel="noopener noreferrer"&gt;Data API docs&lt;/a&gt;, &lt;a href="https://docs.hyperdash.com/data-api/build-with-ai" rel="noopener noreferrer"&gt;AI agents guide&lt;/a&gt;, the &lt;a href="https://data.hyperdash.com/openapi.json" rel="noopener noreferrer"&gt;OpenAPI spec&lt;/a&gt; and the &lt;a href="https://data.hyperdash.com/llms.txt" rel="noopener noreferrer"&gt;endpoint index&lt;/a&gt; for agents.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Further reading: &lt;a href="https://hyperdash.com/learn/hyperliquid-historical-data" rel="noopener noreferrer"&gt;Hyperliquid Historical Data&lt;/a&gt; and &lt;a href="https://hyperdash.com/learn/hyperliquid-data-api-explained" rel="noopener noreferrer"&gt;Hyperliquid Native API vs Hyperdash Data API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Where are the Hyperliquid API docs?&lt;/strong&gt; In Hyperliquid's GitBook at &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api" rel="noopener noreferrer"&gt;hyperliquid.gitbook.io&lt;/a&gt;, under For developers, then API. The section covers the info endpoint, the exchange endpoint, the WebSocket, signing, nonces, asset IDs and rate limits. For ready-made history and analytics, the &lt;a href="https://docs.hyperdash.com/data-api/overview" rel="noopener noreferrer"&gt;Hyperdash Data API docs&lt;/a&gt; cover the Hyperdash side.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the Hyperliquid API base URL?&lt;/strong&gt; &lt;code&gt;https://api.hyperliquid.xyz&lt;/code&gt; on mainnet, with reads at &lt;code&gt;/info&lt;/code&gt;, signed actions at &lt;code&gt;/exchange&lt;/code&gt; and the WebSocket at &lt;code&gt;wss://api.hyperliquid.xyz/ws&lt;/code&gt;. Testnet uses &lt;code&gt;https://api.hyperliquid-testnet.xyz&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is the Hyperliquid API free?&lt;/strong&gt; Yes. The info endpoint, exchange endpoint and WebSocket cost nothing to call within the rate limits; trades pay the normal trading fees. The Hyperdash website, with wallet pages, the leaderboard and trader positioning, is also free to use. The Hyperdash Data API is paid, from $20 a month.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need an API key for the Hyperliquid API?&lt;/strong&gt; No. Reads need no key at all. Orders and transfers are signed with your wallet's private key or with an API wallet that your account has approved.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is a Hyperliquid API wallet?&lt;/strong&gt; A separate private key that your account approves to sign actions for it and its sub-accounts. An account can have 1 unnamed and up to 3 named API wallets. Queries still take the account's address, not the API wallet's.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the Hyperliquid API rate limit?&lt;/strong&gt; 1,200 weight per minute per IP address. Most info requests weigh 20, so about 60 a minute; l2Book, allMids and clearinghouseState weigh 2. Actions also have a per-address limit of 10,000 requests plus 1 per USDC traded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What nonce should I use for Hyperliquid API requests?&lt;/strong&gt; The current time in milliseconds. It must be higher than the lowest of the address's 100 stored nonces, unused, and within 2 days before to 1 day after the block time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does my Hyperliquid signature fail with "does not exist"?&lt;/strong&gt; The signature recovered a different address than your wallet. The usual causes are the wrong signing scheme, msgpack field order, trailing zeros or upper-case addresses. Signing through an SDK avoids all four.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I get more than 10,000 fills for a Hyperliquid wallet?&lt;/strong&gt; The Hyperdash Data API returns a wallet's fills by time range, from 90 days back on Hobby up to full history on Enterprise. The public API stops at a wallet's 10,000 most recent fills, and Hyperliquid's node data on S3 also holds older fills.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which Hyperliquid SDK is official?&lt;/strong&gt; The Python SDK, &lt;code&gt;hyperliquid-python-sdk&lt;/code&gt;. Hyperliquid's docs list a Rust SDK and two TypeScript SDKs written by community members, and a CCXT integration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started with Hyperdash
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;Create your Hyperdash account and get your first API key&lt;/a&gt;. Plans start at $20 a month.&lt;/li&gt;
&lt;li&gt;Connect the &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; to Claude, ChatGPT, Claude Code, Codex or Cursor in about 2 minutes, with no API key.&lt;/li&gt;
&lt;li&gt;Make your first request with the &lt;a href="https://docs.hyperdash.com/data-api/quickstart" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Need full history, an SLA or Hyperliquid Peering in Tokyo or Frankfurt? &lt;a href="https://hyperdash.com/products/data/enterprise-solutions" rel="noopener noreferrer"&gt;Talk to the Hyperdash team&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>hyperliquid</category>
      <category>api</category>
      <category>crypto</category>
      <category>webdev</category>
    </item>
    <item>
      <title>24/7 Price API for Stocks, Oil and Gold: Weekend Prices from Hyperliquid</title>
      <dc:creator>Hanson</dc:creator>
      <pubDate>Sat, 05 Dec 2026 20:24:50 +0000</pubDate>
      <link>https://dev.to/hyperdash/247-price-api-for-stocks-oil-and-gold-weekend-prices-from-hyperliquid-4i4m</link>
      <guid>https://dev.to/hyperdash/247-price-api-for-stocks-oil-and-gold-weekend-prices-from-hyperliquid-4i4m</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://hyperdash.com/learn/24-7-stock-oil-gold-price-api" rel="noopener noreferrer"&gt;Hyperdash blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Stock exchanges close every night and all weekend, and oil and gold futures stop from Friday evening to Sunday evening. Hyperliquid's HIP-3 markets keep trading. Perpetual futures on Nvidia (&lt;code&gt;xyz:NVDA&lt;/code&gt;), the S&amp;amp;P 500 (&lt;code&gt;xyz:SP500&lt;/code&gt;), WTI oil (&lt;code&gt;xyz:CL&lt;/code&gt;), Brent (&lt;code&gt;xyz:BRENTOIL&lt;/code&gt;), gold (&lt;code&gt;xyz:GOLD&lt;/code&gt;), silver (&lt;code&gt;xyz:SILVER&lt;/code&gt;) and the euro (&lt;code&gt;xyz:EUR&lt;/code&gt;) trade 24/7, so they give a live, traded price at hours when the usual feeds stand still. You can read those prices by API on any day of the week.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Our pick: the Hyperdash Data API.&lt;/strong&gt; The &lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;Hyperdash Data API&lt;/a&gt; serves live and historical prices for every Hyperliquid stock, index, commodity and currency market over REST and a WebSocket stream. It adds what a weekend price feed needs on top of the live price: candles from 1 minute to 1 month, the price at Friday's close, the gap to Monday's open, and HIP-3 oracle prices. The same API covers every crypto market on Hyperliquid. Plans start at $20 a month.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which stocks, commodities and currencies trade 24/7 on Hyperliquid?
&lt;/h2&gt;

&lt;p&gt;The largest set sits on the &lt;code&gt;xyz&lt;/code&gt; HIP-3 dex, which lists 128 markets as of December 5, 2026. Among them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stocks:&lt;/strong&gt; Nvidia (&lt;code&gt;xyz:NVDA&lt;/code&gt;), Tesla (&lt;code&gt;xyz:TSLA&lt;/code&gt;), Oracle (&lt;code&gt;xyz:ORCL&lt;/code&gt;), Circle (&lt;code&gt;xyz:CRCL&lt;/code&gt;) and more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Indices:&lt;/strong&gt; the S&amp;amp;P 500 (&lt;code&gt;xyz:SP500&lt;/code&gt;) and &lt;code&gt;xyz:XYZ100&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Energy:&lt;/strong&gt; WTI crude (&lt;code&gt;xyz:CL&lt;/code&gt;), Brent crude (&lt;code&gt;xyz:BRENTOIL&lt;/code&gt;) and natural gas (&lt;code&gt;xyz:NATGAS&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Metals:&lt;/strong&gt; gold (&lt;code&gt;xyz:GOLD&lt;/code&gt;), silver (&lt;code&gt;xyz:SILVER&lt;/code&gt;), platinum (&lt;code&gt;xyz:PLATINUM&lt;/code&gt;) and copper (&lt;code&gt;xyz:COPPER&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Currencies:&lt;/strong&gt; the euro (&lt;code&gt;xyz:EUR&lt;/code&gt;) and the Japanese yen (&lt;code&gt;xyz:JPY&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;GET /v1/markets/catalog&lt;/code&gt; returns every market's category, sector and asset class, so an app can build its list without hard-coding tickers. &lt;a href="https://hyperdash.com/learn/hyperliquid-stocks-and-commodities" rel="noopener noreferrer"&gt;Hyperliquid stocks and commodities&lt;/a&gt; lists the markets, and &lt;a href="https://hyperdash.com/learn/what-is-hip-3-hyperliquid" rel="noopener noreferrer"&gt;What is HIP-3&lt;/a&gt; explains how outside teams deploy them.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you get live 24/7 prices by API?
&lt;/h2&gt;

&lt;p&gt;One request returns every market on the &lt;code&gt;xyz&lt;/code&gt; dex with its mark, oracle and mid prices, funding, open interest and 24-hour volume:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://data.hyperdash.com/v1/markets?dex=xyz"&lt;/span&gt; -H &lt;span class="s2"&gt;"Authorization: Bearer $HYPERDASH_API_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For an app that updates continuously, stream instead. Connect to &lt;code&gt;wss://data.hyperdash.com/v1/stream&lt;/code&gt; and subscribe to &lt;code&gt;ctx&lt;/code&gt; for one market:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"op"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"subscribe"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"channel"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ctx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"coin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"xyz:GOLD"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;ctx&lt;/code&gt; channel sends mark, oracle, mid, funding, open interest and 24-hour volume whenever they change, and at least every 10 seconds. The &lt;code&gt;markets&lt;/code&gt; channel sends the same fields for every perp market in one event about once a second (&lt;a href="https://docs.hyperdash.com/data-api/streams" rel="noopener noreferrer"&gt;streams&lt;/a&gt;). Each event costs 1 credit, or 5 on &lt;code&gt;markets&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hyperdash endpoints for a 24/7 price feed&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You want&lt;/th&gt;
&lt;th&gt;Endpoint or channel&lt;/th&gt;
&lt;th&gt;Credits&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Live prices of every stock and commodity market&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets?dex=xyz&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;10 + 5 per node read&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live prices pushed as they change&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ctx&lt;/code&gt; stream, or &lt;code&gt;markets&lt;/code&gt; for every market&lt;/td&gt;
&lt;td&gt;1 per event, 5 on &lt;code&gt;markets&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Candles from 1 minute to 1 month&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets/{coin}/candles&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;10 + 1 per bar + 2 per node read&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Friday's close against Monday's open&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets/{coin}/session-gaps&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;20 + 1 per row&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Price change of every market&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets/price-changes&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;20 + 1 per row + 5 per node read&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HIP-3 oracle prices&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets/{coin}/oracle&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;10 + 1 per row&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How do you measure a weekend move from Friday's close?
&lt;/h2&gt;

&lt;p&gt;Take the last price before the New York close on Friday, then compare it with the live price. The &lt;a href="https://docs.hyperdash.com/data-api/guides/weekend-prices" rel="noopener noreferrer"&gt;weekend prices guide&lt;/a&gt; does it in two calls: the live price from &lt;code&gt;GET /v1/markets?dex=xyz&lt;/code&gt;, and Friday's close from the last 1-minute candle before the 4:00 PM New York close:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://data.hyperdash.com/v1/markets/xyz:NVDA/candles?interval=1m&amp;amp;start_time=...&amp;amp;end_time=..."&lt;/span&gt; -H &lt;span class="s2"&gt;"Authorization: Bearer $HYPERDASH_API_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Times are epoch milliseconds in UTC, and &lt;code&gt;c&lt;/code&gt; in each candle is the close. The guide's example run, on Saturday, November 28, 2026, at 8:40 PM EST, compared every market with its close on Friday, November 27. US markets closed early that day, at 1:00 PM EST after Thanksgiving, so Friday's close is the last candle before 1:00 PM EST. Six of the markets:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Weekend moves on Hyperliquid since Friday's close, November 28, 2026&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Market&lt;/th&gt;
&lt;th&gt;Friday close&lt;/th&gt;
&lt;th&gt;Saturday&lt;/th&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;xyz:INTC&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;58.12&lt;/td&gt;
&lt;td&gt;56.71&lt;/td&gt;
&lt;td&gt;-2.42%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;xyz:NVDA&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;150.79&lt;/td&gt;
&lt;td&gt;147.98&lt;/td&gt;
&lt;td&gt;-1.86%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;xyz:SP500&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;7,305.60&lt;/td&gt;
&lt;td&gt;7,287.15&lt;/td&gt;
&lt;td&gt;-0.25%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;xyz:GOLD&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3,651.60&lt;/td&gt;
&lt;td&gt;3,658.50&lt;/td&gt;
&lt;td&gt;+0.19%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;xyz:CL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;82.84&lt;/td&gt;
&lt;td&gt;83.18&lt;/td&gt;
&lt;td&gt;+0.41%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;xyz:BRENTOIL&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;90.04&lt;/td&gt;
&lt;td&gt;90.49&lt;/td&gt;
&lt;td&gt;+0.50%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On Monday, &lt;code&gt;GET /v1/markets/{coin}/session-gaps&lt;/code&gt; returns one row per New York date with the last price before the 4:00 PM New York close and the price at the 9:30 AM open, so you can check how close the weekend price came to the open. Early-close days use the regular 4:00 PM close. &lt;code&gt;GET /v1/markets/{coin}/session-slots&lt;/code&gt; breaks each day into 30-minute activity slots.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should a 24/7 price feed show users?
&lt;/h2&gt;

&lt;p&gt;Four details for an app that shows weekend prices:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Label the source.&lt;/strong&gt; These are prices of perpetual futures traded on Hyperliquid, not the stock exchange's or the futures exchange's own quote. Say "Hyperliquid price" next to the number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Show both prices.&lt;/strong&gt; The API returns the mid price, from the order book on Hyperliquid, and the oracle price, the market's reference price. Showing both tells users where the perp trades against its reference.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Show volume and open interest.&lt;/strong&gt; Weekend trading is thinner than weekday trading. The 24-hour volume and open interest in each response tell users how much trading sits behind the price.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use the right history.&lt;/strong&gt; Candles start at each market's listing (&lt;code&gt;xyz:NVDA&lt;/code&gt; on November 12, 2025, &lt;code&gt;xyz:GOLD&lt;/code&gt; on December 22, 2025), and HIP-3 oracle bars start on November 5, 2026. How far back you can read depends on the plan: 90 days on Hobby and Starter, up to full history on Enterprise (&lt;a href="https://docs.hyperdash.com/data-api/plans" rel="noopener noreferrer"&gt;plans&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For how weekend gaps affect open positions, read &lt;a href="https://hyperdash.com/learn/the-weekend-gap-is-killing-your-edge-how-to-trade-markets-on-saturday-and-sunday" rel="noopener noreferrer"&gt;The weekend gap is killing your edge&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask your AI agent about weekend prices
&lt;/h2&gt;

&lt;p&gt;Connect an agent to Hyperdash and ask: "How are stocks, oil and gold trading this weekend compared with Friday's close?"&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Connect the MCP server:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; works with Claude, ChatGPT, Claude Code, Codex or Cursor; setup takes about 2 minutes and you sign in with your Hyperdash account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Install the skills:&lt;/strong&gt; &lt;a href="https://docs.hyperdash.com/data-api/skills" rel="noopener noreferrer"&gt;Hyperdash skills&lt;/a&gt; give Claude Code, Codex or Cursor working knowledge of the API with one command; in Claude or ChatGPT, paste the skill link. The Data skill covers market prices and history.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask your agent:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/guides" rel="noopener noreferrer"&gt;Data API guides&lt;/a&gt; include &lt;a href="https://docs.hyperdash.com/data-api/guides/weekend-prices" rel="noopener noreferrer"&gt;weekend prices&lt;/a&gt;, &lt;a href="https://docs.hyperdash.com/data-api/guides/price-history" rel="noopener noreferrer"&gt;price history&lt;/a&gt; and &lt;a href="https://docs.hyperdash.com/data-api/guides/hip3-markets" rel="noopener noreferrer"&gt;HIP-3 markets&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the docs:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/overview" rel="noopener noreferrer"&gt;Data API docs&lt;/a&gt;, the &lt;a href="https://docs.hyperdash.com/data-api/coverage" rel="noopener noreferrer"&gt;data coverage page&lt;/a&gt;, and the &lt;a href="https://data.hyperdash.com/llms.txt" rel="noopener noreferrer"&gt;endpoint index&lt;/a&gt; for agents.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Further reading: &lt;a href="https://hyperdash.com/learn/how-to-trade-stocks-on-weekends" rel="noopener noreferrer"&gt;How to trade stocks on weekends&lt;/a&gt; and the &lt;a href="https://hyperdash.com/learn/hyperliquid-ohlcv-candle-data-api" rel="noopener noreferrer"&gt;Hyperliquid OHLCV API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is there a stock price API that works on weekends?&lt;/strong&gt; Yes. Hyperliquid's HIP-3 perps on stocks such as Nvidia and Tesla and on the S&amp;amp;P 500 trade 24/7, and the Hyperdash Data API serves their live prices on any day through &lt;code&gt;GET /v1/markets?dex=xyz&lt;/code&gt; or the &lt;code&gt;ctx&lt;/code&gt; stream.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get a live oil price on the weekend?&lt;/strong&gt; Yes. WTI (&lt;code&gt;xyz:CL&lt;/code&gt;), Brent (&lt;code&gt;xyz:BRENTOIL&lt;/code&gt;) and natural gas (&lt;code&gt;xyz:NATGAS&lt;/code&gt;) trade on Hyperliquid through the weekend, and Hyperdash returns their live mark, oracle and mid prices.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get a live gold price on Saturday or Sunday?&lt;/strong&gt; Yes. Gold (&lt;code&gt;xyz:GOLD&lt;/code&gt;), silver (&lt;code&gt;xyz:SILVER&lt;/code&gt;) and platinum (&lt;code&gt;xyz:PLATINUM&lt;/code&gt;) keep trading on Hyperliquid on weekends, and the same endpoints return their prices.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is a Hyperliquid weekend price the same as the official price?&lt;/strong&gt; No. It is the price of a perpetual future traded on Hyperliquid. When the underlying market reopens, &lt;code&gt;GET /v1/markets/{coin}/session-gaps&lt;/code&gt; shows how far the opening price was from Friday's close.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much does a 24/7 price feed cost on Hyperdash?&lt;/strong&gt; Plans start at $20 a month with 500,000 credits. One &lt;code&gt;GET /v1/markets?dex=xyz&lt;/code&gt; call costs 10 credits plus 5 per node read, and the weekend prices guide's full comparison uses about 200 credits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need to write code?&lt;/strong&gt; No. Connect your agent to the &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; and ask about weekend prices in plain words. To watch the prices on a chart, the Hyperdash platform is free to use: see &lt;a href="https://hyperdash.com/products/trade/global-markets" rel="noopener noreferrer"&gt;Global Markets&lt;/a&gt;. The API calls above are for building the feed into your own app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started with Hyperdash
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;Create your Hyperdash account and get your first API key&lt;/a&gt;. Plans start at $20 a month.&lt;/li&gt;
&lt;li&gt;Connect the &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; to Claude, ChatGPT, Claude Code, Codex or Cursor in about 2 minutes, with no API key.&lt;/li&gt;
&lt;li&gt;Make your first request with the &lt;a href="https://docs.hyperdash.com/data-api/quickstart" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Need full history, an SLA or Hyperliquid Peering in Tokyo or Frankfurt? &lt;a href="https://hyperdash.com/products/data/enterprise-solutions" rel="noopener noreferrer"&gt;Talk to the Hyperdash team&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>hyperliquid</category>
      <category>api</category>
      <category>crypto</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Hyperliquid Trading Bot Data, From Live Prices to Its Own Fills</title>
      <dc:creator>Hanson</dc:creator>
      <pubDate>Sat, 05 Dec 2026 20:23:54 +0000</pubDate>
      <link>https://dev.to/hyperdash/hyperliquid-trading-bot-data-from-live-prices-to-its-own-fills-ejd</link>
      <guid>https://dev.to/hyperdash/hyperliquid-trading-bot-data-from-live-prices-to-its-own-fills-ejd</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on the &lt;a href="https://hyperdash.com/learn/hyperliquid-trading-bot-data" rel="noopener noreferrer"&gt;Hyperdash blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Our pick: the Hyperdash Data API.&lt;/strong&gt; The &lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;Hyperdash Data API&lt;/a&gt; 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 &lt;code&gt;gap&lt;/code&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What data does a Hyperliquid trading bot need?
&lt;/h2&gt;

&lt;p&gt;Most bots read the same handful of feeds. This table maps each one to its Hyperdash endpoint and stream channel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data a Hyperliquid trading bot reads, and where it comes from on Hyperdash&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Data&lt;/th&gt;
&lt;th&gt;What the bot uses it for&lt;/th&gt;
&lt;th&gt;REST endpoint&lt;/th&gt;
&lt;th&gt;Stream channel&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Live prices&lt;/td&gt;
&lt;td&gt;Signals and order prices&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets/mids&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;mids&lt;/code&gt;, every market about once a second&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mark, oracle, funding, open interest&lt;/td&gt;
&lt;td&gt;Fair value, carry and crowding&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ctx&lt;/code&gt; for one market, &lt;code&gt;markets&lt;/code&gt; for all&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Order book&lt;/td&gt;
&lt;td&gt;Spread, depth and slippage&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets/{coin}/book&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;book&lt;/code&gt; (20 levels), &lt;code&gt;bbo&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trades&lt;/td&gt;
&lt;td&gt;Momentum and order flow&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets/{coin}/trades&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;trades&lt;/code&gt;, with taker and maker wallets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Candles&lt;/td&gt;
&lt;td&gt;Indicators and backtests&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets/{coin}/candles&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;candles&lt;/code&gt; (5-minute bars live now)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Funding history&lt;/td&gt;
&lt;td&gt;Carry strategies and backtests&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/markets/{coin}/funding-rates&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ctx&lt;/code&gt; for the live rate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Liquidations&lt;/td&gt;
&lt;td&gt;Cascades and entries&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/liquidations&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;liquidations&lt;/code&gt;, one market or all&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Liquidation and stop levels&lt;/td&gt;
&lt;td&gt;Where price may cascade&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;GET /v1/markets/{coin}/liquidation-levels&lt;/code&gt; and &lt;code&gt;/stop-levels&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;liquidation-levels&lt;/code&gt;, &lt;code&gt;stop-levels&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The bot's positions&lt;/td&gt;
&lt;td&gt;Sizing and risk&lt;/td&gt;
&lt;td&gt;&lt;code&gt;GET /v1/accounts/{address}/positions&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;account&lt;/code&gt; (not live yet)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The bot's orders and fills&lt;/td&gt;
&lt;td&gt;State and reconciliation&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;GET /v1/accounts/{address}/open-orders&lt;/code&gt; and &lt;code&gt;/fills&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;orders&lt;/code&gt;, &lt;code&gt;fills&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Every market works the same way, including Hyperliquid's HIP-3 stock and commodity perps such as &lt;code&gt;xyz:NVDA&lt;/code&gt;, &lt;code&gt;xyz:CL&lt;/code&gt; and &lt;code&gt;xyz:GOLD&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How should a bot read live data?
&lt;/h2&gt;

&lt;p&gt;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 &lt;code&gt;wss://data.hyperdash.com/v1/stream&lt;/code&gt; with your API key in the &lt;code&gt;Authorization&lt;/code&gt; header, wait for &lt;code&gt;ready&lt;/code&gt;, then subscribe to the feeds the strategy needs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"op"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"subscribe"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"channel"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"bbo"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"coin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"BTC"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"op"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"subscribe"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"channel"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"fills"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"address"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"0xYOUR_BOT_WALLET"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Events arrive in batches. Save the &lt;code&gt;cursor&lt;/code&gt; from each batch, then send an &lt;code&gt;ack&lt;/code&gt;. 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 &lt;code&gt;mids&lt;/code&gt; and &lt;code&gt;markets&lt;/code&gt;. Anything older comes as a &lt;code&gt;gap&lt;/code&gt; message that names the missing range, so the bot can fill it over REST instead of trading on missing data (&lt;a href="https://docs.hyperdash.com/data-api/streams" rel="noopener noreferrer"&gt;streams&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;A connection carries 20 subscriptions. Hobby includes 2 connections and Scale 50, and the &lt;code&gt;orders&lt;/code&gt; channel follows 3 wallets on Hobby up to 200 on Scale (&lt;a href="https://docs.hyperdash.com/data-api/plans" rel="noopener noreferrer"&gt;plans&lt;/a&gt;). For the full protocol, read the &lt;a href="https://hyperdash.com/learn/hyperliquid-websocket-api" rel="noopener noreferrer"&gt;Hyperliquid WebSocket API guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Budget the credits before you leave a stream on. Each event costs 1 credit, or 5 on &lt;code&gt;markets&lt;/code&gt;. At its documented rate of about one event a second, a &lt;code&gt;mids&lt;/code&gt; 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 &lt;code&gt;GET /v1/markets/mids&lt;/code&gt; call costs at least 10 credits, so polling fits Hobby only at about one call a minute.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which data do you need to backtest a Hyperliquid strategy?
&lt;/h2&gt;

&lt;p&gt;Backtests need history at the same resolution the bot will trade on.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Candles:&lt;/strong&gt; &lt;code&gt;GET /v1/markets/{coin}/candles&lt;/code&gt; returns 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 &lt;a href="https://hyperdash.com/learn/hyperliquid-ohlcv-candle-data-api" rel="noopener noreferrer"&gt;Hyperliquid OHLCV API guide&lt;/a&gt; covers intervals, paging and CSV export.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Funding:&lt;/strong&gt; &lt;code&gt;GET /v1/markets/{coin}/funding-rates&lt;/code&gt; returns realized funding rates, which carry strategies need to count what a position paid or earned.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trades:&lt;/strong&gt; &lt;code&gt;GET /v1/markets/{coin}/trades&lt;/code&gt; returns every trade with price, size and both wallets, from July 28, 2025, up to 1 day per request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mark and oracle prices:&lt;/strong&gt; &lt;code&gt;GET /v1/markets/{coin}/context-history&lt;/code&gt; returns 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open interest:&lt;/strong&gt; &lt;code&gt;GET /v1/markets/{coin}/open-interest&lt;/code&gt; returns open interest bars.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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 (&lt;a href="https://docs.hyperdash.com/data-api/plans" rel="noopener noreferrer"&gt;plans&lt;/a&gt;). Teams that need a custom backfill can have it added to their plan by Hyperdash's integration team.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does a bot track its own positions and orders?
&lt;/h2&gt;

&lt;p&gt;The bot's own state comes from the same API, keyed by the wallet address that holds the positions.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Positions and margin:&lt;/strong&gt; &lt;code&gt;GET /v1/accounts/{address}/positions&lt;/code&gt; returns open positions on one dex, and &lt;code&gt;/positions/all-dexes&lt;/code&gt; returns the margin summary on every dex.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open orders:&lt;/strong&gt; &lt;code&gt;GET /v1/accounts/{address}/open-orders&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One order:&lt;/strong&gt; &lt;code&gt;GET /v1/accounts/{address}/orders/{oid}&lt;/code&gt; returns an order's status by its order id or by the client order id (&lt;code&gt;cloid&lt;/code&gt;) the bot set when it placed it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live updates:&lt;/strong&gt; the &lt;code&gt;orders&lt;/code&gt; channel pushes every open, fill, cancel, trigger and reject for the wallet, and &lt;code&gt;fills&lt;/code&gt; pushes each fill. Reconcile against REST after any restart.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where does a Hyperliquid bot send its orders?
&lt;/h2&gt;

&lt;p&gt;Orders go to Hyperliquid's exchange endpoint, &lt;code&gt;POST https://api.hyperliquid.xyz/exchange&lt;/code&gt;, signed by your wallet or by an API wallet the account has approved. Hyperliquid's &lt;a href="https://github.com/hyperliquid-dex/hyperliquid-python-sdk" rel="noopener noreferrer"&gt;official Python SDK&lt;/a&gt; handles the signing. The bot then sees the result on its Hyperdash &lt;code&gt;orders&lt;/code&gt; and &lt;code&gt;fills&lt;/code&gt; streams, so one data connection covers both the market and the bot's own activity.&lt;/p&gt;

&lt;p&gt;To automate execution without writing a bot, &lt;a href="https://hyperdash.com/products/trade/advanced-execution" rel="noopener noreferrer"&gt;Hyperdash Advanced Execution&lt;/a&gt; runs TWAP, chase, scale and swarm orders on Hyperliquid from the platform.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which Hyperliquid API limits does a bot run into?
&lt;/h2&gt;

&lt;p&gt;Bots that read everything from Hyperliquid's public API share these limits per IP address (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits" rel="noopener noreferrer"&gt;rate limits and user limits&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;REST requests share 1,200 weight a minute.&lt;/li&gt;
&lt;li&gt;10 WebSocket connections, 1,000 subscriptions and 10 unique wallets across all wallet feeds.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;candleSnapshot&lt;/code&gt; returns only the most recent 5,000 candles, and &lt;code&gt;userFillsByTime&lt;/code&gt; reaches only a wallet's 10,000 most recent fills (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint" rel="noopener noreferrer"&gt;info endpoint&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask your AI agent to build a Hyperliquid bot data feed
&lt;/h2&gt;

&lt;p&gt;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."&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Connect the MCP server:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; works with Claude, ChatGPT, Claude Code, Codex or Cursor; setup takes about 2 minutes and you sign in with your Hyperdash account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Install the skills:&lt;/strong&gt; &lt;a href="https://docs.hyperdash.com/data-api/skills" rel="noopener noreferrer"&gt;Hyperdash skills&lt;/a&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask your agent:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/guides" rel="noopener noreferrer"&gt;Data API guides&lt;/a&gt; include &lt;a href="https://docs.hyperdash.com/data-api/guides/price-history" rel="noopener noreferrer"&gt;price history&lt;/a&gt;, &lt;a href="https://docs.hyperdash.com/data-api/guides/order-book" rel="noopener noreferrer"&gt;order book&lt;/a&gt; and &lt;a href="https://docs.hyperdash.com/data-api/guides/liquidations-feed" rel="noopener noreferrer"&gt;liquidations feed&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the docs:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/overview" rel="noopener noreferrer"&gt;Data API docs&lt;/a&gt;, the &lt;a href="https://docs.hyperdash.com/data-api/streams" rel="noopener noreferrer"&gt;streams reference&lt;/a&gt;, and the &lt;a href="https://data.hyperdash.com/llms.txt" rel="noopener noreferrer"&gt;endpoint index&lt;/a&gt; for agents.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Further reading: &lt;a href="https://hyperdash.com/learn/hyperliquid-data-api-vs-streams-guide" rel="noopener noreferrer"&gt;Hyperliquid Data API vs Streams&lt;/a&gt; and the &lt;a href="https://hyperdash.com/learn/hyperliquid-order-book-api" rel="noopener noreferrer"&gt;Hyperliquid Order Book API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can a bot place Hyperliquid orders through the Hyperdash Data API?&lt;/strong&gt; 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 &lt;code&gt;orders&lt;/code&gt; and &lt;code&gt;fills&lt;/code&gt; streams. To trade without code, &lt;a href="https://hyperdash.com/products/trade/advanced-execution" rel="noopener noreferrer"&gt;Hyperdash Advanced Execution&lt;/a&gt; runs TWAP, chase, scale and swarm orders.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do Hyperdash streams count against Hyperliquid's per-IP limits?&lt;/strong&gt; No. Hyperdash streams read Hyperdash's own nodes, so they do not use your IP address's Hyperliquid connections, subscriptions or wallet slots.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which Hyperdash plan does a trading bot need?&lt;/strong&gt; 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 &lt;code&gt;mids&lt;/code&gt; all month can use up to about 2.6 million credits, which fits Starter at $99 a month with 4 million.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can a bot stream 1-minute candles from Hyperdash?&lt;/strong&gt; The &lt;code&gt;candles&lt;/code&gt; 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 &lt;code&gt;GET /v1/markets/{coin}/candles&lt;/code&gt;, or build them from the &lt;code&gt;trades&lt;/code&gt; stream.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can a bot watch other traders' wallets?&lt;/strong&gt; Yes. The &lt;code&gt;fills&lt;/code&gt; channel follows any wallet, and the &lt;code&gt;orders&lt;/code&gt; channel follows 3 wallets on Hobby up to 200 on Scale.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the same data cover Hyperliquid stock and commodity perps?&lt;/strong&gt; Yes. Every endpoint and channel above works for HIP-3 markets such as &lt;code&gt;xyz:NVDA&lt;/code&gt;, &lt;code&gt;xyz:CL&lt;/code&gt; and &lt;code&gt;xyz:GOLD&lt;/code&gt;, which trade 24/7.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started with Hyperdash
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;Create your Hyperdash account and get your first API key&lt;/a&gt;. Plans start at $20 a month.&lt;/li&gt;
&lt;li&gt;Connect the &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; to Claude, ChatGPT, Claude Code, Codex or Cursor in about 2 minutes, with no API key.&lt;/li&gt;
&lt;li&gt;Make your first request with the &lt;a href="https://docs.hyperdash.com/data-api/quickstart" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Need full history, an SLA or Hyperliquid Peering in Tokyo or Frankfurt? &lt;a href="https://hyperdash.com/products/data/enterprise-solutions" rel="noopener noreferrer"&gt;Talk to the Hyperdash team&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>hyperliquid</category>
      <category>trading</category>
      <category>api</category>
      <category>python</category>
    </item>
    <item>
      <title>Hyperliquid WebSocket API: Subscriptions, Limits and Reconnects</title>
      <dc:creator>Hanson</dc:creator>
      <pubDate>Sat, 05 Dec 2026 20:09:42 +0000</pubDate>
      <link>https://dev.to/hyperdash/hyperliquid-websocket-api-subscriptions-limits-and-reconnects-5176</link>
      <guid>https://dev.to/hyperdash/hyperliquid-websocket-api-subscriptions-limits-and-reconnects-5176</guid>
      <description>&lt;p&gt;The Hyperliquid WebSocket API lives at &lt;code&gt;wss://api.hyperliquid.xyz/ws&lt;/code&gt;. You open a connection, send a &lt;code&gt;subscribe&lt;/code&gt; message for a feed such as &lt;code&gt;trades&lt;/code&gt;, &lt;code&gt;l2Book&lt;/code&gt;, &lt;code&gt;candle&lt;/code&gt; or &lt;code&gt;userFills&lt;/code&gt;, and the server pushes updates until you unsubscribe or the connection drops. It is free and needs no key to read data. Each IP address gets 10 connections and 1,000 subscriptions, and user feeds can follow at most 10 wallets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Our pick: the Hyperdash Data API.&lt;/strong&gt; For a production app, &lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;Hyperdash Data API&lt;/a&gt; streams at &lt;code&gt;wss://data.hyperdash.com/v1/stream&lt;/code&gt; handle the recovery that the public socket leaves to the client. Each batch carries a cursor, so a client that reconnects resumes where it stopped, and a &lt;code&gt;gap&lt;/code&gt; message names any range it cannot replay, so you backfill it over REST. Streams cover trades with taker and maker wallets, books, liquidations across every market and per-wallet fills and orders. They run on every plan, from $20 a month.&lt;/p&gt;

&lt;p&gt;For whether a job needs a stream or a REST call on a timer, read &lt;a href="https://hyperdash.com/learn/hyperliquid-data-api-vs-streams-guide" rel="noopener noreferrer"&gt;Hyperliquid Data API vs Streams&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you connect to the Hyperliquid WebSocket?
&lt;/h2&gt;

&lt;p&gt;Open a WebSocket to the mainnet URL, or to &lt;code&gt;wss://api.hyperliquid-testnet.xyz/ws&lt;/code&gt; on testnet, and send one JSON message per feed. This one subscribes to BTC trades:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"subscribe"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"subscription"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"trades"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"coin"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"BTC"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The server first answers on the &lt;code&gt;subscriptionResponse&lt;/code&gt; channel, echoing your subscription. Then data arrives on a channel named after the feed, here &lt;code&gt;trades&lt;/code&gt;, with an array of trades in &lt;code&gt;data&lt;/code&gt;. Each trade carries the side, price, size, time, a trade id and the two wallets, buyer first. To stop a feed, send the same object with &lt;code&gt;"method": "unsubscribe"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two details trip up first clients:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep the connection alive.&lt;/strong&gt; The server closes any connection it has not sent a message to in the last 60 seconds. On a quiet feed, send &lt;code&gt;{"method": "ping"}&lt;/code&gt; and the server replies on the &lt;code&gt;pong&lt;/code&gt; channel (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/timeouts-and-heartbeats" rel="noopener noreferrer"&gt;timeouts and heartbeats&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use the account's own address.&lt;/strong&gt; Wallet feeds need the master or sub-account address. Subscribing with an agent wallet's address returns an empty result.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Which subscription types does the Hyperliquid WebSocket offer?
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions" rel="noopener noreferrer"&gt;subscriptions page&lt;/a&gt; lists 27 types. They fall into three groups.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hyperliquid WebSocket subscription types&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Group&lt;/th&gt;
&lt;th&gt;Subscription types&lt;/th&gt;
&lt;th&gt;Keyed by&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Market data&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;trades&lt;/code&gt;, &lt;code&gt;l2Book&lt;/code&gt;, &lt;code&gt;l2&lt;/code&gt;, &lt;code&gt;bbo&lt;/code&gt;, &lt;code&gt;candle&lt;/code&gt;, &lt;code&gt;activeAssetCtx&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;coin&lt;/code&gt; (&lt;code&gt;c&lt;/code&gt; on &lt;code&gt;l2&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All-market data&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;fastAssetCtxs&lt;/code&gt;, &lt;code&gt;pac&lt;/code&gt;, &lt;code&gt;sac&lt;/code&gt;, &lt;code&gt;outcomeMetaUpdates&lt;/code&gt;, plus the deprecated &lt;code&gt;allMids&lt;/code&gt; and &lt;code&gt;allDexsAssetCtxs&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wallet data&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;userFills&lt;/code&gt;, &lt;code&gt;orderUpdates&lt;/code&gt;, &lt;code&gt;userEvents&lt;/code&gt;, &lt;code&gt;userFundings&lt;/code&gt;, &lt;code&gt;userNonFundingLedgerUpdates&lt;/code&gt;, &lt;code&gt;openOrders&lt;/code&gt;, &lt;code&gt;clearinghouseState&lt;/code&gt;, &lt;code&gt;allDexsClearinghouseState&lt;/code&gt;, &lt;code&gt;spotState&lt;/code&gt;, &lt;code&gt;activeAssetData&lt;/code&gt;, &lt;code&gt;twapStates&lt;/code&gt;, &lt;code&gt;userTwapSliceFills&lt;/code&gt;, &lt;code&gt;userTwapHistory&lt;/code&gt;, &lt;code&gt;notification&lt;/code&gt;, &lt;code&gt;webData3&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;user&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A few of them need more than a coin:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;candle&lt;/code&gt;&lt;/strong&gt; takes an &lt;code&gt;interval&lt;/code&gt;: &lt;code&gt;1m&lt;/code&gt;, &lt;code&gt;3m&lt;/code&gt;, &lt;code&gt;5m&lt;/code&gt;, &lt;code&gt;15m&lt;/code&gt;, &lt;code&gt;30m&lt;/code&gt;, &lt;code&gt;1h&lt;/code&gt;, &lt;code&gt;2h&lt;/code&gt;, &lt;code&gt;4h&lt;/code&gt;, &lt;code&gt;8h&lt;/code&gt;, &lt;code&gt;12h&lt;/code&gt;, &lt;code&gt;1d&lt;/code&gt;, &lt;code&gt;3d&lt;/code&gt;, &lt;code&gt;1w&lt;/code&gt; or &lt;code&gt;1M&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;l2Book&lt;/code&gt;&lt;/strong&gt; pushes full book snapshots and takes optional &lt;code&gt;nSigFigs&lt;/code&gt; and &lt;code&gt;mantissa&lt;/code&gt; to group price levels. The newer &lt;strong&gt;&lt;code&gt;l2&lt;/code&gt;&lt;/strong&gt; feed sends one snapshot of up to 20 levels per side, then diffs. Each diff removes levels by their position in the previous book and adds or replaces levels by price.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;fastAssetCtxs&lt;/code&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;pac&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;sac&lt;/code&gt;&lt;/strong&gt; send prices and asset contexts for every market as base64-encoded raw DEFLATE. In Python that is &lt;code&gt;zlib.decompress(base64.b64decode(data), wbits=-15)&lt;/code&gt;. Plain &lt;code&gt;zlib&lt;/code&gt; or &lt;code&gt;gzip&lt;/code&gt; decoding fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;userFills&lt;/code&gt;&lt;/strong&gt; takes an optional &lt;code&gt;aggregateByTime&lt;/code&gt; to merge partial fills of one crossing order.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What are the Hyperliquid WebSocket limits?
&lt;/h2&gt;

&lt;p&gt;These limits apply per IP address (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/rate-limits-and-user-limits" rel="noopener noreferrer"&gt;rate limits and user limits&lt;/a&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;10 WebSocket connections at once.&lt;/li&gt;
&lt;li&gt;30 new connections per minute.&lt;/li&gt;
&lt;li&gt;1,000 subscriptions.&lt;/li&gt;
&lt;li&gt;10 unique users across all wallet subscriptions.&lt;/li&gt;
&lt;li&gt;2,000 messages sent to Hyperliquid per minute, across all connections.&lt;/li&gt;
&lt;li&gt;100 &lt;code&gt;post&lt;/code&gt; requests in flight at once.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The wallet limit shapes most designs. A copy-trading monitor, a wallet tracker or a leaderboard that follows 50 wallets cannot do it from one IP, because the socket stops at 10 users no matter how many subscriptions are left. REST calls share a separate budget of 1,200 weight per minute, which is what a backfill spends.&lt;/p&gt;

&lt;h2&gt;
  
  
  What goes wrong with the Hyperliquid WebSocket in production?
&lt;/h2&gt;

&lt;p&gt;Hyperliquid's docs tell automated users to expect the server to disconnect them "periodically and without announcement" and to reconnect on their own (&lt;a href="https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket" rel="noopener noreferrer"&gt;WebSocket&lt;/a&gt;). A client that runs for days has to handle four things.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reconnects.&lt;/strong&gt; Detect the close, reconnect with backoff, and send every subscription again. Stay under the cap of 30 new connections a minute, which a tight reconnect loop can hit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Snapshots on resubscribe.&lt;/strong&gt; For time series feeds such as &lt;code&gt;userFills&lt;/code&gt;, the first message after a subscribe is a snapshot of earlier data tagged &lt;code&gt;isSnapshot: true&lt;/code&gt;. Hyperliquid's docs say it carries what you missed. It also repeats what you already have, so the handler has to skip duplicates. For trades, the unique key is block time, coin and &lt;code&gt;tid&lt;/code&gt; together.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gaps longer than the snapshot.&lt;/strong&gt; Anything else you missed comes from the matching info request, and the info endpoint has limits of its own. &lt;code&gt;userFillsByTime&lt;/code&gt; returns at most 2,000 fills per response and only the 10,000 most recent fills of a wallet. &lt;code&gt;candleSnapshot&lt;/code&gt; returns only the most recent 5,000 candles. If your client was offline for a day, a busy wallet can run past those limits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Book state.&lt;/strong&gt; On the &lt;code&gt;l2&lt;/code&gt; diff feed every update depends on the one before it. After any reconnect, drop your copy of the book and rebuild it from the new snapshot.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How do Hyperdash streams handle reconnects and gaps?
&lt;/h2&gt;

&lt;p&gt;Hyperdash streams build resume and gap detection into the protocol (&lt;a href="https://docs.hyperdash.com/data-api/streams" rel="noopener noreferrer"&gt;streams&lt;/a&gt;). Connect to &lt;code&gt;wss://data.hyperdash.com/v1/stream&lt;/code&gt; with your key in the &lt;code&gt;Authorization&lt;/code&gt; header (it needs the &lt;code&gt;streams:read&lt;/code&gt; scope). Wait for &lt;code&gt;ready&lt;/code&gt;, then subscribe:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"op"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"subscribe"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"channel"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"fills"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"address"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"0x..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"cursor"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;last cursor&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Events arrive in &lt;code&gt;data&lt;/code&gt; batches of up to 100, each with a &lt;code&gt;cursor&lt;/code&gt;. Process the batch, save the cursor, then send &lt;code&gt;{"op": "ack", "sub": ..., "batch": ...}&lt;/code&gt;. The next batch waits for that ack, and a batch left unacknowledged for 10 seconds ends the subscription with &lt;code&gt;ack_timeout&lt;/code&gt;. After a disconnect, subscribe again with your last cursor and the stream continues after the last batch you acknowledged. Events stay available for about 15 minutes, or about 5 minutes on &lt;code&gt;mids&lt;/code&gt; and &lt;code&gt;markets&lt;/code&gt;. If what you need is older, or was lost in an ingest outage, a &lt;code&gt;gap&lt;/code&gt; message names the missing range. You fill it from the matching REST endpoint, for example one wallet's fills over the last hour:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"https://data.hyperdash.com/v1/accounts/0xADDRESS/fills?start_time=$(( ($(date +%s) - 3600) * 1000 ))"&lt;/span&gt; -H &lt;span class="s2"&gt;"Authorization: Bearer $HYPERDASH_API_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each request covers up to 7 days, within your plan's history depth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live now:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Per-wallet:&lt;/strong&gt; &lt;code&gt;fills&lt;/code&gt;, &lt;code&gt;orders&lt;/code&gt; (open, fill, cancel, trigger and reject), &lt;code&gt;funding&lt;/code&gt;, &lt;code&gt;ledger&lt;/code&gt; and &lt;code&gt;twap&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Per-market:&lt;/strong&gt; &lt;code&gt;trades&lt;/code&gt; with taker and maker wallets, &lt;code&gt;book&lt;/code&gt; (full 20-level snapshots), &lt;code&gt;bbo&lt;/code&gt;, &lt;code&gt;ctx&lt;/code&gt; (mark, oracle, mid, funding rate, open interest and 24-hour volume), &lt;code&gt;liquidation-levels&lt;/code&gt; and &lt;code&gt;stop-levels&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Liquidations:&lt;/strong&gt; one market, or every market with &lt;code&gt;"coin": "*"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;All markets:&lt;/strong&gt; &lt;code&gt;mids&lt;/code&gt; and &lt;code&gt;markets&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Candles:&lt;/strong&gt; the &lt;code&gt;5m&lt;/code&gt; interval.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Not live yet:&lt;/strong&gt; the per-wallet &lt;code&gt;account&lt;/code&gt; (positions and margin) channel, and the &lt;code&gt;1m&lt;/code&gt;, &lt;code&gt;15m&lt;/code&gt;, &lt;code&gt;1h&lt;/code&gt;, &lt;code&gt;4h&lt;/code&gt; and &lt;code&gt;1d&lt;/code&gt; candle intervals. Subscribing to them returns &lt;code&gt;unavailable&lt;/code&gt; until Hyperdash switches them on. Until then, read positions from &lt;code&gt;GET /v1/accounts/{address}/positions&lt;/code&gt; and candles from the candles endpoint over REST.&lt;/p&gt;

&lt;p&gt;Each acknowledged event costs 1 credit, or 5 on &lt;code&gt;markets&lt;/code&gt;, and replays of events you already paid for cost nothing. A connection carries 20 subscriptions. Connections per workspace run from 2 on Hobby to 50 on Scale, and the &lt;code&gt;orders&lt;/code&gt; channel follows 3 wallets on Hobby up to 200 on Scale (&lt;a href="https://docs.hyperdash.com/data-api/plans" rel="noopener noreferrer"&gt;plans&lt;/a&gt;). Streams read Hyperdash's own nodes, so they do not use your IP's Hyperliquid connection or wallet limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hyperliquid WebSocket vs Hyperdash streams
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Hyperliquid WebSocket API and Hyperdash streams compared&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Hyperdash streams&lt;/th&gt;
&lt;th&gt;Hyperliquid WebSocket&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;URL&lt;/td&gt;
&lt;td&gt;&lt;code&gt;wss://data.hyperdash.com/v1/stream&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;wss://api.hyperliquid.xyz/ws&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Access&lt;/td&gt;
&lt;td&gt;API key, plans from $20 a month&lt;/td&gt;
&lt;td&gt;No key to read data, free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;1 credit per acknowledged event, 5 on &lt;code&gt;markets&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Connections&lt;/td&gt;
&lt;td&gt;2 to 50 per workspace, by plan&lt;/td&gt;
&lt;td&gt;10 per IP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wallet feeds&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;orders&lt;/code&gt; on 3 to 200 wallets, by plan&lt;/td&gt;
&lt;td&gt;10 unique users per IP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After a disconnect&lt;/td&gt;
&lt;td&gt;Resume from your cursor for about 15 minutes, 5 on &lt;code&gt;mids&lt;/code&gt; and &lt;code&gt;markets&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Snapshot on resubscribe, then info requests&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Missed data&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;gap&lt;/code&gt; message names the range&lt;/td&gt;
&lt;td&gt;Not flagged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Liquidations&lt;/td&gt;
&lt;td&gt;Per market or every market with &lt;code&gt;"coin": "*"&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Inside one wallet's fills and events&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live wallet positions&lt;/td&gt;
&lt;td&gt;Not live yet: use REST&lt;/td&gt;
&lt;td&gt;&lt;code&gt;clearinghouseState&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Hyperliquid's socket works well for a handful of wallets or markets on one server. When a stream feeds an app other people depend on, Hyperdash's cursors, acks and gap messages replace recovery code you would otherwise write and maintain. Teams that need a feed the public channels do not carry, such as L4 order book updates every block, can have it added to their plan by Hyperdash's integration team.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask your AI agent to build a Hyperliquid stream client
&lt;/h2&gt;

&lt;p&gt;Give an agent the Hyperdash docs and ask: "Write a Node client that streams one wallet's fills from Hyperdash, saves the cursor after each batch, and backfills any gap over REST."&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Connect the MCP server:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; works with Claude, ChatGPT, Claude Code, Codex or Cursor; setup takes about 2 minutes and you sign in with your Hyperdash account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Install the skills:&lt;/strong&gt; &lt;a href="https://docs.hyperdash.com/data-api/skills" rel="noopener noreferrer"&gt;Hyperdash skills&lt;/a&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask your agent:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/guides" rel="noopener noreferrer"&gt;Data API guides&lt;/a&gt; include &lt;a href="https://docs.hyperdash.com/data-api/guides/liquidations-feed" rel="noopener noreferrer"&gt;liquidations feed&lt;/a&gt;, &lt;a href="https://docs.hyperdash.com/data-api/guides/order-book" rel="noopener noreferrer"&gt;order book&lt;/a&gt; and &lt;a href="https://docs.hyperdash.com/data-api/guides/trader-analysis" rel="noopener noreferrer"&gt;trader analysis&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read the docs:&lt;/strong&gt; the &lt;a href="https://docs.hyperdash.com/data-api/overview" rel="noopener noreferrer"&gt;Data API docs&lt;/a&gt;, the &lt;a href="https://docs.hyperdash.com/data-api/streams" rel="noopener noreferrer"&gt;streams reference&lt;/a&gt;, and the &lt;a href="https://data.hyperdash.com/llms.txt" rel="noopener noreferrer"&gt;endpoint index&lt;/a&gt; for agents.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Further reading: &lt;a href="https://hyperdash.com/learn/hyperliquid-api-explained" rel="noopener noreferrer"&gt;Hyperliquid API Explained&lt;/a&gt; for the REST side, and the &lt;a href="https://hyperdash.com/learn/hyperliquid-order-book-api" rel="noopener noreferrer"&gt;Hyperliquid Order Book API&lt;/a&gt; for what book streams cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is the Hyperliquid WebSocket URL?&lt;/strong&gt; Mainnet is &lt;code&gt;wss://api.hyperliquid.xyz/ws&lt;/code&gt; and testnet is &lt;code&gt;wss://api.hyperliquid-testnet.xyz/ws&lt;/code&gt;. Hyperdash streams, with resume cursors and gap messages, are at &lt;code&gt;wss://data.hyperdash.com/v1/stream&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many WebSocket connections does Hyperliquid allow?&lt;/strong&gt; 10 connections per IP address, with at most 30 new connections a minute and 1,000 subscriptions in total. On Hyperdash, connections are counted per workspace instead, from 2 on Hobby to 50 on Scale, with 20 subscriptions each.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does my Hyperliquid WebSocket disconnect after 60 seconds?&lt;/strong&gt; The server closes a connection it has not sent a message to in 60 seconds. On quiet feeds, send &lt;code&gt;{"method": "ping"}&lt;/code&gt; regularly. Hyperdash streams send their own &lt;code&gt;ping&lt;/code&gt; every 5 seconds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why is my Hyperliquid userFills subscription empty?&lt;/strong&gt; A common cause is subscribing with an agent wallet's address. Wallet feeds need the master account or sub-account address that holds the positions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I stream liquidations for every Hyperliquid market?&lt;/strong&gt; On Hyperdash, yes: subscribe to the &lt;code&gt;liquidations&lt;/code&gt; channel with &lt;code&gt;"coin": "*"&lt;/code&gt;, or with one coin. Hyperliquid's own socket reports liquidations inside a single wallet's fills and events.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I place orders over the Hyperliquid WebSocket?&lt;/strong&gt; Yes. Wrap a signed exchange action in a &lt;code&gt;post&lt;/code&gt; message with &lt;code&gt;"type": "action"&lt;/code&gt;, and the result returns on the &lt;code&gt;post&lt;/code&gt; channel under your request id.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started with Hyperdash
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://hyperdash.com/products/data/api" rel="noopener noreferrer"&gt;Create your Hyperdash account and get your first API key&lt;/a&gt;. Plans start at $20 a month.&lt;/li&gt;
&lt;li&gt;Connect the &lt;a href="https://docs.hyperdash.com/data-api/mcp" rel="noopener noreferrer"&gt;Hyperdash MCP server&lt;/a&gt; to Claude, ChatGPT, Claude Code, Codex or Cursor in about 2 minutes, with no API key.&lt;/li&gt;
&lt;li&gt;Make your first request with the &lt;a href="https://docs.hyperdash.com/data-api/quickstart" rel="noopener noreferrer"&gt;Quickstart&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Need full history, an SLA or Hyperliquid Peering in Tokyo or Frankfurt? &lt;a href="https://hyperdash.com/products/data/enterprise-solutions" rel="noopener noreferrer"&gt;Talk to the Hyperdash team&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>hyperliquid</category>
      <category>websocket</category>
      <category>api</category>
      <category>crypto</category>
    </item>
  </channel>
</rss>
