public List <TickerInformation> GetTickers() { GetTickerResponse response = bitfinexClient.GetTickers(); List <TickerInformation> result = new List <TickerInformation>(); for (int index = 0; index < response.Count; index++) { GetTickersDetail detail = response[index]; /* * 0 - SYMBOL, * 1 - BID, * 2 - BID_SIZE, * 3 - ASK, * 4 - ASK_SIZE, * 5 - DAILY_CHANGE, * 6 - DAILY_CHANGE_PERC, * 7 - LAST_PRICE, * 8 - VOLUME, * 9 - HIGH, * 10 - LOW */ TickerInformation ticker = new TickerInformation() { Symbol = detail.Symbol, Ask = Convert.ToDouble(detail.Ask, CultureInfo.InvariantCulture), Bid = Convert.ToDouble(detail.Bid, CultureInfo.InvariantCulture), Last = Convert.ToDouble(detail.LastPrice, CultureInfo.InvariantCulture), Open = default,
public List <TickerInformation> GetTickers() { GetTickersResponse response = exmoClient.GetTickers(); List <TickerInformation> result = new List <TickerInformation>(); foreach (var ticket in response) { string key = ticket.Key; GetTickersDetail ti = ticket.Value; TickerInformation tickerInfo = new TickerInformation() { Symbol = key, Ask = ti.AskPrice, Bid = ti.BidPrice, Last = ti.Last, Open = default,