public Trade[] GetTrades( string currency, string instrument) { var path = $"/market/{instrument}/{currency}/trades";//?since=591540122"; var result = _requestClient.SendRequest(path); Console.WriteLine(result); return(JsonConvert.DeserializeObject <Trade[]>(result)); }
public OrderDetails GetOrder(int[] orderIds) { var sb = new StringBuilder(); sb.Append("{\"orderIds\":"); sb.Append("["); sb.Append(string.Join(",", orderIds)); sb.Append("]"); sb.Append("}"); var response = _requestClient.SendRequest("/order/detail", sb.ToString()); return(JsonConvert.DeserializeObject <OrderDetails>(response)); }