diff --git a/Core/MarketAnalyzer/BinanceFutures.cs b/Core/MarketAnalyzer/BinanceFutures.cs index 85e2117..b27beb7 100644 --- a/Core/MarketAnalyzer/BinanceFutures.cs +++ b/Core/MarketAnalyzer/BinanceFutures.cs @@ -71,7 +71,7 @@ namespace Core.MarketAnalyzer //New variables for filtering out bad markets float marketLastPrice = currencyTicker["lastPrice"].ToObject(); float marketVolume = currencyTicker["volume"].ToObject(); - if (marketLastPrice > 0 && marketVolume > 0) + if (marketLastPrice > 0 && marketVolume > 0 && marketName.EndsWith(mainMarket)) { // Set last values in case any error occurs @@ -92,8 +92,15 @@ namespace Core.MarketAnalyzer } else { - //Let the user know that the problem market was ignored. + //Let the user know that a problem market was ignored. + if (!marketName.EndsWith(mainMarket)) + { + log.DoLogInfo("BinanceFutures - Incorrect base currency: " + marketName + " ignored"); + } + else + { log.DoLogInfo("BinanceFutures - Ignoring bad market data for " + marketName); + } } } diff --git a/Monitor/Pages/MarketAnalyzer.cshtml b/Monitor/Pages/MarketAnalyzer.cshtml index 15bd1d1..826d417 100644 --- a/Monitor/Pages/MarketAnalyzer.cshtml +++ b/Monitor/Pages/MarketAnalyzer.cshtml @@ -250,6 +250,8 @@ else @foreach (string market in Model.Summary.MarketSummary.Keys.OrderBy(m => m)) { + if (market.EndsWith(Model.Summary.MainMarket)) + { Core.Main.DataObjects.PTMagicData.MarketPairSummary mps = Model.Summary.MarketSummary[market]; int marketTrendsDisplayed = 0; @@ -294,6 +296,7 @@ else } + } }