(endpoint, reconnect = false)
| 1714 | * @return {undefined} |
| 1715 | */ |
| 1716 | const deliveryTerminate = function (endpoint, reconnect = false) { |
| 1717 | let ws = Binance.deliverySubscriptions[endpoint]; |
| 1718 | if (!ws) return; |
| 1719 | ws.removeAllListeners('message'); |
| 1720 | ws.reconnect = reconnect; |
| 1721 | ws.terminate(); |
| 1722 | } |
| 1723 | |
| 1724 | /** |
| 1725 | * Combines all delivery OHLC data with the latest update |