c++autobahnpoloniex

Poloniex & websockets


===SIMPLE & SHORT===

Does anybody have working application that talks with Poloniex through WAMP in these days (January, 2018)?

===MORE SPECIFIC===

I used several info sources to make it work using combo: autobahn-cpp & C++. Windows 10 OS. I was able to connect to wss://api.poloniex.com, realm1. Plus I was able to subscribe and get subscription ID. But I never got any events even when everything established.

===RESEARCH===

During research in the web I saw a lot of controversial information:

1. Claims, that wss://api2.poloniex.com should be used, and channels names are actually numbers - How to connect to poloniex.com websocket api using a python library

2. This answer gave me base code, but I am getting anything more than just connections, also by following this answer - wss://api.poloniex.com is correct address - Connecting to Poloniex Push-API

3. I saw post (sorry, lost the link), there were comments made that websockets implementation are basically broken on poloniex. They were posted 6 months ago.

===SPECS===

1. Windows 10

2. Autobahn-Cpp

3. wss://api.poloniex.com:443 ; realm1

4. Different subscriptions: ticker, BTC_ETH, 148, 1002, etc..

5. Source code I got from here

===WILL HELP AS WELL===

  1. Is there any way to get all valid subscriptions or, probably, those, that have more than 0 subscribers? I mean, does WAMP have a way to do that?

  2. Is there any known issues with Autobahn-Cpp and poloniex combo?

  3. Is there any simpler way to test WAMP elsewhere to make sure Autobahn isn't a problem? Like any other well documented & supported online projects that accept WAMP websocket communication?


Solution

  • It seems that websockets in Poloniex are unstable. Therefore I can stop my attempts make Autobahn-Cpp work with it at least by now and move on.