From 4fef7f566af2f1bff81663cc6302f5c3be1bd5be Mon Sep 17 00:00:00 2001 From: Legedric Date: Mon, 4 Jun 2018 09:48:02 +0200 Subject: [PATCH] Fixed a null issue with CMC data as reprted in #543 --- Core/MarketAnalyzer/CoinMarketCap.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/MarketAnalyzer/CoinMarketCap.cs b/Core/MarketAnalyzer/CoinMarketCap.cs index 8dcb7c3..cd56218 100644 --- a/Core/MarketAnalyzer/CoinMarketCap.cs +++ b/Core/MarketAnalyzer/CoinMarketCap.cs @@ -35,7 +35,7 @@ namespace Core.MarketAnalyzer { market.Symbol = currencyTicker.First["symbol"].ToString(); market.Price = (double)currencyTicker.First["quotes"]["USD"]["price"]; market.Volume24h = (double)currencyTicker.First["quotes"]["USD"]["volume_24h"]; - if (!String.IsNullOrEmpty(currencyTicker.First["quotes"]["USD"]["percent_change_24h"])) { + if (!String.IsNullOrEmpty(currencyTicker.First["quotes"]["USD"]["percent_change_24h"].ToString())) { market.TrendChange24h = (double)currencyTicker.First["quotes"]["USD"]["percent_change_24h"]; }