From 0e82c0458a9aab933245959a26f81a88a4e15d4c Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 2 Jan 2026 10:21:42 +0100 Subject: [PATCH] feat: improve output of list-exchanges --- freqtrade/exchange/exchange_utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/freqtrade/exchange/exchange_utils.py b/freqtrade/exchange/exchange_utils.py index 3b7ba9005..3b6488b29 100644 --- a/freqtrade/exchange/exchange_utils.py +++ b/freqtrade/exchange/exchange_utils.py @@ -82,22 +82,22 @@ def validate_exchange(exchange: str) -> tuple[bool, str, ccxt.Exchange | None]: return False, "", None result = True - reason = "" + reasons = [] missing = _exchange_has_helper(ex_mod, EXCHANGE_HAS_REQUIRED) if missing: result = False - reason += f"missing: {', '.join(missing)}" + reasons.append(f"missing: {', '.join(missing)}") missing_opt = _exchange_has_helper(ex_mod, EXCHANGE_HAS_OPTIONAL) if exchange.lower() in BAD_EXCHANGES: result = False - reason = BAD_EXCHANGES.get(exchange.lower(), "") + reasons.append(BAD_EXCHANGES.get(exchange.lower(), "")) if missing_opt: - reason += f"{'. ' if reason else ''}missing opt: {', '.join(missing_opt)}. " + reasons.append(f"missing opt: {', '.join(missing_opt)}") - return result, reason, ex_mod + return result, "; ".join(reasons), ex_mod def _build_exchange_list_entry(