Agent skill

Hyperliquid

by TermiX-official in TermiX-official/cryptoclaw

Trade perpetual futures & spot on Hyperliquid DEX — market data, orders, positions, and vaults.

MITAuto-check passedBackend & APIs

Install Hyperliquid

skills CLI
$ npx skills add TermiX-official/cryptoclaw --skill hyperliquid -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TermiX-official/cryptoclaw hyperliquid --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TermiX-official/cryptoclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/hyperliquid .claude/skills/hyperliquid && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
hyperliquid
GitHub stars
100
Token cost
~2.7k tokens
SKILL.md length
924 words
Files
1
Skills in repo
33
Repo updated
First seen
Licence
MIT

At a glance

Trade perpetual futures & spot on Hyperliquid DEX — market data, orders, positions, and vaults.

  • Tasks that involve Stock and market analysis
  • SKILL.md covers Base URLs, Info Endpoints (POST /info), Exchange Endpoints (POST… and WebSocket Subscriptions, plus 2 more sections
  • Reaches api.hyperliquid.xyz and api.hyperliquid-testnet.xyz

What it does

Hyperliquid is an agent skill from TermiX-official/cryptoclaw. Trade perpetual futures & spot on Hyperliquid DEX — market data, orders, positions, and vaults.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Stock and market analysis. It works with Hyperliquid. The licence is MIT.

When your agent uses it

  • Tasks that involve Stock and market analysis

Example prompts

  • “/hyperliquid”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 9e1c91b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.hyperliquid.xyz
    • api.hyperliquid-testnet.xyz

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Hyperliquid loads about 2.7k tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 924 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TermiX-official/cryptoclaw at commit 9e1c91b, republished under its MIT licence (© TermiX-official). 924 words, ~2,737 tokens.

Download SKILL.mdSave it as .claude/skills/hyperliquid/SKILL.md (or your agent's skills folder).
name
hyperliquid
description
Trade perpetual futures & spot on Hyperliquid DEX — market data, orders, positions, and vaults.

Hyperliquid DEX

Trade perpetual futures and spot tokens on Hyperliquid — a high-performance DEX built on its own L1 chain. USDC is the primary collateral for perpetuals; the native token is HYPE.

Base URLs

Mainnet:

POST https://api.hyperliquid.xyz/info      # read-only queries
POST https://api.hyperliquid.xyz/exchange   # signed trading actions
WSS  wss://api.hyperliquid.xyz/ws           # real-time subscriptions

Testnet:

POST https://api.hyperliquid-testnet.xyz/info
POST https://api.hyperliquid-testnet.xyz/exchange
WSS  wss://api.hyperliquid-testnet.xyz/ws

All requests use POST with JSON body Content-Type: application/json.

Info Endpoints (POST /info)

Perpetual Metadata
json
{ "type": "meta" }

Returns universe array (coin name, szDecimals, maxLeverage) and margin tables.

Metadata + Market Context
json
{ "type": "metaAndAssetCtxs" }

Returns metadata plus per-asset context: mark price, funding rate, open interest, 24h volume.

All Mid Prices
json
{ "type": "allMids" }

Returns { "BTC": "62345.5", "ETH": "3012.1", ... } — mid prices for every listed asset.

Order Book (L2)
json
{ "type": "l2Book", "coin": "BTC", "nSigFigs": 5 }
  • nSigFigs: 2–5, controls price level grouping
  • Returns levels: [[{px, sz, n}]] for bids and asks (up to 20 levels per side)
Candles (OHLCV)
json
{
  "type": "candleSnapshot",
  "req": { "coin": "ETH", "interval": "1h", "startTime": 1700000000000, "endTime": 1700100000000 }
}

Intervals: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 1M

Returns: [{ t, T, s, i, o, c, h, l, v, n }] (open/close/high/low/volume).

Funding History
json
{ "type": "fundingHistory", "coin": "BTC", "startTime": 1700000000000 }

Returns array of { coin, fundingRate, premium, time }. Max 500 per query; paginate with last time.

User Account State (Perpetuals)
json
{ "type": "clearinghouseState", "user": "0x..." }

Returns: marginSummary (accountValue, totalMarginUsed, withdrawable), assetPositions array (coin, size, entryPx, unrealizedPnl, leverage, liquidationPx).

User Open Orders
json
{ "type": "openOrders", "user": "0x..." }

Returns array of { coin, side, limitPx, sz, oid, timestamp }.

User Fills
json
{ "type": "userFills", "user": "0x..." }

Returns array of { coin, px, sz, side, time, fee, oid, crossed }.

Order Status
json
{ "type": "orderStatus", "user": "0x...", "oid": 12345 }

Returns order details and current status (open, filled, cancelled).

Spot Metadata
json
{ "type": "spotMeta" }

Returns tokens array and universe (trading pairs with index, name, tokens).

Spot Metadata + Market Context
json
{ "type": "spotMetaAndAssetCtxs" }

Returns spot metadata plus per-pair context: mark price, mid price, 24h volume.

Spot Balances
json
{ "type": "spotClearinghouseState", "user": "0x..." }

Returns user's spot token balances.

Vault Details
json
{ "type": "vaultDetails", "vaultAddress": "0x..." }

Returns vault info: leader, followers, portfolio, APR, PnL history.

Exchange Endpoints (POST /exchange)

All exchange requests require EIP-712 signatures (see Authentication below).

Place Order
json
{
  "action": {
    "type": "order",
    "orders": [{
      "a": 0,
      "b": true,
      "p": "62000",
      "s": "0.01",
      "r": false,
      "t": { "limit": { "tif": "Gtc" } }
    }],
    "grouping": "na"
  },
  "nonce": 1700000000000,
  "signature": { ... }
}

Fields:

  • a: asset index (from meta universe)
  • b: true = buy/long, false = sell/short
  • p: price (string)
  • s: size in base asset (string)
  • r: reduce-only
  • t: order type — { "limit": { "tif": "Gtc" } }, { "limit": { "tif": "Ioc" } }, or { "limit": { "tif": "Alo" } }

Time-in-force: Gtc (Good-til-Cancel), Ioc (Immediate-or-Cancel), Alo (Add-Liquidity-Only / post-only).

Cancel Order
json
{
  "action": {
    "type": "cancel",
    "cancels": [{ "a": 0, "o": 12345 }]
  },
  "nonce": 1700000000000,
  "signature": { ... }
}
  • a: asset index, o: order ID
Modify Order
json
{
  "action": {
    "type": "batchModify",
    "modifies": [{
      "oid": 12345,
      "order": { "a": 0, "b": true, "p": "63000", "s": "0.01", "r": false, "t": { "limit": { "tif": "Gtc" } } }
    }]
  },
  "nonce": 1700000000000,
  "signature": { ... }
}
TWAP Order
json
{
  "action": {
    "type": "twapOrder",
    "twap": { "a": 0, "b": true, "s": "1.0", "r": false, "m": 10, "t": true }
  },
  "nonce": 1700000000000,
  "signature": { ... }
}
  • m: duration in minutes, t: randomize
Update Leverage
json
{
  "action": {
    "type": "updateLeverage",
    "asset": 0,
    "isCross": true,
    "leverage": 10
  },
  "nonce": 1700000000000,
  "signature": { ... }
}
Update Isolated Margin
json
{
  "action": {
    "type": "updateIsolatedMargin",
    "asset": 0,
    "isBuy": true,
    "ntli": 100
  },
  "nonce": 1700000000000,
  "signature": { ... }
}
  • ntli: signed integer, positive to add margin, negative to remove
Transfer (Spot <-> Perp)
json
{
  "action": {
    "type": "usdClassTransfer",
    "amount": "100",
    "toPerp": true
  },
  "nonce": 1700000000000,
  "signature": { ... }
}
Vault Deposit/Withdraw
json
{
  "action": {
    "type": "vaultTransfer",
    "vaultAddress": "0x...",
    "isDeposit": true,
    "usd": 1000000
  },
  "nonce": 1700000000000,
  "signature": { ... }
}
  • usd: amount in raw units (6 decimals, e.g. 1000000 = 1 USDC)

WebSocket Subscriptions

Connect to wss://api.hyperliquid.xyz/ws and send:

json
{ "method": "subscribe", "subscription": { "type": "<channel>", ... } }
Channels
ChannelParamsDescription
allMids—All mid prices (streaming)
tradescoinReal-time trades for a coin
l2BookcoinOrder book updates
candlecoin, intervalLive candle updates
userEventsuserFills, order updates, margin changes for a user
liquidation—Real-time liquidation feed

Limits per connection: max 1000 subscriptions, max 2000 messages/min sent.

Authentication

Exchange endpoints require EIP-712 typed data signatures.

  • Sign with the wallet private key (or an approved API wallet)
  • nonce: current timestamp in milliseconds — must be unique and increasing
  • signatureChainId: "0x66eee" for mainnet (chain ID 421614 hex), varies per environment
  • Two signing schemes: sign_l1_action (for trading) and sign_user_signed_action (for agent setup)

Strongly recommended: Use the official Python SDK (hyperliquid-python-sdk) or a community TypeScript SDK for signing. Manual EIP-712 construction is error-prone.

Rate Limits

  • Aggregate weight: 1200 per minute per IP
  • Exchange actions: weight = 1 + floor(batch_size / 40)
  • Info requests: weight 2–60 depending on endpoint
  • When rate limited: 1 request per 10 seconds until window resets
  • Open order limit: 1000 base + 1 per 5M USDC cumulative volume (max 5000)
Show full SKILL.md (383 more words)Show less

Asset Reference (Perpetuals)

Common tickers (asset index from meta universe):

TickerDescription
BTCBitcoin perpetual
ETHEthereum perpetual
SOLSolana perpetual
BNBBNB perpetual
ARBArbitrum perpetual
DOGEDogecoin perpetual
AVAXAvalanche perpetual
MATICPolygon perpetual
OPOptimism perpetual
APTAptos perpetual
SUISui perpetual
HYPEHyperliquid native token perpetual

For the full list and exact asset indices, query { "type": "meta" }.

Spot assets use index 10000 + spotIndex (from spotMeta universe).

Security Rules

  • ALWAYS show order details (side, size, price, leverage, estimated margin) before placing
  • ALWAYS confirm with the user before submitting any order or modifying leverage
  • NEVER place orders without explicit user approval
  • Warn if leverage exceeds 10x or position notional exceeds $10,000
  • Warn if the order book is thin (low liquidity at target price)
  • For large positions, suggest using TWAP orders to reduce market impact
  • Check clearinghouseState before orders to verify sufficient margin
  • Default to Gtc limit orders — avoid Ioc market orders unless user explicitly requests
  • Always display liquidation price after a position is opened

Example Interactions

User: "What's the current BTC price on Hyperliquid?" -> POST /info with { "type": "allMids" }, return BTC mid price

User: "Show me ETH order book" -> POST /info with { "type": "l2Book", "coin": "ETH", "nSigFigs": 5 } -> Display top 5 bid/ask levels with size

User: "Show my open positions" -> POST /info with { "type": "clearinghouseState", "user": "<active_wallet>" } -> Display positions table: coin, side, size, entry, unrealizedPnl, leverage, liqPx

User: "Long 0.1 BTC at $62,000 with 5x leverage" -> First set leverage: updateLeverage asset=BTC, leverage=5, isCross=true -> Then place order: buy 0.1 BTC @ $62,000 GTC -> Show order summary, ask for confirmation, then execute

User: "Cancel all my open orders" -> Query openOrders for user -> batch cancel all returned oids

User: "What's the funding rate for ETH?" -> POST /info with { "type": "metaAndAssetCtxs" }, extract ETH funding from asset context

User: "Show me the 4h ETH chart" -> POST /info with { "type": "candleSnapshot", "req": { "coin": "ETH", "interval": "4h", ... } } -> Summarize recent candles: open, close, high, low, volume trend

User: "Transfer 500 USDC from spot to perp wallet" -> POST /exchange with usdClassTransfer, amount="500", toPerp=true

Usage Notes

  • All prices and sizes are strings in API requests/responses
  • Pagination: max 500 results per query; use last time as startTime for next page
  • Spot asset index = 10000 + index from spotMeta universe
  • Testnet is recommended for development and testing
  • Report data source: "Hyperliquid API, fetched just now"

© TermiX-official, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/hyperliquid of TermiX-official/cryptoclaw.

Open the folder on GitHubat commit 9e1c91b

Compare with similar skills

Hyperliquid next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Hyperliquid compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hyperliquid this skillTermiX-official/cryptoclaw100—~2.7kAutomated safety check: PassMIT
BankrBankrBot/skills1.2k—~5.3kAutomated safety check: PassNone
Web3 PolymarketPolymarket/agent-skills1912 repos~2kAutomated safety check: PassNone
Deposit QrSuperior-Trade/superior-skills2141 repos~1.1kAutomated safety check: PassMIT
Binance Datatoollostleaf/binance-datatool148—~2.5kAutomated safety check: NotesBSD-3-Clause
Cryptofeed2025Emma/vibe-coding-cn23k1 repos~1.6kAutomated safety check: PassMIT

Similar skills

  • Bankr

    BankrBot/skills

    Bankr is an AI crypto agent with its own wallets, a direct Wallet API and a pay-as-you-go LLM gateway, driven by the bankr CLI or the REST API.

    1.2k GitHub stars~5.3k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Web3 Polymarket

    Polymarket/agent-skills

    Polymarket integration for prediction market trading on Polygon.

    191 GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • Deposit Qr

    Superior-Trade/superior-skills

    A skill your agent uses when a user needs a QR code or wallet payment URI to fund a Superior-managed EVM wallet on a specific chain before using Lighter, Polymarket, Hyperliquid, or other Superior…

    214 GitHub starsUsed in 1 repo~1.1k tokens
    Backend & APIsAuto-check passed
  • Binance Datatool

    lostleaf/binance-datatool

    Manage Binance historical market data from data.binance.vision using the binance-datatool CLI.

    148 GitHub stars~2.5k tokensUpdated 5 mo ago
    Backend & APIsAuto-check: notes
  • Cryptofeed

    2025Emma/vibe-coding-cn

    Cryptofeed - Real-time cryptocurrency market data feeds from 40+ exchanges.

    23k GitHub starsUsed in 1 repo~1.6k tokens
    Backend & APIsAuto-check passed
  • Polymarket

    2025Emma/vibe-coding-cn

    Comprehensive Polymarket skill covering prediction markets, API, trading, market data, and real-time WebSocket data streaming.

    23k GitHub starsUsed in 1 repo~1.6k tokens
    Backend & APIsAuto-check passed

More from TermiX-official/cryptoclaw

All 33 skills in this repo
  • Coding Agent

    TermiX-official/cryptoclaw

    Delegate coding tasks to Codex, Claude Code, or Pi agents via background process.

    100 GitHub starsUsed in 8 repos~2.7k tokens
    Auto-check passed
  • Prose

    TermiX-official/cryptoclaw

    OpenProse VM skill pack. An agent skill from TermiX-official/cryptoclaw.

    100 GitHub starsUsed in 3 repos~3.8k tokens
    Auto-check: notes
  • Merge PR

    TermiX-official/cryptoclaw

    Merge a GitHub PR via squash after /preparepr. An agent skill from TermiX-official/cryptoclaw.

    100 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Acp Router

    TermiX-official/cryptoclaw

    Route plain-language requests for Pi, Claude Code, Codex, OpenCode, Gemini CLI, or ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow).

    100 GitHub starsUsed in 2 repos~1.9k tokens
    Auto-check passed
  • Review PR

    TermiX-official/cryptoclaw

    Review-only GitHub pull request analysis with the gh CLI. An agent skill from TermiX-official/cryptoclaw.

    100 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Coingecko

    TermiX-official/cryptoclaw

    Query CoinGecko API for prices, market data, trending tokens, and historical charts.

    100 GitHub starsUsed in 1 repo~755 tokens
    Auto-check passed

Works with

Questions about Hyperliquid

What does Hyperliquid do?

Trade perpetual futures & spot on Hyperliquid DEX — market data, orders, positions, and vaults. Hyperliquid is an agent skill from TermiX-official/cryptoclaw. Trade perpetual futures & spot on Hyperliquid DEX — market data, orders, positions, and vaults.

When should I use Hyperliquid?

Hyperliquid fits situations like: tasks that involve Stock and market analysis.

How do I install Hyperliquid in Claude Code?

Run `npx skills add TermiX-official/cryptoclaw --skill hyperliquid -a claude-code`. Or copy the skill folder (skills/hyperliquid in TermiX-official/cryptoclaw) into .claude/skills/hyperliquid in your project. Claude Code loads it when a task matches its description.

How do I install Hyperliquid in Codex?

Run `npx skills add TermiX-official/cryptoclaw --skill hyperliquid -a codex`. Or copy the skill folder (skills/hyperliquid in TermiX-official/cryptoclaw) into .agents/skills/hyperliquid in your project. Codex loads it when a task matches its description.

Can I use Hyperliquid in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TermiX-official/cryptoclaw --skill hyperliquid -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hyperliquid, .gemini/skills/hyperliquid, .github/skills/hyperliquid and .opencode/skills/hyperliquid in your project.

What does Hyperliquid need to run?

SKILL.md names no scripts, command-line tools or credentials: Hyperliquid is instructions for the agent only. Our summary lists: Python 3.

Does Hyperliquid access the network?

SKILL.md names 2 domains. In commands or code: api.hyperliquid.xyz and api.hyperliquid-testnet.xyz; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Hyperliquid safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Hyperliquid use?

Hyperliquid is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Hyperliquid use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Hyperliquid?

Skills that share tags, products or a category with Hyperliquid: Bankr (BankrBot/skills, 1.2k stars), Web3 Polymarket (Polymarket/agent-skills, 191 stars), Deposit Qr (Superior-Trade/superior-skills, 214 stars) and Binance Datatool (lostleaf/binance-datatool, 148 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hyperliquid?

TermiX-official (a GitHub organization) maintains it in TermiX-official/cryptoclaw, which has 100 GitHub stars. The repository holds 33 skills in this directory. The repository was last updated on May 25, 2026.

Source: TermiX-official/cryptoclaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.