コード例 #1
0
 public static void DownloadCoinlist(bool overwrite = false)
 {
     WriteSample(() =>
     {
         CryptoCompareServices client = new CryptoCompareServices(baseUrl);
         return(client.CoinlistAsync(null, null).Result as JToken);
     },
                 "CoinList",
                 overwrite);
 }
コード例 #2
0
        public static void ShowCoins()
        {
            ICryptoCompareServices services = new CryptoCompareServices(new CryptoCompareConfig());
            CoinList coinList = services.CoinlistAsync(null, null).Result;

            Debug.WriteLine(coinList);
            foreach (KeyValuePair <string, CoinData> keyValuePair in coinList.Data)
            {
                Debug.WriteLine(keyValuePair.Key + " : " + keyValuePair.Value.FullName);
            }
        }