node_modules/binance/lib/websocket-client.js
/**
     * Subscribe to spot orderbook depth updates to locally manage an order book.
     */
Subscribe to spot orderbook depth updates to locally manage an order book.
Subscribe to spot orderbook depth updates to locally manage an order book .
subscribeDiffBookDepth(symbol, updateMs = 1000, market, forceNewConnection) {
        const lowerCaseSymbol = symbol.toLowerCase();
        const streamName = 'depth';
        const wsKey = requestUtils_1.getWsKeyWithContext(market, 'diffBookDepth', lowerCaseSymbol, String(updateMs));
        const updateMsSuffx = updateMs === 100 ? `@${updateMs}ms` : '';
        return this.connectToWsUrl(this.getWsBaseUrl(market, wsKey) + `/ws/${lowerCaseSymbol}@${streamName}${updateMsSuffx}`, wsKey, forceNewConnection);
    }
subscribeDiffBookDepth ( symbol , updateMs = 1000 , market , forceNewConnection ) { const lowerCaseSymbol = symbol . toLowerCase ( ) ; const streamName = 'depth' ; const wsKey = requestUtils_1 . getWsKeyWithContext ( market , 'diffBookDepth' , lowerCaseSymbol , String ( updateMs ) ) ; const updateMsSuffx = updateMs === 100 ? ` ${ updateMs } ` : '' ; return this . connectToWsUrl ( this . getWsBaseUrl ( market , wsKey ) + ` ${ lowerCaseSymbol } ${ streamName } ${ updateMsSuffx } ` , wsKey , forceNewConnection ) ; }
Subscribe to spot orderbook depth updates to locally manage an order book.
Subscribe to spot orderbook depth updates to locally manage an order book .