ccxws
ccxws copied to clipboard
[BUG] Gate.io orderbook feed goes out of sync
Gate.io ob feed goes out of sync quite fast. Here is a repro: https://codesandbox.io/s/node-js-forked-bu2mv?file=/src/index.js
Update 1: made another repro using regular ws. Seems like problem is still there. So gate.io might be at fault here. https://codesandbox.io/s/gate-io-ws-4o806?file=/src/index.js
Update 2: aperantly, gate.io has new websockets implementation (v4): https://www.gate.io/docs/developers/apiv4/ws/en/#spot-websocket-v4 I made reproduction using this new api, and it seems to work: https://codesandbox.io/s/gate-io-ws-v4-8v99z?file=/src/index.js I guess update is needed to gate.io ws implementation then. This new version also supports more features, like snapshot.