Add MasterBot configuration properties to TradingBotBase and ensure MasterBotUserId preservation in RestartBotCommandHandler
- Introduced IsForCopyTrading, MasterBotIdentifier, and MasterBotUserId properties in TradingBotBase for enhanced bot configuration. - Updated RestartBotCommandHandler to preserve MasterBotUserId from the database bot configuration.
This commit is contained in:
@@ -2650,6 +2650,9 @@ public class TradingBotBase : ITradingBot
|
||||
UseForSignalFiltering = Config.UseForSignalFiltering,
|
||||
UseForDynamicStopLoss = Config.UseForDynamicStopLoss,
|
||||
RiskManagement = Config.RiskManagement,
|
||||
IsForCopyTrading = Config.IsForCopyTrading,
|
||||
MasterBotIdentifier = Config.MasterBotIdentifier,
|
||||
MasterBotUserId = Config.MasterBotUserId,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user