Skip to content

Commit 81a5d49

Browse files
committed
fix: list-data --trades no longer working when used with --pairs filter
1 parent 321b44b commit 81a5d49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

freqtrade/commands/data_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ def start_list_trades_data(args: dict[str, Any]) -> None:
198198
)
199199

200200
if args["pairs"]:
201-
pl = expand_pairlist(args["pairs"], [p[0] for p in paircombs], keep_invalid=True)
202-
paircombs = [comb for comb in paircombs if comb[0] in pl]
201+
pl = expand_pairlist(args["pairs"], [p for p in paircombs], keep_invalid=True)
202+
paircombs = [comb for comb in paircombs if comb in pl]
203203

204204
title = f"Found trades data for {len(paircombs)} {plural(len(paircombs), 'pair')}."
205205
if not config.get("show_timerange"):

0 commit comments

Comments
 (0)