Socket
Book a DemoInstallSign in
Socket

coinone

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinone

Coinone API module

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

Bitcoin

FAQs

Package last updated on 26 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts