Closed brianmcallister closed 4 years ago
I had the same issue but I think the idea is that the 'snapshot' event provides the initial conditions of the orderbook and the subsequent 'l2update' events are used to update the state of the orderbook.
Yep, understood. The issue is that the snapshot event is never getting emitted.
Having the same issue. Did you manage to find a solution to this?
Hi, we are closing out PRs + Issues as this project is being archived.
I'm basing this off of this section in the documentation: https://docs.gdax.com/#the-code-classprettyprintlevel2code-channel
When I open up a subscription using
WebsocketClient
, it looks like there's nosnapshot
event being emitted.Here's what I'm doing (lots of real code omitted for clarity):
I did see in the README of this repo that an
open
event gets emitted by the client so I tried listening to that for a snapshot, but I haven't seenopen
ever be emitted.Is the code I have here correct, or am I doing something wrong?
I am able to get the order books I care about from the REST API, but I'd prefer to just use the websocket client by itself.