Enhance UI, add AI integration, improve logging and database stats
This commit is contained in:
@@ -18,7 +18,7 @@ public class MarketHistoryWorker : BackgroundService
|
||||
private readonly ILogger<MarketHistoryWorker> _logger;
|
||||
|
||||
private const int CooldownHours = 6;
|
||||
private const int MarketsPerCycle = 10;
|
||||
private const int MarketsPerCycle = 50;
|
||||
private const int TradesPerFetch = 100;
|
||||
|
||||
public MarketHistoryWorker(IServiceProvider services, ILogger<MarketHistoryWorker> logger)
|
||||
@@ -64,7 +64,7 @@ public class MarketHistoryWorker : BackgroundService
|
||||
using var platformCtx = PlatformLogContext.Push(provider.PlatformName);
|
||||
await rateLimiter.WaitAsync(market.Platform, stoppingToken);
|
||||
|
||||
var trades = await provider.GetMarketTradesAsync(market.PlatformMarketId, TradesPerFetch, stoppingToken);
|
||||
var trades = await provider.GetMarketTradesAsync(market.ConditionId, TradesPerFetch, stoppingToken);
|
||||
|
||||
// Extract unique wallet addresses from TransientWallet [NotMapped].
|
||||
// Providers set this during in-memory mapping; it is NOT stored in the DB.
|
||||
|
||||
Reference in New Issue
Block a user