Python SDK

Build Hyperliquid trading applications with the official Python SDK. The Hyperliquid Python SDK provides comprehensive access to trading functionality, market data, and account management. Install the SDK:
pip install hyperliquid-python-sdk
Use the SDK to interact with your Chainstack Hyperliquid node:
from hyperliquid.info import Info
from hyperliquid.utils import constants

# Use your Chainstack endpoint
info = Info("YOUR_CHAINSTACK_ENDPOINT", skip_ws=True)
user_state = info.user_state("0xcd5051944f780a621ee62e39e493c489668acf4d")
print(user_state)

Rust SDK

For Rust developers, use the Hyperliquid Rust SDK to build high-performance trading applications. Install the SDK:
cargo add hyperliquid_rust_sdk

REST API

Interact with the Hyperliquid DEX through your Hyperliquid node using the REST API. See the complete Hyperliquid API reference for all available endpoints. Use your Chainstack Hyperliquid REST endpoint to access market data and execute trades through HTTP requests.

JSON-RPC API

Interact with the HyperEVM of Hyperliquid through your Hyperliquid node using the JSON-RPC API. See the complete Hyperliquid API reference for all available endpoints. Use your Chainstack Hyperliquid JSON-RPC endpoint to retrieve the EVM chain state of Hyperliquid.