Overview
Hyperliquid is a high-performance on-chain perpetuals DEX on its own L1, settling in USDC (perps) and USDH (HIP-4 outcomes). This skill lets you trade perps & spot on the default DEX (BTC / ETH / SOL / 230+ crypto perps), HIP-3 builder DEXs (xyz / flx / vntl / cash / km / etc. - RWAs like WTI Crude, GOLD, NVDA, TSLA, SP500, EUR/JPY, each with its OWN clearinghouse), AND HIP-4 outcome markets (binary YES/NO prediction contracts on real-world events, fully collateralized in USDH, no leverage / no liquidation, automatic settlement).
Prerequisites
- onchainos CLI installed and logged in
- USDC on Arbitrum (chain 42161) to deposit into Hyperliquid (default DEX bridge)
- A small amount of ETH on Arbitrum for gas
- For HIP-3 (RWA / equity / commodity trading): additional
dex-transferto move USDC into the target builder DEX (each one has its own clearinghouse) - For HIP-4 (outcome / prediction markets):
usdh-fundto swap USDC for USDH on the spot pair (HL spot orders enforce a $10 minimum, including outcome orders)
Quick Start
- Check your current state and get a guided next step:
hyperliquid-plugin quickstart - If you see
status: no_funds/low_balance- get your deposit address and top up USDC on Arbitrum:hyperliquid-plugin address - If you see
status: needs_deposit- bridge Arbitrum USDC into Hyperliquid (arrives in 2-5 min):hyperliquid-plugin deposit --amount 50 --confirm - One-time: bind your signing address so orders can be signed:
hyperliquid-plugin register - If you see
status: ready- place a perp order on the default DEX, fund a HIP-3 builder DEX for RWAs, OR fund USDH for HIP-4 outcomes:hyperliquid-plugin order --coin BTC --side buy --size 0.001 --leverage 5 --confirmORhyperliquid-plugin dex-transfer --to-dex xyz --amount 5 --confirm(then tradexyz:CL/xyz:NVDA/ etc.) ORhyperliquid-plugin transfer --amount 12 --direction perp-to-spot --confirm->hyperliquid-plugin usdh-fund --amount 11 --confirm(thenoutcome-listto see what to bet on) - If you see
status: activeorstatus: has_builder_dex_position- review positions (pass--dex xyzfor builder DEX positions) and attach stop-loss / take-profit:hyperliquid-plugin positions --dex xyz->hyperliquid-plugin tpsl --coin xyz:CL --sl-px 95 --tp-px 130 --confirm - If you see
status: has_outcome_position- review HIP-4 outcome holdings; settlement is AUTOMATIC at expiry (no claim/redeem needed), but you can sell early to lock in P&L:hyperliquid-plugin outcome-positions->hyperliquid-plugin outcome-sell --outcome <id> --side <yes|no> --shares N --price 0.001 --tif Ioc --confirm(closes at touch) - Close a perp position:
hyperliquid-plugin close --coin xyz:CL --confirm(works for both default and builder DEX coins via thedex:symbolprefix) - Withdraw USDC:
hyperliquid-plugin dex-transfer --from-dex xyz --amount 5 --confirm(back to default DEX) ->hyperliquid-plugin withdraw --amount 50 --confirm(default DEX -> Arbitrum)