Skip to content

NEMPH/nem-fiatxem-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Quick way to convert XEM to FIAT and Vice Versa.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages