用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill hyperliquid命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | hyperliquid |
| description | Private key for trading (hex string starting with 0x) Use when this capability is needed. |
| metadata | {"author":"chrisling-dev"} |
Trade crypto perpetuals and HIP3 traditional assets (stocks, commodities) on Hyperliquid DEX from the command line.
This skill enables you to:
which hl
If not found, install it:
npm install -g hyperliquid-cli
hl --version
hl --help
To execute trades, you need a Hyperliquid API wallet:
0x)hl account add
# Follow the interactive prompts
or set the environment variable:
export HYPERLIQUID_PRIVATE_KEY=0x...your_private_key...
For best performance, start the background server before trading:
hl server start
hl server status # Verify it's running
The server provides:
Stop when done:
hl server stop
Hyperliquid's HIP3 enables trading traditional assets with crypto primitives:
# First, check available HIP3 markets and their coin values
hl markets ls
# Check Apple stock price (use the coin value from markets ls)
hl asset price xyz:AAPL
# Long 10 units of NVIDIA perp
hl order limit long 10 xyz:NVDA 140
# View order book for Gold
hl asset book xyz:GOLD
The background server dramatically improves performance:
| Operation | Without Server | With Server |
|---|---|---|
| Price Query | ~200ms | ~5ms |
| Order Placement | ~300ms | ~50ms |
| Position Fetch | ~250ms | ~10ms |
hl account add # Add new account (interactive)
hl account ls # List all accounts
hl account set-default # Change default account
hl account remove # Remove an account
hl account positions # View positions
hl account positions -w # Watch mode (real-time)
hl account orders # View open orders
hl account balances # View balances
hl account portfolio # Combined positions + balances
Important: Before placing any order, always run hl markets ls to identify the asset's coin value. Use this exact coin value when placing orders.
Order Directions:
buy and selllong and short# First, identify the coin value from markets
hl markets ls
# SPOT orders (buy/sell)
hl order limit buy 0.1 @107 30 # Buy spot asset where @107 is the coin
hl order limit sell 1 @107 50 --tif Gtc
hl order market buy 0.001 @107
hl order market sell 0.1 @107
# PERP orders (long/short)
hl order limit long 0.01 BTC 50000 # Long BTC perp
hl order limit short 0.05 ETH 3500
hl order market long 0.01 BTC
hl order market short 0.1 ETH --slippage 0.5
# Cancel orders
hl order cancel # Interactive selection
hl order cancel <oid> # Cancel specific order
hl order cancel-all # Cancel all orders
# Set leverage (perps only)
hl order set-leverage BTC 10
hl markets ls # List all markets
hl asset price BTC # Get price
hl asset price BTC -w # Watch price
hl asset book ETH # Order book
hl asset book ETH -w # Watch order book
hl asset leverage BTC # Get leverage and margin info
hl asset leverage BTC -w # Watch leverage and margin
hl server start # Start background server
hl server stop # Stop server
hl server status # Check server status
hl upgrade # Check for updates
| Option | Description |
|---|---|
--json | Output in JSON format (for scripting) |
--testnet | Use testnet instead of mainnet |
-h, --help | Show help |
When a user needs to set up trading, guide them through this process:
hl account ls to see if accounts existExample prompt to user:
To trade on Hyperliquid, you'll need an API wallet. Here's how to set it up:
- Go to https://app.hyperliquid.xyz/API
- Click "Create API Wallet" (you can name it anything)
- Copy the private key (starts with 0x)
- Run
hl account addand paste it when promptedWould you like me to walk you through this?
See reference.md for complete command documentation and examples.md for workflow examples.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.