Update logs and cache marketinfo

This commit is contained in:
2025-04-29 20:23:20 +07:00
parent 74c448de30
commit 6736ef4558
3 changed files with 92 additions and 68 deletions

View File

@@ -553,7 +553,7 @@ public class TradingBot : Bot, ITradingBot
}
else
{
await LogWarning(
await LogInformation(
$"A position is already open for signal {previousSignal.Identifier}. Position flipping is currently not enable, the position will not be flipped.");
SetSignalStatus(signal.Identifier, SignalStatus.Expired);
}
@@ -876,8 +876,7 @@ public class TradingBot : Bot, ITradingBot
private async Task LogWarning(string message)
{
message = $"[{Name}][{Identifier}] {message}";
Logger.LogWarning(message);
message = $"[{Identifier}] {message}";
SentrySdk.CaptureException(new Exception(message));
await SendTradeMessage(message, true);
}