From d7e4965cdebca04c7254e0c658523901bb386c63 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 4 Nov 2025 07:21:43 +0100 Subject: [PATCH] feat: improve list-strategies command output --- freqtrade/commands/list_commands.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/freqtrade/commands/list_commands.py b/freqtrade/commands/list_commands.py index 4c066053a..8bd0930f1 100644 --- a/freqtrade/commands/list_commands.py +++ b/freqtrade/commands/list_commands.py @@ -101,7 +101,7 @@ def _print_objs_tabular(objs: list, print_colorized: bool) -> None: names = [s["name"] for s in objs] objs_to_print: list[dict[str, Text | str]] = [ { - "name": Text(s["name"] if s["name"] else "--"), + "Strategy name": Text(s["name"] if s["name"] else "--"), "location": s["location_rel"], "status": ( Text("LOAD FAILED", style="bold red") @@ -115,11 +115,18 @@ def _print_objs_tabular(objs: list, print_colorized: bool) -> None: ] for idx, s in enumerate(objs): if "hyperoptable" in s: + custom_params = [ + f"{space}: {len(params)}" + for space, params in s["hyperoptable"].items() + if space not in ["buy", "sell", "protection"] + ] objs_to_print[idx].update( { "hyperoptable": "Yes" if len(s["hyperoptable"]) > 0 else "No", "buy-Params": str(len(s["hyperoptable"].get("buy", []))), "sell-Params": str(len(s["hyperoptable"].get("sell", []))), + "protection-Params": str(len(s["hyperoptable"].get("protection", []))), + "custom-Params": ", ".join(custom_params) if custom_params else "", } ) table = Table()