Giter Site home page Giter Site logo

twexchange's Introduction

TW Exchange

Get the current exchange rate from each taiwan bank.

NPM

Install

If you haven't already got Node.js, then go get it.

npm install tw-exchange

Features

Support Bank List are listed below :

Code Name Bank Name
cathaybk cathay
fubonbk fubon
megabk mega
twbk taiwan
chbbk chb
esunbk esun
taishinbk taishin
hncbbk hncb
tcbbk tcb
ctbcbk ctbc
feibbk feib
sinopacbk sinopac
kgibk kgi
tcbk tc
entiebk entie
scbk sc
scsbbk scsb
dbsbk dbs
netbk net
hsbcbk hsbc
firstbk first

Introduction

How to use

Require module

var currentEx = require('tw-exchange');

Use bank code to access exchange rate

currentEx.getCurrentExChange("cathaybk",function(json){
	console.log("cathay bank rate =>" + JSON.stringify(json));
})

Output example

cathay bank rate => {"USD":{"bkbuy":"30.3100","bksell":"30.5100","cashbuy":"30.1100","cashsell":"30.6900"},"CNY":{"bkbuy":"4.4380","bksell":"4.5380","cashbuy":"4.3680","cashsell":"4.5580"},"HKD":{"bkbuy":"3.8350","bksell":"3.9550","cashbuy":"3.7850","cashsell":"3.9950"},"GBP":{"bkbuy":"39.3400","bksell":"40.1400"},"CHF":{"bkbuy":"31.2800","bksell":"31.8000"},"AUD":{"bkbuy":"23.5800","bksell":"24.0200"},"SGD":{"bkbuy":"22.0000","bksell":"22.4000"},"CAD":{"bkbuy":"23.7600","bksell":"24.1600"},"SEK":{"bkbuy":"3.5700","bksell":"3.7300"},"ZAR":{"bkbuy":"2.2320","bksell":"2.4360"},"JPY":{"bkbuy":"0.2667","bksell":"0.2747","cashbuy":"0.2647","cashsell":"0.2767"},"DKK":{"bkbuy":"4.6100","bksell":"4.7700"},"THB":{"bkbuy":"0.8610","bksell":"0.9410"},"NZD":{"bkbuy":"22.1300","bksell":"22.5700"},"EUR":{"bkbuy":"34.4500","bksell":"35.2500","cashbuy":"34.1000","cashsell":"35.6000"},"time":"2017-07-15T12:54:23+08:00"}

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

twexchange's People

Contributors

felixlinbh avatar

Watchers

 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.