← 返回
开发者工具 中文

Hyperliquid DEX Integration

Query Hyperliquid DEX for account balances, positions, PnL, and margin data via ClawdBot API
通过ClawdBot API查询Hyperliquid DEX的账户余额、持仓、盈亏及保证金数据。
chipagosfinest
开发者工具 clawhub v1.1.0 1 版本 99862.2 Key: 无需
★ 1
Stars
📥 1,429
下载
💾 13
安装
1
版本
#clawdbot#crypto#defi#derivatives#dex#hyperliquid#latest#margin-trading#perpetuals#portfolio#trading

概述

Hyperliquid DEX Integration

Query your Hyperliquid perpetuals account for real-time balances, open positions, unrealized PnL, and margin data.

ClawdBot Integration

This skill is designed for ClawdBot - it calls ClawdBot's internal API server which proxies requests to the official Hyperliquid API at https://api.hyperliquid.xyz.

Architecture:

User → ClawdBot Gateway → ClawdBot API Server → Hyperliquid Public API
                         (Railway)              (api.hyperliquid.xyz)

The ClawdBot API server handles:

  • Timeout protection (15s)
  • Response parsing and formatting
  • Default wallet address from env vars

Capabilities

  • Account Overview: Get total account value, free collateral, and margin usage
  • Position Tracking: View all open perpetual positions with size, direction, entry price
  • PnL Monitoring: Real-time unrealized PnL and return on equity per position
  • Risk Management: Liquidation prices and leverage info for each position
  • Multi-Wallet: Query any wallet address or use configured trading wallet

Environment Variables

VariableRequiredDescription
---------------------------------
TRADING_WALLET_ADDRESSNoDefault wallet address (0x format) to query when none provided

API Endpoint

ClawdBot Internal API:

POST {CLAWDBOT_API_URL}/api/hyperliquid/account

Upstream API (called by ClawdBot):

POST https://api.hyperliquid.xyz/info

Request (Optional Body)

{
  "walletAddress": "0x..."
}

If no wallet address provided, uses TRADING_WALLET_ADDRESS env var.

Response

{
  "timestamp": "2026-02-10T03:30:00.000Z",
  "walletAddress": "0x...",
  "account": {
    "accountValue": 10523.45,
    "totalPositionNotional": 25000.00,
    "freeCollateral": 5200.00,
    "totalMarginUsed": 5323.45
  },
  "positions": [
    {
      "coin": "ETH",
      "direction": "long",
      "size": 2.5,
      "entryPrice": 2450.00,
      "positionValue": 6250.00,
      "unrealizedPnl": 125.50,
      "returnOnEquity": 0.024,
      "leverage": { "type": "cross", "value": 5 },
      "liquidationPrice": 1850.00,
      "marginUsed": 1250.00
    }
  ],
  "positionCount": 1
}

Security Notes

  • Read-only: This skill only reads account data, no trading/signing capabilities
  • Public API: Uses Hyperliquid's public info API (no authentication required)
  • No private keys: Only wallet addresses (public) are used
  • Timeout protected: 15-second timeout prevents hanging requests

Example Usage

Check Account Balance

"What's my Hyperliquid balance?"
"Show my HL account value"

View Positions

"What positions do I have open on Hyperliquid?"
"Am I in profit on my perps?"
"What's my unrealized PnL?"

Risk Check

"What are my liquidation prices on Hyperliquid?"
"How much margin am I using?"
"What leverage am I running?"

Related

  • Hyperliquid Docs
  • ichimoku - Ichimoku Cloud trading signals
  • wallet-tracker - Monitor wallet balances across chains
  • crypto-tracker - Track crypto prices and portfolios

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-28 22:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,548
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,946
productivity

Language Learning Tutor

chipagosfinest
AI语言导师,通过对话、词汇练习、语法课程、抽认卡及沉浸式练习,助您学习任意语言。适用于学习新语言、练词汇、学语法、翻译、会话练习、旅行准备、习语俚语或改善发音。支持包括中、英、日、韩、法、德、西等在内的100多种语言。
★ 25 📥 8,677