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)
- Call
hl_quickstartfirst hl_new_agent_wallet→ store asHYPELENS_AGENT_PKhl_approve_payloads(agentAddress)→ master signs approveAgent + ApproveBuilderFee 1bp oncehl_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
