Coder Social home page Coder Social logo

nem-fiatxem-converter's Introduction

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

nem-fiatxem-converter's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.