-
Notifications
You must be signed in to change notification settings - Fork 607
Multiple candlestick events on single websocket connection #61
Conversation
…n single websocket. Added ticker24hr websocket endpoint consumer.
…n single websocket. Added ticker24hr websocket endpoint consumer.
|
Have you actually tested this? Because the documentation states that you need to use
Whereas you seem to be using this: The documentation also states that the combined streams are wrapped:
You also don't seem to do any unwrapping. I'd be surprised if your proposed changes would work, given that they are so non-conform the documentation. |
mcourteaux
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Unwrapping not done.
- Wrong API WSS endpoint.
|
I'm suprised too, I have tested and its working. You are right, I wasn't aware that I'm using this "wss://stream.binance.com:9443/ws"; endpoint. |
|
@mcourteaux I have added methods to consume (aggregated trade, depth and candlestick events ) from |
|
I'll review your changes soon. We also implemented working combined streams. I'll compare your changes to ours. Still working on something else now. |
|
Hi @alicanalbayrak , thanks for your contribution, could you please resolve the conflicts? |
|
Hi @joaopsilva , sorry for the late reply. I resolved conflicting files. Can you please review? |
joaopsilva
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @alicanalbayrak , this is looking good, I'll need to test a bit further, and I'll most likely merge it afterwards.
|
Hi, it looks doesn't work. I find the bug at |
|
As mensioned by @hsinhunglee, when remove "/" from format the problem is fixed :) |
|
Fixed in #178. |
Binance provides to access multiple symbols at single websocket connection by combining stream names.
Here, I added trivial method to listen candlestick events on multiple symbols.