node_modules/binance/lib/websocket-client.js
/**
     * Subscribe to coin index for a symbol in COINM Futures markets
     */
Subscribe to coin index for a symbol in COINM Futures markets
Subscribe to coin index for a symbol in COINM Futures markets
subscribeCoinIndexPrice(symbol, updateSpeedMs = 3000, forceNewConnection) {
        const lowerCaseSymbol = symbol.toLowerCase();
        const streamName = 'indexPrice';
        const speedSuffix = updateSpeedMs === 1000 ? '@1s' : '';
        const market = 'coinm';
        const wsKey = requestUtils_1.getWsKeyWithContext(market, streamName, lowerCaseSymbol);
        return this.connectToWsUrl(this.getWsBaseUrl(market, wsKey) + `/ws/${lowerCaseSymbol}@${streamName}${speedSuffix}`, wsKey, forceNewConnection);
    }
subscribeCoinIndexPrice ( symbol , updateSpeedMs = 3000 , forceNewConnection ) { const lowerCaseSymbol = symbol . toLowerCase ( ) ; const streamName = 'indexPrice' ; const speedSuffix = updateSpeedMs === 1000 ? '@1s' : '' ; const market = 'coinm' ; const wsKey = requestUtils_1 . getWsKeyWithContext ( market , streamName , lowerCaseSymbol ) ; return this . connectToWsUrl ( this . getWsBaseUrl ( market , wsKey ) + ` ${ lowerCaseSymbol } ${ streamName } ${ speedSuffix } ` , wsKey , forceNewConnection ) ; }
Subscribe to coin index for a symbol in COINM Futures markets
Subscribe to coin index for a symbol in COINM Futures markets