@xe/xecd-rates-client
XECD REST Client
Last updated 3 years ago by mnesiem .
MPL-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @xe/xecd-rates-client 
SYNC missed versions from official npm registry.

XE Currency Data Client - Node.js

XE.com Inc. is the World's Trusted Currency Authority. This project provides an SDK to interface with our XE Currency Data (XECD) product.

XE Currency Data is a REST API that gives you access to daily or live rates and historic mid-market conversion rates between all of our supported currencies.

You will need an api key and secret to use this sdk. Sign up for a free trial or register for a full account.

Installation

The preferred way to install this package is through npm.

npm install --save @xe/xecd-rates-client

This package follows semantic versioning.

Usage

var xecdApiClient = require('@xe/xecd-rates-client')

var xecdConfig = {
    username: '<YOUR_API_ACCOUNT_ID>',
    password: '<YOUR_API_KEY>',
    apiUrl: 'https://xecdapi.xe.com/v1/'
};

var client = new xecdApiClient.XECD(xecdConfig);

client.accountInfo(function(err,data){
  console.log("accountInfo");
  console.log(err);
  console.log(data);
});

client.currencies(function(err,data){
  console.log("currencies");
  console.log(err);
  console.log(data);
});


client.convertFrom(function(err,data){
  console.log("convertFrom");
  console.log(err);
  console.log(data);
});

client.convertTo(function(err,data){
  console.log("convertTo");
  console.log(err);
  console.log(data);
});


client.historicRate(function(err,data){
  console.log("historicRate");
  console.log(err);
  console.log(data);
});

client.historicRatePeriod(function(err,data){
  console.log("historicRatePeriod");
  console.log(err);
  console.log(data);
});

Documentation

Technical Specifications

Contributing

xecd-rates-client-node is an open-source project. Submit a pull request to contribute!

Testing

npm test

Security Issues

If you discover a security vulnerability within this package, please DO NOT publish it publicly. Instead, contact us at security [at] xe.com. We will follow up with you as soon as possible.

About Us

XE.com Inc. is The World's Trusted Currency Authority. Development of this project is led by the XE.com Inc. Development Team and supported by the open-source community.

Current Tags

  • 0.1.0                                ...           latest (3 years ago)

1 Versions

  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |