BinFutures incorrect markets

This commit is contained in:
HojouFotytu 2023-07-01 12:44:26 +09:00
parent 05626b5321
commit 35f8aeeb31
2 changed files with 12 additions and 2 deletions
Core/MarketAnalyzer
Monitor/Pages

View File

@ -71,7 +71,7 @@ namespace Core.MarketAnalyzer
//New variables for filtering out bad markets
float marketLastPrice = currencyTicker["lastPrice"].ToObject<float>();
float marketVolume = currencyTicker["volume"].ToObject<float>();
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);
}
}
}

View File

@ -250,6 +250,8 @@ else
</thead>
<tbody>
@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;
<tr>
@ -294,6 +296,7 @@ else
<td></td>
}
</tr>
}
}
</tbody>
</table>