diff --git a/Core/MarketAnalyzer/CoinMarketCap.cs b/Core/MarketAnalyzer/CoinMarketCap.cs index ab36840..8dcb7c3 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 (currencyTicker.First["quotes"]["USD"]["percent_change_24h"] != null) { + if (!String.IsNullOrEmpty(currencyTicker.First["quotes"]["USD"]["percent_change_24h"])) { market.TrendChange24h = (double)currencyTicker.First["quotes"]["USD"]["percent_change_24h"]; }