BIT-Z NODE DEMO
install
npm install
node test.js help
Example
const BITZ = require('./bitz');
/**
* @param apiKey required
* @param secretKey required
* @param tradePwd required for placing orders(addEntrustSheet)
*/
var apiKey = '';
var secretKey = '';
var tradePwd = '';
BITZ.setConfig( apiKey, secretKey, tradePwd );
// get assets
BITZ.getUserAssets().then(function(data){
console.log(data);
}).catch(function(err){
console.log(err);
});
// get all quotation data
BITZ.tickerall().then(function(data){
console.log(data);
}).catch(function(err){
console.log(err);
});