Fix bot things
This commit is contained in:
@@ -210,6 +210,17 @@ namespace Managing.Application.ManageBot
|
||||
_botRepository.DeleteBotBackup(backupBotName);
|
||||
}
|
||||
|
||||
public void ToggleIsForWatchingOnly(string botName)
|
||||
{
|
||||
if (_botTasks.TryGetValue(botName, out var botWrapper))
|
||||
{
|
||||
if (botWrapper.BotInstance is ITradingBot bot)
|
||||
{
|
||||
bot.IsForWatchingOnly = !bot.IsForWatchingOnly;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public ITradingBot CreateScalpingBot(string accountName, MoneyManagement moneyManagement, string name,
|
||||
Enums.Ticker ticker, string scenario, Enums.Timeframe interval, bool isForWatchingOnly)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user