From b39470554584f66ecf5b8d5a68ebee2448e01458 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 27 Dec 2025 20:10:19 +0100 Subject: [PATCH] fix: improve check tightness in hyperliquid hip3 config --- freqtrade/exchange/hyperliquid.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/freqtrade/exchange/hyperliquid.py b/freqtrade/exchange/hyperliquid.py index 1cd6110be..939dffd0b 100644 --- a/freqtrade/exchange/hyperliquid.py +++ b/freqtrade/exchange/hyperliquid.py @@ -65,11 +65,16 @@ class Hyperliquid(Exchange): def validate_config(self, config: dict) -> None: """Validate HIP-3 configuration at bot startup.""" super().validate_config(config) - if self.trading_mode != TradingMode.FUTURES: - return configured = self._get_configured_hip3_dexes() if not configured or not self.markets: return + if self.trading_mode != TradingMode.FUTURES: + if configured: + raise OperationalException( + "HIP-3 DEXes are only supported in FUTURES trading mode. " + "Please update your configuration!" + ) + return if configured and self.margin_mode != MarginMode.ISOLATED: raise OperationalException( "HIP-3 DEXes require 'isolated' margin mode. "