0.3.0 • Published 7 years ago

btce-public-v3 v0.3.0

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
7 years ago

BTC-e Public API v3 Node.js Client.

Installation

We publish to npm. Run the following command in shell.

$ npm install --save btce-public-v3

Basic Usage

var BTCE_Public_v3 = require('btce-public-v3');

var btce = new BTCE_Public_v3();

btce.info()
    .then(function(results){
        console.log('Results');
        console.log(results);
    })
    .catch(function(short, raw){
        console.log('----- SHORT ERROR -----');
        console.log(short);
        console.log('----- RAW ERROR -----');
        console.log('type: '+typeof(raw));
        if(typeof(raw) != 'undefined')
            console.log(raw);
    });