[bisq-network/bisq-docs] Produce the simplest-possible getting started guide for the Bisq HTTP API (#54)
Bernard Labno
notifications at github.com
Wed May 23 07:21:21 UTC 2018
blabno commented on this pull request.
> + counterCurrencyCode: 'EUR',
+ direction: 'SELL',
+ paymentMethodId: 'SEPA'
+ })
+ .filter(i => _.includes(i.acceptedCountryCodes, 'PL'))
+ .filter(getPriceFilter(marketPrice))
+ .map(i => _.pick(i, 'baseCurrencyCode', 'counterCurrencyCode', 'direction', 'paymentMethodId', 'id', 'useMarketBasedPrice', 'price', 'marketPriceMargin', 'amount', 'minAmont'))
+ .map(i => ({amount: i.amount, margin: i.useMarketBasedPrice ? i.marketPriceMargin : marketPrice / i.price}))
+ .value();
+}
+
+Promise.all([getOffers(), getMarketPrice()])
+ .then(filterOffers)
+ .then(notify)
+ .catch(e => console.error(e));
+----
done
--
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-docs/pull/54#discussion_r190144842
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20180523/396b1d04/attachment-0002.html>
More information about the github
mailing list