UNPKG

node.bittrex.api

Version:

Node Bittrex API - asynchronous node.js library for the Bittrex API https://bittrex.com/

16 lines (12 loc) 381 B
const bittrex = require('../node.bittrex.api'); bittrex.options({ 'verbose' : true, }); console.log('Connecting ....'); bittrex.websockets.subscribe(['BTC-ETH','BTC-SC','BTC-ZEN'], function(data, client) { if (data.M === 'updateExchangeState') { data.A.forEach(function(data_for) { console.log('Market Update for '+ data_for.MarketName, data_for); }); } });