diff --git a/octobot/storage/trading_metadata.py b/octobot/storage/trading_metadata.py index 28a13c27d..6a907b2f2 100644 --- a/octobot/storage/trading_metadata.py +++ b/octobot/storage/trading_metadata.py @@ -237,11 +237,13 @@ async def _get_single_exchange_data(exchange_manager, trading_mode, run_start_ti backtesting_only_metadata = { common_enums.BacktestingMetadata.ID.value: run_dbs_identifier.backtesting_id, common_enums.BacktestingMetadata.OPTIMIZATION_CAMPAIGN.value: run_dbs_identifier.optimization_campaign_name, - common_enums.BacktestingMetadata.USER_INPUTS.value: formatted_user_inputs, - } if is_backtesting else {} + } if is_backtesting else { + common_enums.BacktestingMetadata.ID.value: run_dbs_identifier.live_id, + } return { **backtesting_only_metadata, **{ + common_enums.BacktestingMetadata.USER_INPUTS.value: formatted_user_inputs, common_enums.BacktestingMetadata.TIMESTAMP.value: run_start_time, common_enums.BacktestingMetadata.NAME.value: trading_mode.get_name(), common_enums.BacktestingMetadata.LEVERAGE.value: leverage,