node_modules/binance/lib/websocket-client.js
/**
     * Subscribe to mark price for a symbol in a market category
     */
Subscribe to mark price for a symbol in a market category
Subscribe to mark price for a symbol in a market category
subscribeMarkPrice(symbol, market, updateSpeedMs = 3000, forceNewConnection) {
        const lowerCaseSymbol = symbol.toLowerCase();
        const streamName = 'markPrice';
        const speedSuffix = updateSpeedMs === 1000 ? '@1s' : '';
        const wsKey = requestUtils_1.getWsKeyWithContext(market, streamName, lowerCaseSymbol);
        return this.connectToWsUrl(this.getWsBaseUrl(market, wsKey) + `/ws/${lowerCaseSymbol}@${streamName}${speedSuffix}`, wsKey, forceNewConnection);
    }
subscribeMarkPrice ( symbol , market , updateSpeedMs = 3000 , forceNewConnection ) { const lowerCaseSymbol = symbol . toLowerCase ( ) ; const streamName = 'markPrice' ; const speedSuffix = updateSpeedMs === 1000 ? '@1s' : '' ; const wsKey = requestUtils_1 . getWsKeyWithContext ( market , streamName , lowerCaseSymbol ) ; return this . connectToWsUrl ( this . getWsBaseUrl ( market , wsKey ) + ` ${ lowerCaseSymbol } ${ streamName } ${ speedSuffix } ` , wsKey , forceNewConnection ) ; }
Subscribe to mark price for a symbol in a market category
Subscribe to mark price for a symbol in a market category