* Futures WebSocket miniTicker * @param {symbol} symbol name or false. can also be a callback * @param {function} callback - callback function * @return {string} the websocket endpoint
(symbol?: string, callback: Callback = console.log)
| 5771 | * @return {string} the websocket endpoint |
| 5772 | */ |
| 5773 | futuresMiniTickerStream(symbol?: string, callback: Callback = console.log) { |
| 5774 | const reconnect = () => { |
| 5775 | if (this.Options.reconnect) this.futuresMiniTickerStream(symbol, callback); |
| 5776 | }; |
| 5777 | const endpoint = symbol ? `${symbol.toLowerCase()}@miniTicker` : '!miniTicker@arr'; |
| 5778 | const subscription = this.futuresSubscribeSingle(endpoint, data => callback(this.fMiniTickerConvertData(data)), { reconnect }); |
| 5779 | return (subscription as any).url; |
| 5780 | } |
| 5781 | |
| 5782 | /** |
| 5783 | * Futures WebSocket bookTicker |
no test coverage detected