Skip to content

quiknode-labs/hyperliquid-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperliquid Examples

Community Examples by QuickNode — Not affiliated with Hyperliquid Foundation.

Runnable examples using the Hyperliquid SDK for trading on Hyperliquid.

Available Examples

Language Package Registry
Python hyperliquid-sdk PyPI
TypeScript @quicknode/hyperliquid-sdk npm
Rust quicknode-hyperliquid-sdk crates.io
Go github.com/quiknode-labs/hyperliquid-sdk/go GitHub

Quick Start

Python

# Install the SDK
pip install hyperliquid-sdk

# Set credentials
export PRIVATE_KEY="0x..."
export ENDPOINT="https://your-endpoint.hype-mainnet.quiknode.pro/YOUR_TOKEN"

# Run any example
cd python
python market_order.py

TypeScript

cd typescript

# Install dependencies
pnpm install

# Set credentials
export PRIVATE_KEY="0x..."
export ENDPOINT="https://your-endpoint.hype-mainnet.quiknode.pro/YOUR_TOKEN"

# Run any example
pnpm tsx market_order.ts

Rust

cd rust

# Set credentials
export PRIVATE_KEY="0x..."
export ENDPOINT="https://your-endpoint.hype-mainnet.quiknode.pro/YOUR_TOKEN"

# Run any example
cargo run --bin market_order

Go

cd go

# Set credentials
export PRIVATE_KEY="0x..."
export ENDPOINT="https://your-endpoint.hype-mainnet.quiknode.pro/YOUR_TOKEN"

# Run any example
go run ./market_order

Example Categories

Each language directory contains examples for:

  • Trading — Market orders, limit orders, order management
  • Info API — Market data, user positions, order book
  • HyperCore API — Block data, recent trades
  • HyperEVM — Ethereum JSON-RPC calls
  • Streaming — WebSocket and gRPC real-time data (L2/L4 order book)

Links

Disclaimer

These are unofficial community examples developed and maintained by QuickNode. They are not affiliated with, endorsed by, or associated with Hyperliquid Foundation or Hyperliquid Labs.

Use at your own risk. Always review transactions before signing.

License

MIT License