跳转至主要内容

Hyperliquid API Overview

更新于
2026年6月25日

Quicknode provides comprehensive API access to Hyperliquid's dual-layer architecture, supporting both HyperCore trading infrastructure and HyperEVM smart contract capabilities. Using your Hyperliquid endpoint, you can seamlessly access:

HyperCore APIs:


  • 信息端点 (/info path) - Query market data, user positions, trading history, vault analytics, and exchange state. 50 of 52 methods are natively supported on Quicknode's /info path. See the method availability table for the full list.
  • Data Streams - Real-time streaming of trades, orders, events, and blockchain data via high-performance gRPC and JSON-RPC/WebSocket APIs
  • REST API - Trading operations (build, sign, and send orders), builder fee approval management, market discovery (list markets, open orders, order status), and order validation via HTTP REST endpoints
  • JSON-RPC API (/hypercore(简体中文(大陆)) path) - Historical block queries, portfolio and clearinghouse state queries, order data, and WebSocket subscriptions for backfilling and batch processing

HyperEVM APIs:


  • Ethereum JSON-RPC API - Full compatibility with Ethereum tooling (Foundry, Hardhat, Web3 libraries)
  • Debug API - Advanced transaction tracing and debugging capabilities
  • Trace API - Detailed transaction analysis and monitoring tools
计划要求

访问 /hypercore(简体中文(大陆)) (JSON-RPC 和 WebSocket)以及 HyperCore gRPC 流式传输需要一个 Quicknode 构建方案或更高版本. 查看价格 进行升级。


REST API: If you are on a free trial plan, we provide a URL for you to use, but it is not specific to your Quicknode account. Please see hyperliquidapi.com for details and our Discord for support.

For detailed method documentation and implementation guides, refer to the specific API sections below.

支持的 SDK

Quicknode 维护着多种语言的 Hyperliquid 开源社区 SDK。这些 SDK 负责处理 HyperCore 交易操作和 HyperEVM 交互所需的交易构建、签名和提交。

社区 SDK

这些开源 SDK 由 Quicknode 开发和维护。它们以社区为导向,与 Hyperliquid Foundation 或 Hyperliquid Labs 既无隶属关系,也未获得其认可,更无任何关联。

可用的 SDK:

所有 SDK 均为开源软件,可在以下地址获取: GitHub. 这些 SDK 与 Quicknode 端点集成,用于访问 /info, /交易所, /evm, /nanoreth, /hypercore(简体中文(大陆)),以及 gRPC 流。无论是否使用 Quicknode 端点,均可使用这些功能。

有关 SDK 的详细文档、示例和设置指南,请参阅“SDK 和库”页面。

支持的 API

支持的网络

Quicknode 支持访问以下 Hyperliquid 网络:

主网
类型:制作
链 ID:
999
HTTP:
WSS:
存档:
修剪:参见下文注释*
测试网
类型:测试网
链 ID:
998
HTTP:
WSS:
存档:
修剪:参见下文注释*

*修剪政策:

/evm → 仅显示最近的数据。该 /evm endpoint 不提供归档访问功能——较旧的区块数据会定期被清理(大约每 12 小时一次)。针对超出保留时段的区块发出的请求将返回一个 块高度无效 错误。请使用 /nanoreth 用于历史查询。

/nanoreth → 支持跟踪功能的完整历史存档。包含所有调试和跟踪方法,以及 WebSocket 功能。

  • 主网:完整历史存档
  • 测试网:从区块 34112653 开始(非创世区块)

Learn more about Hyperliquid endpoints here

按网络划分的 API 可用性

API / 端点主网测试网
HyperCore 信息端点 (/info)
HyperCore 交易所 API (/hypercore/*)
HyperCore JSON-RPC/WSS (/hypercore)
gRPC 流式传输(端口 10000)
HyperEVM (/evm)
调试 API (/nanoreth)
Trace API (/nanoreth)

Query Indexed Hyperliquid Data with SQL Explorer

The APIs above provide live, on-demand access to Hyperliquid. For large-scale historical analysis, Quicknode also indexes HyperCore data into queryable tables you can analyze with standard SQL through SQL Explorer, removing the need to run your own indexer for dashboards, backtests, and research.

What you can query

SQL Explorer exposes pre-indexed Hyperliquid tables covering:

  • Trades and fills: executed trades, individual fills, realized PnL, and liquidations (hyperliquid_trades, hyperliquid_fills)
  • Orders: placements, cancellations, and status updates (超流体_订单)
  • Funding: funding payments and historical funding rates per coin (hyperliquid_funding, hyperliquid_funding_summary_hourly)
  • Markets: perpetual and spot market metadata, oracle prices, open interest, and market context (hyperliquid_perpetual_markets, hyperliquid_perpetual_market_contexts, hyperliquid_oracle_prices)
  • Portfolio and positions: clearinghouse state, spot balances, vault equity, sub-accounts, and delegation (hyperliquid_clearinghouse_states, hyperliquid_vault_equities)
  • Ledger and bridge: deposits, withdrawals, transfers, and L1 bridge activity (hyperliquid_asset_transfers, hyperliquid_ledger_updates, hyperliquid_bridge)
  • 建筑商: builder (frontend) transaction volume and fee distribution (hyperliquid_builder_fills, hyperliquid_builder_transactions)
  • Pre-aggregated analytics: hourly funding, liquidations, OHLCV, and platform-wide daily metrics (hyperliquid_metrics_overview, hyperliquid_liquidations_hourly)

Example: trading volume by coin over the last 24 hours

curl -X POST 'https://api.quicknode.com/sql/rest/v1/query' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"query": "SELECT coin, count() AS trades, sum(toFloat64(price) * toFloat64(size)) AS volume_usd FROM hyperliquid_trades WHERE timestamp > now() - INTERVAL 24 HOUR GROUP BY coin ORDER BY volume_usd DESC LIMIT 50",
"clusterId": "hyperliquid-core-mainnet"
}'

Queries run against the hyperliquid-core-mainnet cluster via the SQL Explorer REST API. See the Hyperliquid query library for 30+ ready-to-use queries, the schema reference for full table and column documentation, and the REST API guide for authentication and response formats.

SQL Explorer is one of several Quicknode products available for Hyperliquid. For real-time, event-driven data, Streams push HyperEVM activity to your own destinations and Webhooks deliver HTTP notifications for on-chain events. All supported products are listed below.

支持的产品

API Specifications (OpenRPC, OpenAPI)

分享此文档