Java API for converting any FIAT Currency to XEM!
Simplest and Straight forward API for converting any currency to XEM!
git clone https://github.com/NEMPH/nem-fiatxem-converter.git
cd nem-fiatxem-converter
mvn clean install
Import it as a maven dependency
<dependency>
<groupId>io.nem.apps</groupId>
<artifactId>nem-fiatxem-converter</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
FiatsXem converter = PriceConverter
.fromFiat("PHP",2.00)
.fromFiat("USD",2.00)
.toXem();
BigDecimal xemFromCad = converter.getXemPriceFor("PHP"); // returns xem equivalent of PHP 2.00
BigDecimal xemFromUsd = converter.getXemPriceFor("USD"); // returns xem equivalent of USD 2.00
XemFiat converter = PriceConverter.fromXem(2.00)
.toFiat("USD")
.toFiat("PHP")
.convert();
BigDecimal phpXemPrice = converter.getPriceOf("PHP"); // returns the PHP price of XEM 2.00
BigDecimal usdXemPrice = converter.getPriceOf("USD"); // returns the USD price of XEM 2.00
Coins CoinSearch.getAllCoins()
Coin searchCoin(String symbol);
Tips are appreciated but not required. 💪 🤘
XEM: NA6IT2-ZSTQLT-YO223Z-ZMH2J7-2GVG7G-ZY72FN-47IF
BTC: 3JYAYPxN9RL4UvbxMd1svbQynMpFbf5ehy
Copyright (c) 2017