Merge workers into API

This commit is contained in:
2025-08-16 04:55:33 +07:00
parent 9841219e8b
commit d2975be0f5
22 changed files with 340 additions and 346 deletions

View File

@@ -39,7 +39,7 @@ public class PricesService : IPricesService
throw new Exception($"Enable to found account for exchange {exchange}");
var lastCandles =
await _candleRepository.GetCandles(exchange, ticker, timeframe, DateTime.UtcNow.AddDays(-2));
await _candleRepository.GetCandles(exchange, ticker, timeframe, DateTime.UtcNow.AddDays(-30), limit: 5);
var lastCandle = lastCandles.LastOrDefault();
var startDate = lastCandle != null ? lastCandle.Date : new DateTime(2017, 1, 1);