360 Secure SkillHub
360 安全技能中心

HypeLens Agent Rail

该 Skill 提供 Hyperliquid 永续合约的下单、撤单、平仓以及仓位和余额查询 MCP 工具,包含 agent 钱包创建与批准流程、按余额自动取整和仓位规模提示;默认使用测试网,可通过环境变量切换主网。

polyparlay
polyparlay
热度 21.43
最近更新 2026-09-06 23:44:57
分类:自动化依赖:MCP 服务 / 第三方 API / 代码执行应用场景:财务 / API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add hypelens-agent-rail
Metadata
name
hypelens-agent-rail
description
Place, cancel, close Hyperliquid perps orders from OpenClaw/MCP. Agent wallet once, auto-round, 1bp builder on fills (no sub). Use for hyperliquid place cancel close order perps — hl_place_order, hl_cancel_order, hl_close_position.
metadata
{"openclaw":{"emoji":"📈","requires":{"bins":["npx"]},"envVars":[{"name":"HYPELENS_NET","required":false,"description":"testnet (default) or mainnet"},{"name":"HYPELENS_AGENT_PK","required":false,"description":"agent-wallet pk required only to place/cancel/close"},{"name":"HYPELENS_FEED_URL","required":false,"description":"optional denser heat (advisory if unset — does not block place)"}]}}

HypeLens Agent Rail — Place / Cancel / Close Hyperliquid Perps

Place, cancel, and close Hyperliquid perps orders from OpenClaw/MCP. Agent wallet once, auto-round, 1bp (0.01%) on fills only — no subscription.

npx -y @hypelens/hypelens-agent-rail

ClawHub / OpenClaw: clawhub install hypelens-agent-rail · skills.sh: npx skills add polyparlay/hypelens

Quickstart (place-ready)

  1. Call hl_quickstart first
  2. hl_new_agent_wallet → store as HYPELENS_AGENT_PK
  3. hl_approve_payloads(agentAddress) → master signs approveAgent + ApproveBuilderFee 1bp once
  4. hl_place_order / hl_cancel_order / hl_close_position / hl_positions / hl_balances

First place (testnet): after approve, call hl_place_order with coin BTC, isBuy true, sizeUsd 12, leverage 2 — size/px auto-round; feed optional. Default net is testnet. Set HYPELENS_NET=mainnet for live. Missing intel feed is advisory — does not block place.

Sizing rule

Warn if notional sizeUsd is more than 20% of account equity. Size from balance; confirm mark before place.

Tools

  • Place path: hl_quickstart, hl_exchange_status, hl_place_order, hl_cancel_order, hl_close_position, hl_balances, hl_positions
  • Setup: hl_new_agent_wallet, hl_approve_payloads
  • Optional edge (after install): hl_walls, hl_whale_book, hl_cascade, hl_pretrade_check

Keywords

hyperliquid · place · cancel · close · order · perps · hl_place_order · mcp · openclaw · builder