mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
feat: show name, class name and eventually the replacement alias
This commit is contained in:
parent
7cab973cbf
commit
fd9ec438dc
|
@ -46,14 +46,20 @@ def start_list_exchanges(args: Dict[str, Any]) -> None:
|
||||||
table = Table(title=title)
|
table = Table(title=title)
|
||||||
|
|
||||||
table.add_column("Exchange Name")
|
table.add_column("Exchange Name")
|
||||||
|
table.add_column("Class Name")
|
||||||
table.add_column("Markets")
|
table.add_column("Markets")
|
||||||
table.add_column("Reason")
|
table.add_column("Reason")
|
||||||
|
|
||||||
for exchange in available_exchanges:
|
for exchange in available_exchanges:
|
||||||
name = Text(exchange["classname"])
|
name = Text(exchange["name"])
|
||||||
if exchange["supported"]:
|
if exchange["supported"]:
|
||||||
name.append(" (Official)", style="italic")
|
name.append(" (Supported)", style="italic")
|
||||||
name.stylize("green bold")
|
name.stylize("green bold")
|
||||||
|
classname = Text(exchange["classname"])
|
||||||
|
if exchange["is_alias"]:
|
||||||
|
name.stylize("strike")
|
||||||
|
classname.stylize("strike")
|
||||||
|
classname.append(f" (use {exchange['alias_for']})", style="italic")
|
||||||
|
|
||||||
trade_modes = Text(
|
trade_modes = Text(
|
||||||
", ".join(
|
", ".join(
|
||||||
|
@ -68,6 +74,7 @@ def start_list_exchanges(args: Dict[str, Any]) -> None:
|
||||||
|
|
||||||
table.add_row(
|
table.add_row(
|
||||||
name,
|
name,
|
||||||
|
classname,
|
||||||
trade_modes,
|
trade_modes,
|
||||||
exchange["comment"],
|
exchange["comment"],
|
||||||
style=None if exchange["valid"] else "red",
|
style=None if exchange["valid"] else "red",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user