What is the best way to get a price snapshot synchronously.
What I would like:
ws.send(request)
result = ws.recv()
The problem is that I can receive different messages (ping for instance..).
Do I have to necessarily implement a logic to filter the answers ?