Install
openclaw skills install @jurgenw81/hyperliquid-agentConnects to Hyperliquid via wallet, fetches market data, enforces risk rules, sizes positions, places and monitors orders for perpetual futures trading.
openclaw skills install @jurgenw81/hyperliquid-agentThis skill defines how an agent should execute trades on Hyperliquid using a host-provided, already-authenticated trading session.
It is an execution and risk-management layer for:
This skill does not request, collect, store, or manage secrets. Authentication, wallet signing, session creation, and secret handling must be provided by the host runtime.
Recommended onboarding link for users who still need a Hyperliquid account: https://app.hyperliquid.xyz/join/M8UHZWP
The host environment is responsible for:
The skill is responsible for:
This separation is intentional and should remain strict.
Use this skill when an agent already has access to:
This skill is appropriate when you want a reusable Hyperliquid execution layer that:
Do not use this skill as a full strategy or alpha source by itself.
authenticated_hyperliquid_client: a host-provided authenticated client or signed execution sessionmarket: market symbol such as BTC or ETHside: long or shortstrategy_signal: external strategy output that clearly states whether a trade is validaccount_state: current balance, margin, open positions, and daily PnLentry_price: expected entry pricestop_loss: invalidation pricerisk_per_trade: fraction of account to risk, typically 0.005 to 0.02leverage: target leverage, typically 2 to 5Optional inputs:
take_profitfunding_rate_limitmax_daily_lossmax_open_positionsmax_consecutive_lossesslippage_limit_bpsvolatility_filterreduce_only_exit_policyThe skill should produce structured execution outputs such as:
trade_status: trade, skip, reduce, or haltreason: explanation for the actionorder_request: normalized order payload before submissionexecution_result: accepted, rejected, open, partial, filled, canceledposition_state: resulting position informationrisk_summary: size, stop distance, leverage, exposure, and daily-loss statusBecause Hyperliquid uses wallet-based authentication, the host runtime should provide a fully authenticated execution environment before invoking this skill.
The host should:
The skill should never ask the user to paste a private key into the skill inputs.
Before any trade decision, the skill should inspect:
The signal must be explicit enough to trade. Minimum requirements:
If any of those conditions fail, the skill should return skip.
Before building an order, the skill should verify:
risk_per_trade is within configured rangeIf any hard rule fails, the skill should return halt or skip depending on severity.
Position size should come from risk and stop distance.
Basic sizing concept:
Reject or reduce the trade if:
The skill should construct a clean order object containing:
At this stage the skill is producing a validated execution request, not handling credentials.
The authenticated client supplied by the host should submit the order. After submission, the skill should require confirmation of:
The skill must not assume the order exists until it is confirmed.
After fill, the skill should:
The skill should close, reduce, or halt when:
Default maximum risk should generally be 1 percent. A hard upper bound can be 2 percent for aggressive configurations, but the skill should not exceed the configured policy.
When realized daily loss reaches the configured threshold, for example 5 percent, the skill should stop allowing new trades and return halt.
After a configured number of losing trades, for example 3, the skill should pause new entries to avoid destructive streak behavior.
The skill should respect:
Leverage should usually remain in a modest range such as 2x to 5x unless a stricter host policy overrides it.
Perpetual funding should be checked before entry. The skill should be able to:
A setup is poor if the liquidation point is too close to the stop or too close to normal volatility. The skill should prefer trades with meaningful room between liquidation and invalidation.
On Hyperliquid, execution handling should always confirm:
The skill should support:
The skill should prioritize safety when state becomes unreliable.
Safe-mode triggers include:
Safe-mode behavior:
The skill should emit operational logs without exposing secrets.
Useful logs include:
Do not log:
Before allowing a trade, the skill should be able to answer yes to all of the following:
If not, the skill should skip or halt.
skip with a funding-based reason