n0mad01 / node.bittrex.api

No longer maintained
MIT License
183 stars 187 forks source link

keep getting unhandled_data when using bittrex.websockets.listen ? #88

Open thechile opened 6 years ago

thechile commented 6 years ago

I'm using the listen code from examples and it connects but never displays anything.. seems to always get unhandled_data. If i subscribe on the other hand it works OK.

Anyone else having this problem ?

const bittrex = require('node.bittrex.api');

const websocketsclient = bittrex.websockets.listen( function( data ) {
    if (data.M === 'updateSummaryState') {
        data.A.forEach(function(data_for) {
            data_for.Deltas.forEach(function(marketsDelta) {
                console.log('Ticker Update for '+ marketsDelta.MarketName, marketsDelta);
            });
        });
    }
});
c0nf1ck commented 6 years ago

This repository is not maintained anymore, use this one instead:

https://github.com/dparlevliet/node.bittrex.api