* Delivery WebSocket liquidations stream * @param {symbol} symbol name or false. can also be a callback * @param {function} callback - callback function * @return {string} the websocket endpoint
(symbol?: string, callback = console.log)
| 5969 | * @return {string} the websocket endpoint |
| 5970 | */ |
| 5971 | deliveryLiquidationStream(symbol?: string, callback = console.log) { |
| 5972 | const reconnect = () => { |
| 5973 | if (this.Options.reconnect) this.deliveryLiquidationStream(symbol, callback); |
| 5974 | }; |
| 5975 | const endpoint = symbol ? `${symbol.toLowerCase()}@forceOrder` : '!forceOrder@arr'; |
| 5976 | const subscription = this.deliverySubscribeSingle(endpoint, data => callback(this.dLiquidationConvertData(data)), { reconnect }); |
| 5977 | return (subscription as any).url; |
| 5978 | } |
| 5979 | |
| 5980 | /** |
| 5981 | * Delivery WebSocket prevDay ticker |
no test coverage detected