This lets me always maintain the current orderbook for all products.
What's the best way to do this with Bitkub?
I tried first using the REST API to fetch the current orderbook for each market and then starting a separate websocket for each market to update the orderbook. However, when I then hit the REST API endpoint for the orderbook again and compare it against what I have, it seems different. Any help is appreciated, thanks!
I'm trying to get the full level 2 orderbook for every market, and then maintain a live version of the orderbook using the websocket.
For coinbase I would make a request:
and then the first response is the entire current orderbook for each product:
and then subsequent events are changes like the following:
This lets me always maintain the current orderbook for all products.
What's the best way to do this with Bitkub?
I tried first using the REST API to fetch the current orderbook for each market and then starting a separate websocket for each market to update the orderbook. However, when I then hit the REST API endpoint for the orderbook again and compare it against what I have, it seems different. Any help is appreciated, thanks!