hyperliquid-monitor
Installation
SKILL.md
Hyperliquid monitor
Reconstruct current exchange state and distinguish safe, triggered, and unavailable observations.
Workflow
- Bind the network, user account address, account abstraction mode, DEX, markets, observation time, freshness bound, and requested condition.
- Read authoritative state. Query the account or subaccount being monitored, never the API wallet address.
- Reconcile positions, balances, open orders, trigger details, order status, fills, funding, ledger updates, fee tier, and action budget. Under unified or portfolio margin, include spot clearinghouse and borrow/lend state.
- Check every open position against protection and incidents. Match stop side, reduce-only state, trigger, size, and position-tied status.
- Normalize funding by its stated interval. Use
node scripts/funding.mjs --helpfor arithmetic. Preserve funding signs from the account's perspective. - For continuous work, use stream discipline. Snapshot first, deduplicate, heartbeat, detect gaps, and reconcile after reconnect.
- Evaluate the condition as exactly one of
triggered,not-triggered, orunavailable. A failed, empty, stale, partial, or gapped read is unavailable. - Emit the monitor contract. Alerts state facts and open a plan; they never act.