Files
nofx/trader
ZhouYongyou 9e42aa153c fix(hyperliquid): prevent negative availableBalance calculation
- Add check to ensure availableBalance >= 0
- Log warning when calculated value is negative
- Prevent false "insufficient balance" errors for users with USDC

Root cause: Hyperliquid's TotalMarginUsed may exceed AccountValue
in certain position states, causing negative available balance.

Related issue: Users with USDC seeing "no money" errors despite
having sufficient balance on Hyperliquid.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 22:10:19 +08:00
..