npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-hyperliquid

v0.2.1

Published

n8n community node for Hyperliquid DEX - place orders, manage positions, and query market data on the Hyperliquid perpetual exchange

Downloads

547

Readme

n8n-nodes-hyperliquid

This is an n8n community node for integrating with Hyperliquid DEX - a high-performance perpetual futures decentralized exchange.

Features

Order Operations

  • Place Market Order - Execute market orders with slippage protection
  • Place Limit Order - Place limit orders with GTC, IOC, or Post Only (ALO) time-in-force
  • Place Take Profit - Set take profit trigger orders
  • Place Stop Loss - Set stop loss trigger orders
  • Cancel Order - Cancel specific orders by ID
  • Cancel All Orders - Cancel all open orders
  • Get Open Orders - Retrieve all currently open orders
  • Get Order History - Retrieve historical fills/trades

Position Operations

  • Get Open Positions - View all current positions with PnL data
  • Update Leverage - Modify leverage and margin mode (cross/isolated)
  • Get Trade History - View historical trades

Account Operations

  • Get Balance - View account balance and withdrawable amount
  • Get Margin Summary - Detailed margin information

Market Data

  • Get All Prices - Fetch mid prices for all trading pairs
  • Get Asset Price - Get price for a specific asset
  • Get Asset Metadata - Asset specifications (decimals, max leverage)
  • Get Order Book - L2 order book data

Installation

In n8n

  1. Go to Settings > Community Nodes
  2. Select Install
  3. Enter n8n-nodes-hyperliquid
  4. Agree to the risks and click Install

Manual Installation

npm install n8n-nodes-hyperliquid

Credentials

This node requires Hyperliquid API credentials:

Wallet Types

  1. API Wallet (Recommended) - A delegated wallet that can only trade, not withdraw

    • Generate a new Ethereum keypair
    • Approve it as an agent in app.hyperliquid.xyz > API settings
    • Use the agent's private key with your master wallet address
  2. Main Wallet - Full access wallet (can trade and withdraw)

    • Use your main wallet's private key
    • Not recommended for automated systems

Configuration

  • Private Key: 64 hex characters with 0x prefix (encrypted at rest)
  • Master Address: Required for API wallets - the address that authorized the agent
  • Network: Mainnet or Testnet
  • Vault Address: Optional - for subaccount/vault trading

Security

  • Private keys are encrypted using AES-256-CBC before database storage
  • API wallets are recommended as they cannot withdraw funds
  • The node validates private key format before use
  • Uses EIP-712 typed data signing with chain ID 1337 to prevent replay attacks

API Reference

This node interacts with:

  • Exchange API (/exchange) - For trading operations (requires signing)
  • Info API (/info) - For querying data (no signing required)

Development

# Install dependencies
npm install

# Build
npm run build

# Development mode with watch
npm run dev

# Lint
npm run lint

Testing with n8n

export N8N_CUSTOM_EXTENSIONS="/path/to/n8n-nodes-hyperliquid"
n8n start

Resources

License

MIT