From c892b07eef36a33081e6ea3096ba71ef61608b9b Mon Sep 17 00:00:00 2001 From: Ingo Date: Wed, 3 Dec 2025 06:22:44 +0100 Subject: [PATCH] compatible with HIP3 --- freqtrade/exchange/hyperliquid.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/freqtrade/exchange/hyperliquid.py b/freqtrade/exchange/hyperliquid.py index 49e9c11d0..c03c67d23 100644 --- a/freqtrade/exchange/hyperliquid.py +++ b/freqtrade/exchange/hyperliquid.py @@ -146,7 +146,15 @@ class Hyperliquid(Exchange): Override standard fetch_positions to add HIP-3 equity positions which are not returned by the standard CCXT fetch_positions call. """ - positions = super().fetch_positions(pair) + # Fetch standard positions directly from CCXT to avoid parameter issues + try: + if pair: + positions = self._api.fetch_positions([pair]) + else: + positions = self._api.fetch_positions() + except Exception as e: + logger.warning(f"Could not fetch standard positions: {e}") + positions = [] hip3_dexes = self._config.get("exchange", {}).get("hip3_dexes", []) if not hip3_dexes: