MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / futuresTerminate

Function futuresTerminate

deprecated/node-binance-api.js:1012–1018  ·  view source on GitHub ↗
(endpoint, reconnect = false)

Source from the content-addressed store, hash-verified

1010 * @return {undefined}
1011 */
1012 const futuresTerminate = function (endpoint, reconnect = false) {
1013 let ws = Binance.futuresSubscriptions[endpoint];
1014 if (!ws) return;
1015 ws.removeAllListeners('message');
1016 ws.reconnect = reconnect;
1017 ws.terminate();
1018 }
1019
1020 /**
1021 * Combines all futures OHLC data with the latest update

Callers 1

apiFunction · 0.85

Calls 1

terminateMethod · 0.65

Tested by

no test coverage detected