(endpoint, reconnect = false)
| 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 |