Perp DEX Guide7 min readHyperliquidOKXGate

Hyperliquid Perp DEX AI Skills: Keyless L2 Data, API Wallets & Funding Scans

TL;DR

Hyperliquid leads on-chain perpetual orderbook liquidity with 1-hour funding settlements and completely keyless POST /info endpoints tailored for AI agents. Eight MIT-licensed skills cover Testnet setup, L2 depth and WebSocket feeds, trade-only Agent API Wallets, grouped TP/SL, TWAP execution, and cross-exchange funding scans.

Quick Install Starter Skill (hyperliquid-market-data)

Copy this prompt and send it to any AI coding assistant (Claude Code, Cursor, Windsurf, Codex, OpenClaw, etc.):

Please install hyperliquid-market-data following https://tradeskill.si/install/skillhub.en.md.

Hyperliquid 8 MIT Skills Architecture & Security Scope

Skill ModuleAuth RequirementCore Endpoints / SDKPrimary Agent Workflow
hyperliquid-market-data & websocketZero-auth (POST /info & WS)metaAndAssetCtxs / l2Book / allMidsL2 orderbook imbalance, 1h funding scans & OI tracking
hyperliquid-accountWallet address only (read-only)clearinghouseState / userFillsAudit perp margin, liquidation prices, fills & fee tiers
hyperliquid-setupTestnet / API Wallet setuphyperliquid-python-sdk / TS SDKInstall SDKs, toggle Testnet/Mainnet & bind trade-only key
hyperliquid-orders / positions / advancedLocal API Wallet signingexchange.order / update_leverage / twapTick/lot rounding, grouped TP/SL, scheduleCancel & HIP-3

1. Keyless Market Reads & Normalizing 1h vs 8h Funding Rates

Hyperliquid settles funding every hour, whereas OKX, Gate, Bitget, and Binance typically settle every 8 hours (or 4h on high-volatility pairs). Comparing raw rates directly misprices carry—agents must normalize every venue to an equivalent 8-hour rate and annualized APR alongside mark-price basis in bps.

Using the flagship tradeskill router inside 0xethanq/crypto-trading-skills, agents can run the bundled zero-dependency funding_scanner.py script to compare Hyperliquid and major CEX perpetual spreads in one call without API keys.

curl -sS -X POST https://api.hyperliquid.xyz/info -H "Content-Type: application/json" -d '{"type":"metaAndAssetCtxs"}'

2. Trade-Only Agent API Wallets & Testnet Guardrails

Never place a cold wallet or main withdrawal key into an agent environment. Hyperliquid enforces protocol-level Agent API Wallets that can sign /exchange orders and leverage updates while physically lacking withdrawal permissions.

  • Default to Testnet (https://api.hyperliquid-testnet.xyz) to validate 5-significant-figure price rounding, szDecimals truncation, and cloid reconciliation first.
  • Attach protective stop-loss brackets with grouping="normalTpsl" and consider scheduleCancel dead-man switches for unattended runs.
  • When hedging perp carry against a CEX leg, pair with a 20% fee-rebated sub-account on OKX, Gate, or Binance to keep two-sided execution friction low.
curl -fsSL https://tradeskill.si/install.sh | sh -s hyperliquid

Ready-to-Copy Agent Prompts

Scan Hyperliquid 1h Funding Rates Keylessly
Use hyperliquid-market-data to fetch the top 15 Hyperliquid perps by 24h volume and normalize their 1h funding rates into equivalent 8h rates and annualized APR.
Validate Trade-Only API Wallet on Testnet
Follow hyperliquid-setup and hyperliquid-orders to inspect Testnet connectivity, BTC tick/lot rounding rules, and grouped TP/SL parameters before placing any order.

Partner Exchanges & Fee Rebates for Live Bots

Create an isolated trading account with official fee rebates applied before live bot automation; existing accounts remain compatible with all skills.

OKX20% Rebate
Gate20% Rebate
Binance20% Rebate

Frequently Asked Questions

Do Hyperliquid market data and funding skills require a private key?

No. hyperliquid-market-data, hyperliquid-account, and hyperliquid-websocket rely purely on unsigned POST /info and public WebSocket feeds.

Can a Hyperliquid Agent API Wallet withdraw funds?

No. Hyperliquid Agent API Wallets are restricted at the protocol level to trading and position management only—they cannot initiate withdrawals or transfers.

How do I scan funding arbitrage spreads between Hyperliquid and OKX or Gate?

Install the flagship tradeskill meta-skill via npx skills add 0xethanq/crypto-trading-skills --skill tradeskill and run its keyless funding_scanner.py script across all venues.