protected override async Task GetTickersImpl() { if (Markets.Count() < 1) { return; } if (ticker24hrLastRun <= DateTime.Now) { await GetTickers24hr(); } else { await GetTickersAlt(); } }
protected override async Task GetTickersImpl() { if (Markets.Count() < 1) { return; } var resultTickers = await client.GetMarketSummariesAsync().ConfigureAwait(true); if (resultTickers.Success) { GetTickersElapsed = resultTickers.ElapsedMilliseconds; var tickers = resultTickers.Data.Select(ToPriceTicker); ProcessPriceTicker(tickers); UpdateStatus(ServerStatus); } else { UpdateStatus(ServerStatus, $"GetTickers: {resultTickers.Error.ToString()}"); } }