fix: add total_quote to migration

This commit is contained in:
Matthias
2026-01-18 14:08:08 +01:00
parent 50fd6d152e
commit 5a847665ff
@@ -103,6 +103,7 @@ def _migrate_wallet_history(config: Config, exchange: Exchange, starting_balance
currency=stake_currency,
rate=1.0, # Stake currency price is always 1.0
balance=stake_balance,
total_quote=stake_balance,
quote_currency=stake_currency,
leverage=1.0,
bot_managed=True,
@@ -126,8 +127,11 @@ def _migrate_wallet_history(config: Config, exchange: Exchange, starting_balance
rate=rate,
quote_currency=stake_currency,
balance=balance_value,
total_quote=balance_value * rate if rate else None,
leverage=leverage_value if not pd.isna(leverage_value) else 1.0,
bot_managed=True,
# total_position_value=total_position_value,
# collateral=collateral,
)
)