Fixed a null issue with CMC data as reprted in #543
This commit is contained in:
parent
15d6df9b97
commit
aca22a3a5f
|
@ -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"];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue