[bisq-network/bisq] Use USD and EUR from BitcoinAverage local (#3831)
chimp1984
notifications at github.com
Wed Dec 25 16:37:28 UTC 2019
chimp1984 requested changes on this pull request.
> @@ -105,16 +105,29 @@ private boolean supportedCurrency(String currencyCode) {
}
private Map<String, BitcoinAverageTicker> getTickersKeyedByCurrencyPair() {
- return restTemplate.exchange(
- RequestEntity
- .get(UriComponentsBuilder
- .fromUriString("https://apiv2.bitcoinaverage.com/indices/{symbol-set}/ticker/all?crypto=BTC")
- .buildAndExpand(symbolSet)
- .toUri())
- .header("X-signature", getAuthSignature())
- .build(),
- BitcoinAverageTickers.class
- ).getBody().getTickers();
+ if (symbolSet == "local")
In Java you need to do: symbolSet.equals("local") otherwise it's object equality.
--
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/3831#pullrequestreview-336374754
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20191225/45dea3a4/attachment-0001.html>
More information about the bisq-github
mailing list