Files
nofx/trader/hyperliquid
shinchan-zhai 7b1cff23bc fix: cancel orphaned stop/TP orders on position close + guard zero SL/TP prices
Critical bugs fixed:
- executeCloseLong/CloseShort: cancel stop-loss and take-profit orders BEFORE closing
  position to prevent orphaned orders from triggering and creating unintended positions
- emergencyClosePosition: same fix for drawdown monitor's emergency close path
- Skip SetStopLoss/SetTakeProfit when AI returns price=0 (prevents exchange API errors)

Also includes:
- Add agent.Stop() to graceful shutdown sequence in main.go
- Remove unused variable suppression in Hyperliquid trader
2026-03-25 01:05:54 +08:00
..