Add tracking for analyzed traders and add crawling configuration to appsettings.json

This commit is contained in:
Richard
2026-07-07 09:45:51 +02:00
parent 2c7c643fdb
commit 910d25159a
8 changed files with 47 additions and 2 deletions
@@ -110,6 +110,12 @@ public class TraderAnalyticsWorker : BackgroundService
}
trader.LastAnalyzedAt = DateTime.UtcNow;
await traderRepo.UpdateAsync(trader, ct);
var statsService = traderScope.ServiceProvider.GetService<IPlatformStatisticsService>();
if (statsService != null)
{
statsService.TrackTradersAnalyzed(trader.Platform, 1);
}
}
if (activeJob != null && activeJob.TraderId == id)