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

Method deliveryLiquidationStream

src/node-binance-api.ts:5971–5978  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 1

reconnectMethod · 0.95

Calls 2

Tested by

no test coverage detected