public static List <KunaTrade> GetTrades(string market) { var tickerResponse = Query(_baseUri + "trades?market=" + market); var json = JArray.Parse(tickerResponse); var trades = new List <KunaTrade>(); foreach (var jsonTrade in json) { trades.Add(KunaTrade.FromJson(jsonTrade as JObject)); } return(trades); }
public List <KunaTrade> UserTrades(string market) { var response = UserQuery("orders", "GET", new Dictionary <string, string>() { { "market", market } }); var json = JArray.Parse(response); var trades = new List <KunaTrade>(); foreach (var jsonTrade in json) { trades.Add(KunaTrade.FromJson(jsonTrade as JObject)); } return(trades); }