Fix grain price fetcher

This commit is contained in:
2025-09-14 15:49:49 +07:00
parent cb98e91a02
commit bac93199c0
11 changed files with 129 additions and 208 deletions

View File

@@ -122,8 +122,8 @@ public class TradingBotBase : ITradingBot
await ServiceScopeHelpers.WithScopedService<IExchangeService>(_scopeFactory, async exchangeService =>
{
var candles = await exchangeService.GetCandlesInflux(Account.Exchange, Config.Ticker, PreloadSince,
Config.Timeframe, DateTime.UtcNow, 2);
LastCandle = candles.Last();
Config.Timeframe, DateTime.UtcNow, 1);
LastCandle = candles.Single();
});
}