private CryptoPriceResult CryptoByID(string Id, string convertCurrency) { string path = "/" + Id; if (!string.IsNullOrEmpty(convertCurrency)) { path += "/?convert=" + convertCurrency; } var client = new CryptoClientService(url); var result = client.MakeRequest(Path + path, Method.GET, convertCurrency); return(result.First()); }
private List <CryptoPriceResult> Cryptos(int limit, string convertCurrency) { string seperator = string.Empty; string path = "?"; path += "limit=" + limit; seperator = "&"; if (!string.IsNullOrEmpty(convertCurrency)) { path += seperator + "convert=" + convertCurrency; } var client = new CryptoClientService(url); var result = client.MakeRequest(Path + path, Method.GET, convertCurrency); return(result); }