openfin-hyperliquid

Installation
SKILL.md

Hyperliquid Perps & Spot

Reply format (READ BEFORE GENERATING ANY USER REPLY). Hyperliquid USDC is one balance. Compute and present:

snapshot       = GET /agent/trading/account   # returns the unified envelope
totalUSDC      = snapshot.clearinghouseState.withdrawable
               + (snapshot.spotClearinghouseState.balances.find(b => b.coin === 'USDC')?.total ?? 0)
lockedInOrders = snapshot.spotClearinghouseState.balances.find(b => b.coin === 'USDC')?.hold ?? 0

✅ "Your Hyperliquid balance: $16.76 USDC ($13.38 free, $3.39 locked in open orders). Other tokens: 0.0000099127 UBTC (~$0.78). No open perp positions."

❌ "Perp withdrawable: $0 / Spot USDC: $16.76 (3.387 reserved by open spot orders)" — leaks API plumbing. Don't write this.

Related skills

More from openfinance-tech/skills

Installs
32
GitHub Stars
2
First Seen
12 days ago