Skip to content

Commit

Permalink
api: Include my offers in getoffers
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Dec 20, 2024
1 parent c3fbc85 commit 0ba23b5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/src/main/java/bisq/core/api/CoreOffersService.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ List<Offer> getOffers(String direction, String currencyCode) {
var isFiat = isFiatCurrency(upperCaseCurrencyCode);
if (isFiat) {
return offerBookService.getOffers().stream()
.filter(o -> !o.isMyOffer(keyRing))
.filter(o -> offerMatchesDirectionAndCurrency(o, direction, upperCaseCurrencyCode))
.sorted(priceComparator(direction, true))
.collect(Collectors.toList());
Expand All @@ -222,7 +221,6 @@ List<Offer> getOffers(String direction, String currencyCode) {
// then filter on the currencyCode param (the altcoin code).
if (apiSupportsCryptoCurrency(upperCaseCurrencyCode))
return offerBookService.getOffers().stream()
.filter(o -> !o.isMyOffer(keyRing))
.filter(o -> offerMatchesDirectionAndCurrency(o, direction, "BTC"))
.filter(o -> o.getBaseCurrencyCode().equalsIgnoreCase(upperCaseCurrencyCode))
.sorted(priceComparator(direction, false))
Expand Down

0 comments on commit 0ba23b5

Please sign in to comment.