gateio / gatews

Gate Websocket V4 SDK
89 stars 35 forks source link

Updating local ordebook from Websocket #52

Open HonzaFromBitfinity opened 1 year ago

HonzaFromBitfinity commented 1 year ago

The "incremental" updating local orderbook from websocket does not work correctly. Only first 100 items in orderbook are updated. The rest of orderbook has a discrepancies. If you compare two orderbooks one from REST and one builded from websocket updates (with same sequence number), You will find that only first 100 items is equal.

I am using _spot.order_bookupdate channel, which is described here GateIO Websocket OrderBook Documentation