-
Notifications
You must be signed in to change notification settings - Fork 217
Not receiving any events on Binance Exchange? Is Binance broken? #567
Comments
Is there any code in place there to wait once you've subscribed? If that last subscription is the last line of the program, it will close immediately since the subscriptions are asynchronous. IIRC, Coinbase sends a ticker and orderbook snapshot immediately on connection, so even if you disconnect immediately, you'll still get something. Binance doesn't. If you're not sure what I mean, just add this at the end of your code and see what happens:
|
I'm not waiting anywhere after i subscribe but it seems to work i.e. the program doesn't exit and i start receiving events in the debug logs - see below:
But I don't see "market" or "ticker" printed after each event as i expect (as this is in the lambda i'm passing to react to events). For coinbase i see this as expected:
i.e. you can see the "market" messages intertwined with the debug logs of the data from the websocket |
I'm trying to run the example code with the binance exchange but it doesnt work. In the debugger i can see the websocket is subscribed and receiving depth events. The same code works if i replace with the CoinbaseStreamingExchange...
Anyone know whats up? Thanks
The text was updated successfully, but these errors were encountered: