You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unWatchOHLCV / unWatchTrades missing on gate (candles), blofin, bitrue, lbank, poloniex and kraken #30955
I have already searched for existing issues and confirmed that this issue is not a duplicate
Is your feature request related to a problem? Please describe
We chart many pairs at once with watchOHLCV (and watchTrades where an exchange streams no candles), and call unWatchOHLCV / unWatchTrades when a chart closes. On the exchanges below there is no unsubscribe, so the exchange keeps streaming every pair that was ever watched on that connection, and the client keeps parsing it into its caches, until the whole client is closed.
Side note: bitget implements both unWatchOHLCV and unWatchTrades, but its has doesn't declare them, so code that checks has before calling them never unsubscribes there.
Describe the solution you'd like
unWatchOHLCV and unWatchTrades on these exchanges (each one's own unsubscribe message), as binance, okx, bybit, kucoin, mexc, htx, bingx and bitget have, and bitget's has flags set.
Describe alternatives you've considered
Closing the exchange's whole client once nothing on it is watched, which is what we do for now. It frees the connection, but while any chart on that exchange stays open, the pairs no longer shown keep streaming. We can send pull requests for some of these exchanges if that helps.
Activity