Fix: Kraken rate provider failing due to bid > ask

This commit is contained in:
nicolas.dorier 2024-07-17 11:10:58 +09:00
parent 1506a2738a
commit fe01e4693f
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -93,7 +93,7 @@ namespace BTCPayServer.Services.Rates
if (ticker != null)
{
var pair = GetCurrencyPair(symbol);
if (pair is not null)
if (pair is not null && ticker.Bid <= ticker.Ask)
result.Add(new PairRate(pair, new BidAsk(ticker.Bid, ticker.Ask)));
}
}