A Quick way to convert XEM to FIAT and Vice Versa.
Clone or download
Latest commit 38443df Sep 13, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Added JavaDocs Sep 13, 2017
.gitignore Initial commit Sep 9, 2017
README.md Added Build Instructions Sep 11, 2017
pom.xml Initial commit Sep 9, 2017

README.md

NEM FIAT / XEM Converter

Java API for converting any FIAT Currency to XEM!

Simplest and Straight forward API for converting any currency to XEM!

How to build

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>

To Xem

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

To Fiat

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

Search Coin

Get all coins

Coins CoinSearch.getAllCoins()

Search a specific coin

Coin searchCoin(String symbol);

Support

Need help integration your Java Application with NEM.io Platform? I can definitely help you with that, send me a message via

telegram

Tips are appreciated but not required. :bowtie: 💪 🤘
XEM: NA6IT2-ZSTQLT-YO223Z-ZMH2J7-2GVG7G-ZY72FN-47IF
BTC: 3JYAYPxN9RL4UvbxMd1svbQynMpFbf5ehy

Copyright (c) 2017