[bisq-network/bisq] Add rpc method 'getoffers' (#4329)
Stan
notifications at github.com
Tue Jun 23 20:19:49 UTC 2020
@ghubstan commented on this pull request.
> +
+ @Inject
+ public CoreOffersService(CreateOfferService createOfferService,
+ OfferBookService offerBookService,
+ OpenOfferManager openOfferManager,
+ User user) {
+ this.createOfferService = createOfferService;
+ this.offerBookService = offerBookService;
+ this.openOfferManager = openOfferManager;
+ this.user = user;
+ }
+
+ public List<Offer> getOffers(String direction, String fiatCurrencyCode) {
+ List<Offer> offers = offerBookService.getOffers().stream()
+ .filter(o -> !o.getDirection().name().equalsIgnoreCase(direction)
+ && o.getOfferPayload().getCounterCurrencyCode().equalsIgnoreCase(fiatCurrencyCode))
Requested change is in commit 51d82b1.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4329#discussion_r444482805
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200623/f3dfc24a/attachment.html>
More information about the bisq-github
mailing list