Skill metadata
Reference: full SKILL.md
The following is the complete skill definition that Mibyan loads when this skill is triggered. This is what the agent sees as instructions when the skill is active.
Hyperliquid Skill
Query Hyperliquid market and account data through the public/info endpoint.
Read-only — no API key, no signing, no order placement.
12 commands: dexs, markets, spots, candles, funding, l2, state,
spot-balances, fills, orders, review, export. Stdlib only
(urllib, json, argparse).
When to Use
- User asks for Hyperliquid perp or spot market data, candles, funding, or L2 book
- User wants to inspect a wallet’s perp positions, spot balances, fills, or orders
- User wants a post-trade review combining recent fills with market context
- User wants to inspect builder-deployed perp dexs or HIP-3 markets
- User wants a normalized JSON export of candles + funding for backtesting prep
Prerequisites
Stdlib only — no external packages, no API key. The script reads${mibyan_HOME:-~/.mibyan}/.env for two optional defaults:
HYPERLIQUID_API_URL— defaults tohttps://api.hyperliquid.xyz. Set tohttps://api.hyperliquid-testnet.xyzfor testnet.HYPERLIQUID_USER_ADDRESS— default address forstate,spot-balances,fills,orders, andreview. If unset, pass the address as the first positional argument.
.env in the current working directory is honored as a dev fallback.
Helper script: ~/.mibyan/skills/blockchain/hyperliquid/scripts/hyperliquid_client.py
How to Run
Invoke through theterminal tool:
--json to any command for machine-readable output.
Quick Reference
state, spot-balances, fills, orders, and review, the address is
optional when HYPERLIQUID_USER_ADDRESS is set in ${mibyan_HOME:-~/.mibyan}/.env.
Procedure
1. Discover DEXs and Markets
--dexonly applies to perp endpoints; omit for the first perp dex.- Spot pairs may show as
PURR/USDCor aliases like@107. - HIP-3 markets prefix the coin with the dex, e.g.
mydex:BTC.
2. Pull Historical Market Data
startTime or use export (below).
3. Inspect Live Order Book
4. Review an Account
state returns perp positions; spot-balances returns spot inventory.
Use these for “how are my positions?”, “what am I holding?”, “how much is
withdrawable?“.
5. Review Fills and Orders
6. Generate a Trade Review
review to find problem coins
or windows → pull fills and orders for that period → pull candles
and funding for each traded coin → judge decision quality separately
from outcome quality.
7. Export a Reusable Dataset
--end-time-ms for reproducible windows.
Pitfalls
- Public info endpoints are rate-limited. Large historical queries may
return capped windows; iterate with later
startTimevalues. fills --hours ...usesuserFillsByTime, which only exposes a recent rolling window — not full archive history.historicalOrdersreturns recent orders only; not a full export.- The
reviewcommand is heuristic. It cannot reconstruct intent, order placement quality, or true slippage from fills alone. - The
exportcommand writes a normalized dataset, not a backtest engine. You still need your own slippage/fill model. - Spot aliases like
@107are valid identifiers even when the UI shows a friendlier name. l2is a point-in-time snapshot, not a time series.

