From 0f9cab4231740e00081861acdd65bd423eec3008 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 4 Jan 2026 14:35:16 +0100 Subject: [PATCH] chore: fix edge-case bug for empty pairlist --- freqtrade/util/migrations/migrate_wallet_history.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freqtrade/util/migrations/migrate_wallet_history.py b/freqtrade/util/migrations/migrate_wallet_history.py index 371493ea7..502a3b887 100644 --- a/freqtrade/util/migrations/migrate_wallet_history.py +++ b/freqtrade/util/migrations/migrate_wallet_history.py @@ -64,6 +64,11 @@ def _migrate_wallet_history(config: Config, exchange: Exchange, starting_balance x[col] = x["open"] dfs.append(x[[col]]) + if not dfs: + logger.warning( + "No OHLCV data available for the trading pairs; skipping wallet history migration." + ) + return merged = pd.concat(dfs, axis=1) balance_dist = balance_dist.join(merged, how="left")