Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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);
        }