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

@@ -159,9 +159,9 @@ public class StatisticService : IStatisticService
return _statisticRepository.GetTopVolumeTickers(from);
}
public IList<Ticker> GetTickers()
public async Task<IList<Ticker>> GetTickers()
{
return _evmManager.GetAvailableTicker().Result;
return await _evmManager.GetAvailableTicker();
}
public async Task UpdateSpotlight()
@@ -199,7 +199,7 @@ public class StatisticService : IStatisticService
await _statisticRepository.SaveSpotligthtOverview(overview);
}
var tickers = GetTickers();
var tickers = await GetTickers();
foreach (var scenario in scenarios)
{