Fix bot update with the tradingtype

This commit is contained in:
2025-12-13 14:46:30 +07:00
parent e6cac0057b
commit c4e444347c
8 changed files with 12 additions and 3 deletions

View File

@@ -1015,6 +1015,7 @@ public class LiveTradingBotGrain : Grain, ILiveTradingBotGrain, IRemindable
Identifier = _state.State.Identifier,
Name = _state.State.Config.Name,
Ticker = _state.State.Config.Ticker,
TradingType = _state.State.Config.TradingType,
User = _state.State.User,
Status = status,
CreateDate = _state.State.CreateDate,
@@ -1073,6 +1074,7 @@ public class LiveTradingBotGrain : Grain, ILiveTradingBotGrain, IRemindable
Identifier = _state.State.Identifier,
Name = _state.State.Config.Name,
Ticker = _state.State.Config.Ticker,
TradingType = _state.State.Config.TradingType,
User = _state.State.User,
Status = status,
StartupTime = _state.State.StartupTime,

View File

@@ -374,7 +374,8 @@ namespace Managing.Application.ManageBot
|| existingBot.AccumulatedRunTimeSeconds != bot.AccumulatedRunTimeSeconds
|| existingBot.LastStartTime != bot.LastStartTime
|| existingBot.LastStopTime != bot.LastStopTime
|| existingBot.Ticker != bot.Ticker)
|| existingBot.Ticker != bot.Ticker
|| existingBot.TradingType != bot.TradingType)
{
_tradingBotLogger.LogInformation("Update bot statistics for bot {BotId}",
bot.Identifier);