altangent / ccxws

WebSocket client for 38 cryptocurrency exchanges
MIT License
619 stars 187 forks source link

binance: use symbol@ticker instead of !ticker@arr #280

Closed karimhossenbux closed 3 years ago

karimhossenbux commented 3 years ago

I've modified Binance ticker stream to use symbol@ticker (single pair stream) instead of !ticker@arr (all pairs stream).

279: I had issue when using the binance ticker. I was getting high peak of download (400KB/s) which was unnecessary when looking only at 1 pair

karimhossenbux commented 3 years ago

hey @bmancini55, thank you very much for your feedback!

I've added the batchTickers as an option in the constructor 👍

Let me know if you still see some conflict :)