From 8269333d9cbcf63006b6a8cd898f4687946ef5ac Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 3 Nov 2025 19:59:28 +0100 Subject: [PATCH] feat: improve output wording --- freqtrade/optimize/hyperopt_tools.py | 3 ++- tests/commands/test_commands.py | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/freqtrade/optimize/hyperopt_tools.py b/freqtrade/optimize/hyperopt_tools.py index a112fc556..b2efec1aa 100644 --- a/freqtrade/optimize/hyperopt_tools.py +++ b/freqtrade/optimize/hyperopt_tools.py @@ -223,8 +223,9 @@ class HyperoptTools: spaces = ["buy", "sell", "protection", "roi", "stoploss", "trailing", "max_open_trades"] spaces += [s for s in all_spaces if s not in spaces] for space in spaces: + name = space.capitalize() if space != "roi" else space.upper() HyperoptTools._params_pretty_print( - params, space, f"{space.capitalize()} hyperspace params:", non_optimized + params, space, f"{name} parameters:", non_optimized ) @staticmethod diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index 5231d45a4..036352acf 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -1319,10 +1319,10 @@ def test_hyperopt_list(mocker, capsys, caplog, tmp_path): " 2/12", " 10/12", "Best result:", - "Buy hyperspace params", - "Sell hyperspace params", - "ROI table", - "Stoploss", + "Buy parameters", + "Sell parameters", + "ROI parameters", + "Stoploss parameters", ] ) assert all(