diff --git a/src/Predictalytics.Worker/Services/TradeReconciliationWorker.cs b/src/Predictalytics.Worker/Services/TradeReconciliationWorker.cs index fbf5315..e79d97f 100644 --- a/src/Predictalytics.Worker/Services/TradeReconciliationWorker.cs +++ b/src/Predictalytics.Worker/Services/TradeReconciliationWorker.cs @@ -73,6 +73,7 @@ public class TradeReconciliationWorker : BackgroundService .Where(t => t.MarketOutcomeId == null && !string.IsNullOrEmpty(t.MarketId) && !db.Markets.Any(m => m.ConditionId == t.MarketId)) .Select(t => t.MarketId) .Distinct() + .OrderBy(x => x) .Take(50) // Limit to avoid rate limits .ToListAsync(ct);