Simplify output

This commit is contained in:
Matthias 2024-07-06 11:42:40 +02:00
parent 7a67771e46
commit 6b98bfe9b7

View File

@ -57,11 +57,12 @@ def start_list_exchanges(args: Dict[str, Any]) -> None:
if args["list_exchanges_all"]:
exchanges = [build_entry(e, True) for e in exchanges]
print(f"All exchanges supported by the ccxt library ({len(exchanges)} exchanges):")
title = f"All exchanges supported by the ccxt library ({len(exchanges)} exchanges):"
else:
exchanges = [build_entry(e, False) for e in exchanges if e["valid"] is not False]
print(f"Exchanges available for Freqtrade ({len(exchanges)} exchanges):")
title = f"Exchanges available for Freqtrade ({len(exchanges)} exchanges):"
print(title)
print(
tabulate(
exchanges,