1.0.1 • Published 7 years ago

coinone v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Coinone.com Node.js API V2 Wrapper

Please see documentation at:

http://doc.coinone.co.kr

###As Node module

const coinOne = require('coinone');
const ACCESS_TOKEN = 'get-from-coinone.co.kr';
const SECRET_KEY = 'get-from-coinone.co.kr';

const CoinOne = new coinOne(ACCESS_TOKEN, SECRET_KEY);

CoinOne.userInfo().then((r) => {
    console.log(r);
});

###From Source

Create 'config.js' file with your token and secret.

module.exports = {
  'token': 'get token at coinone.com',
  'secret': 'get token at coinone.com'
}

Example usage:

const index = require('./index');
const config = require('./config');

const CoinOne = new index(config.token, config.secret);

CoinOne.userInfo().then((r) => {
    console.log(r);
});

https://github.com/xhad/coinone

1.0.1

7 years ago

1.0.0

7 years ago