← 返回 Skills 市场
jarviyin

Hypii Hyperliquid Trader

作者 JIAWEI YIN · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
386
总下载
0
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install hypii-hyperliquid-trader
功能描述
Hypii AI Trading Agent for Hyperliquid perpetual futures. Automated trading strategies with SkillPay micropayment integration. Features: - DCA (Dollar Cost A...
使用说明 (SKILL.md)

🤖 Hypii Hyperliquid Trading Agent

AI-powered trading strategies for Hyperliquid perpetual futures with integrated SkillPay billing.

Features

  • 📊 Portfolio Management - View balances, positions, and P&L
  • 💰 Price Queries - Real-time price data for any coin
  • 📈 DCA Strategy - Automated dollar-cost averaging
  • 🔲 Grid Trading - Range-bound automated trading
  • 🤖 AI Signals - Trend analysis and trading signals
  • 🚀 Auto Trading - Execute trades directly through the agent

Pricing

Feature Price Description
Free Tier $0 5 calls per day (portfolio, price queries)
Basic Call 0.01 USDT Simple queries and data retrieval
Strategy 0.05 USDT DCA, Grid, Signal generation
Auto Trade 0.1 USDT Execute live trades
Pro Monthly 19.9 USDT Unlimited everything

Setup

Prerequisites

  1. Hyperliquid account with funds
  2. SkillPay API key (for billing)
  3. Private key (for trading operations)

Environment Variables

# Required for billing
export SKILLPAY_API_KEY="your_skillpay_api_key"

# For read-only operations
export HYPERLIQUID_ADDRESS="0x..."

# For trading operations
export HYPERLIQUID_PRIVATE_KEY="0x..."

# Optional: Use testnet
export HYPERLIQUID_TESTNET="1"

Installation

# Install dependencies
cd skills/hypii-hyperliquid-trader && npm install

# The skill will be automatically loaded by OpenClaw

Usage

Free Commands (5 per day)

# View portfolio
node index.js portfolio

# Get price
node index.js price BTC

Strategy Commands (0.05 USDT)

# Create DCA strategy
node index.js dca --coin BTC --amount 100 --frequency daily --orders 10

# Create Grid strategy
node index.js grid --coin ETH --lower 2000 --upper 3000 --grids 10 --investment 1000

# Get AI signal
node index.js signal BTC

Trading Commands (0.1 USDT + requires private key)

# Market buy
node index.js buy BTC 0.1

# Market sell
node index.js sell ETH 1.0

# Limit order
node index.js trade --coin BTC --side buy --size 0.1 --price 45000 --type limit

API Reference

Handler Input Format

{
  action: 'portfolio' | 'price' | 'dca' | 'grid' | 'signal' | 'trade' | 'buy' | 'sell',
  // Action-specific parameters
  coin: 'BTC',           // For price, signal, trade
  amount: 100,           // For DCA
  frequency: 'daily',    // For DCA: 'hourly', 'daily', 'weekly'
  totalOrders: 10,       // For DCA
  lowerPrice: 2000,      // For Grid
  upperPrice: 3000,      // For Grid
  grids: 10,             // For Grid
  totalInvestment: 1000, // For Grid
  side: 'buy',           // For trade: 'buy' | 'sell'
  size: 0.1,             // For trade
  orderType: 'market',   // For trade: 'market' | 'limit'
  price: 45000           // For limit orders
}

Response Format

{
  success: true,
  free: false,           // Whether this was a free call
  remaining: 3,          // Free calls remaining (if applicable)
  charged: 0.05,         // Amount charged in USDT
  data: { ... },         // Response data
  message: "..."         // Human-readable message
}

Safety Features

  • Slippage Protection - Market orders use 5% slippage protection
  • Position Sizing Warnings - Alerts for large positions (>20% of equity)
  • Price Validation - Warns if limit orders are >5% from market price
  • Free Tier - Try before you pay
  • Transparent Billing - Clear pricing before each operation

Architecture

┌─────────────────────────────────────────────────────────────┐
│  User Request                                                │
│     ↓                                                        │
│  ┌─────────────────┐                                         │
│  │ Billing Check   │ ← Free tier or SkillPay charge          │
│  └─────────────────┘                                         │
│     ↓                                                        │
│  ┌─────────────────────────────────────────────────────────┐│
│  │ Hypii Strategy Engine                                    ││
│  │  ├─ DCA Strategy                                         ││
│  │  ├─ Grid Strategy                                        ││
│  │  ├─ Trend Analysis                                       ││
│  │  └─ Risk Management                                      ││
│  └─────────────────────────────────────────────────────────┘│
│     ↓                                                        │
│  ┌─────────────────┐                                         │
│  │ Hyperliquid SDK │ ← Execute trades                       │
│  └─────────────────┘                                         │
│     ↓                                                        │
│  Response with billing info                                  │
└─────────────────────────────────────────────────────────────┘

Roadmap

  • Advanced AI models for signal generation
  • Backtesting engine
  • Multi-strategy portfolio management
  • Social trading features
  • Mobile app integration

Support

  • GitHub Issues: [Report bugs or request features]
  • Discord: [Join our community]
  • Email: [email protected]

License

MIT License - See LICENSE file for details

Disclaimer

Trading cryptocurrencies involves significant risk. This tool is for educational and automation purposes. Always do your own research and never trade more than you can afford to lose.

安全使用建议
This package implements a live trading agent and billing; do NOT run it with real private keys or real funds as-is. Specific actions to consider before installing or running: 1) Do not set HYPERLIQUID_PRIVATE_KEY, X402_PRIVATE_KEY, or SKILLPAY_API_KEY in a shell with real funds until you review and sanitize the code. 2) Inspect and remove or rotate any hard-coded private keys or addresses present in the repository — treat them as compromised. 3) Run everything first on a testnet with HYPERLIQUID_TESTNET=1 and with a throwaway wallet. 4) Avoid executing the scripts named execute-trade*.mjs, final-trade.mjs, or any test-*.mjs files unless you understand and control the wallet keys they use. 5) Confirm the payment recipient addresses (X402_RECIPIENT_ADDRESS) and SkillPay endpoints are what you expect; don’t pay until verified. 6) Prefer to provide private keys via secure vaults/secret managers and use read-only operations where possible. 7) If you are not comfortable auditing Node.js code, do not install this skill with funds under your control or ask a trusted developer/security reviewer to audit/clean the repo first.
功能分析
Type: OpenClaw Skill Name: hypii-hyperliquid-trader Version: 1.0.0 The skill bundle contains multiple scripts (e.g., execute-trade.mjs, trade-final.mjs, final-trade.mjs) with a hardcoded Ethereum private key (0xd6b7d8aa2934c7187372a877ad6856e80fce6b87119693d8fef83fcfbdc0b02e), which is a major security risk and indicates an uncleaned development environment. While the main entry point (index.js) correctly utilizes environment variables for user credentials and implements a legitimate-looking micropayment billing system (SkillPay/x402), the presence of numerous 'live trade' test scripts and explicit mentions of exposed keys in check-balance.mjs are highly irregular for a production-ready skill. No evidence of intentional exfiltration of the user's own HYPERLIQUID_PRIVATE_KEY was found, but the inclusion of hardcoded credentials and broad filesystem/network permissions makes the bundle high-risk.
能力评估
Purpose & Capability
The code implements trading (Hyperliquid SDK), billing (SkillPay and x402) and strategy logic which matches the description. However the registry metadata claims no required environment variables while SKILL.md and the code clearly expect HYPERLIQUID_PRIVATE_KEY, SKILLPAY_API_KEY, and optional X402_* variables. That mismatch (metadata vs runtime requirements) is an incoherence buyers should notice.
Instruction Scope
SKILL.md instructs users to export private keys and API keys and to run node index.js commands — those are expected for a trading agent. The problem: multiple repository scripts (execute-trade.mjs, execute-trade-v2.mjs, final-trade.mjs, test-fixed.mjs, etc.) contain hard-coded PRIVATE_KEY constants and addresses and will perform live trades if executed. These embedded scripts extend runtime behavior beyond what a user might expect from the documented CLI (they can execute real trades using repository-embedded keys).
Install Mechanism
There is no custom install step beyond 'npm install' and dependencies come from the public npm registry (axios, hyperliquid, viem). No remote download/extract URLs or unusual install mechanisms were observed.
Credentials
Requesting a Hyperliquid private key and a SkillPay / x402 API key is proportionate to a trading+billing skill. However: (1) the registry lists no required env vars while SKILL.md and code require them; (2) the repository contains hard-coded private key strings and fixed addresses in multiple files — embedding private keys in source is a major security red flag (leakage risk, unknown ownership of the keys, potential for funds to be moved).
Persistence & Privilege
The skill is not always-on and does not declare elevated platform privileges. It does perform billing and trade operations when invoked but does not modify other skills or agent configs. Note: autonomous invocation is allowed by default — combined with the other concerns this increases blast radius if the skill is given permission to act.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hypii-hyperliquid-trader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hypii-hyperliquid-trader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Hypii Hyperliquid Trading Agent. - AI-powered automated trading strategies for Hyperliquid perpetual futures - Supports DCA and Grid trading, AI-generated signals, and portfolio management - Integrated with SkillPay for transparent, micro-transaction billing - 5 free calls per day, with tiered pricing for additional features and Pro access - Slippage and position risk protections included for safer trading - Simple command-line and API usage with clear input and output formats
元数据
Slug hypii-hyperliquid-trader
版本 1.0.0
许可证
累计安装 4
当前安装数 4
历史版本数 1
常见问题

Hypii Hyperliquid Trader 是什么?

Hypii AI Trading Agent for Hyperliquid perpetual futures. Automated trading strategies with SkillPay micropayment integration. Features: - DCA (Dollar Cost A... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 386 次。

如何安装 Hypii Hyperliquid Trader?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hypii-hyperliquid-trader」即可一键安装,无需额外配置。

Hypii Hyperliquid Trader 是免费的吗?

是的,Hypii Hyperliquid Trader 完全免费(开源免费),可自由下载、安装和使用。

Hypii Hyperliquid Trader 支持哪些平台?

Hypii Hyperliquid Trader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Hypii Hyperliquid Trader?

由 JIAWEI YIN(@jarviyin)开发并维护,当前版本 v1.0.0。

💬 留言讨论