Gmx V2 Prices (#8)

* Update prices api

* Update worker services in Program.cs
This commit is contained in:
Oda
2025-02-03 16:33:41 +07:00
committed by GitHub
parent 17114ac787
commit ff0433c349
9 changed files with 126 additions and 36 deletions

View File

@@ -22,7 +22,7 @@ public abstract class PricesBaseWorker<T> : BaseWorker<T> where T : class
logger,
delay,
workerService
)
)
{
_pricesService = pricesService;
_statisticService = statisticService;
@@ -31,11 +31,11 @@ public abstract class PricesBaseWorker<T> : BaseWorker<T> where T : class
protected override async Task Run(CancellationToken cancellationToken)
{
var tickers = _statisticService.GetTickers();
var tickers = await _statisticService.GetTickers();
foreach (var ticker in tickers)
{
await _pricesService.UpdatePrice(TradingExchanges.Evm, ticker, _timeframe);
}
}
}
}