cryptoqween / cryptoqween.github.io

CryptoCompare API tutorials
194 stars 114 forks source link

Unsubscribe 'SubRemove' not working #15

Closed frankpaap closed 6 years ago

frankpaap commented 6 years ago

I try to unsubscribe but it aint working this is my code.

const subscription = ['2~' + exchange + '~' + coin + '~' + valuta]; console.log(subscription) this._socket.emit('SubRemove', subscription,function(res){ console.log(res) });

Someon can help me?

jcuypers commented 6 years ago

I have the same problem with socketIO implementation for android/java. All the rest is working fine. I have tried many variants of the SubRemove, but nothing works. some return 401-BADFORMAT as the format is obviously not correct but the one the should work doesn't return an error but also doesn't work. Anyone has an example that shows the format required? Ive already sent a question to CryptoCompare but no response yet.

jcuypers commented 6 years ago

BTW i think you need the "subs" as name in front of the subscription array (as with the SubAdd) function. If you would check the output without it you should normally get 401-badformat

TimeTravelersHackedMe commented 6 years ago

Same problem...

AndreyArhipov commented 6 years ago

hello!! how to add other exchanges for this sample? such as Binance, OKEx ....

cryptoqween commented 6 years ago

This bug is now fixed, let me know if you still have problems.

AndreyArhipov commented 6 years ago

How can I write data to a file on PHP ? and can I track the order book from all exchanges in one window?

cryptoqween commented 6 years ago

Orderbooks are not available yet. I don't know PHP myself so can't help with that.

AndreyArhipov commented 6 years ago

when will Orderbooks?