Remove exception thrown by binance provider

This commit is contained in:
nicolas.dorier 2019-04-04 19:39:37 +09:00
parent 708cdbe23f
commit eb5e32a07f

View File

@ -39,7 +39,9 @@ namespace BTCPayServer.Services.Rates
lock (notFoundSymbols)
{
var exchangeRates =
rates.Select(t => CreateExchangeRate(t))
rates
.Where(t => t.Value.Ask != 0m && t.Value.Bid != 0m)
.Select(t => CreateExchangeRate(t))
.Where(t => t != null)
.ToArray();
return new ExchangeRates(exchangeRates);