node_modules/binance/lib/websocket-client.js
/**
     * Subscribe to candles for a symbol in spot markets.
     */
Subscribe to candles for a symbol in spot markets.
Subscribe to candles for a symbol in spot markets .
subscribeSpotTrades(symbol, forceNewConnection) {
        const lowerCaseSymbol = symbol.toLowerCase();
        const market = 'spot';
        const streamName = 'trade';
        const wsKey = requestUtils_1.getWsKeyWithContext(market, streamName, lowerCaseSymbol);
        return this.connectToWsUrl(this.getWsBaseUrl(market, wsKey) + `/ws/${lowerCaseSymbol}@${streamName}`, wsKey, forceNewConnection);
    }
subscribeSpotTrades ( symbol , forceNewConnection ) { const lowerCaseSymbol = symbol . toLowerCase ( ) ; const market = 'spot' ; const streamName = 'trade' ; const wsKey = requestUtils_1 . getWsKeyWithContext ( market , streamName , lowerCaseSymbol ) ; return this . connectToWsUrl ( this . getWsBaseUrl ( market , wsKey ) + ` ${ lowerCaseSymbol } ${ streamName } ` , wsKey , forceNewConnection ) ; }
Subscribe to candles for a symbol in spot markets.
Subscribe to candles for a symbol in spot markets .