Fix bot update with the tradingtype
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user