Community Examples by QuickNode — Not affiliated with Hyperliquid Foundation.
Runnable examples using the Hyperliquid SDK for trading on Hyperliquid.
| 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 |
# 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.pycd 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.tscd 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_ordercd go
# Set credentials
export PRIVATE_KEY="0x..."
export ENDPOINT="https://your-endpoint.hype-mainnet.quiknode.pro/YOUR_TOKEN"
# Run any example
go run ./market_orderEach 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)
- SDK Repository: https://github.com/quiknode-labs/hyperliquid-sdk
- SDK on PyPI: https://pypi.org/project/hyperliquid-sdk/
- SDK on npm: https://www.npmjs.com/package/@quicknode/hyperliquid-sdk
- SDK on crates.io: https://crates.io/crates/quicknode-hyperliquid-sdk
- Documentation: https://hyperliquidapi.com
- QuickNode Docs: https://www.quicknode.com/docs/hyperliquid
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.
MIT License