tiagosiebler / binance

Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & browser support, integration tests, beautification & more.
MIT License
728 stars 264 forks source link

Websocket duplicate messages #434

Open kohsine opened 5 days ago

kohsine commented 5 days ago

I've subscribed to binance spot trades but I'm getting many duplicate messages with the exact same price and timestamp. Is this normal?

tiagosiebler commented 5 days ago

Not normal if this is consistently giving duplicates. Most of the time this is caused by having multiple (unnecessary) instances of the websocket client. For market data, just having one instance of the websocket client should be enough.