Best practice for Websocket implementation

Hello,

Regarding websockets, I’m wondering what the best practice is. Should two instances be created; one for Websockets Market Stream and one for User Data Stream?

Or just use one websocket connection for everything?

Thanks

Hello, it depends on each user, their use case and experience.
Generally speaking, it’s better to create multiple connections, to not entirely depend on one connection for in case of unwanted interruption.

1 Like