Add reason when stopping bot
This commit is contained in:
@@ -1889,9 +1889,10 @@ public class TradingBotBase : ITradingBot
|
||||
/// <summary>
|
||||
/// Handles bot stopping and notifies platform summary
|
||||
/// </summary>
|
||||
public async Task StopBot()
|
||||
public async Task StopBot(string reason = null)
|
||||
{
|
||||
await LogInformation($"🛑 Bot Stopped\nBot: `{Config.Name}`\nTicker: `{Config.Ticker}`");
|
||||
await LogInformation(
|
||||
$"🛑 Bot Stopped\nBot: `{Config.Name}`\nTicker: `{Config.Ticker}`\nReason: `{reason ?? "No reason provided"}`");
|
||||
}
|
||||
|
||||
public async Task LogInformation(string message)
|
||||
|
||||
Reference in New Issue
Block a user