chore: fix edge-case bug for empty pairlist

This commit is contained in:
Matthias
2026-01-04 14:35:16 +01:00
parent 97e7939a30
commit 0f9cab4231
@@ -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")