private async Task <DataTable> SetupCoinData() { if (CoinData.Rows.Count == 0) { BinanceApi api = new BinanceApi(); coinprices = await api.GetPricesAsync(CancellationToken.None); // Grab all coin symbols _pricesArray = coinprices.ToArray().Where(o => o.Symbol == "BTCUSDT" || o.Symbol == "ETHBTC" || o.Symbol.EndsWith("ETH")); foreach (SymbolPrice price in _pricesArray) { DataRow row = CoinData.NewRow(); row[0] = price.Symbol; row[1] = DateTime.UtcNow; CoinData.Rows.Add(row); } } return(CoinData); }