public static BitfinexWebsocketClient newPooledClient(final BitfinexWebsocketConfiguration config, 
    		final int channelsPerConnection) {
    	
    		if (channelsPerConnection < 10 || channelsPerConnection > 250) {
            throw new IllegalArgumentException("channelsPerConnection must be in range (10, 250)");
        }
    	
        final BitfinexApiCallbackRegistry callbacks = new BitfinexApiCallbackRegistry();
		final SequenceNumberAuditor sequenceNumberAuditor = new SequenceNumberAuditor();
		
		sequenceNumberAuditor.setErrorPolicy(config.getErrorPolicy());

		return new PooledBitfinexApiBroker(config, callbacks, sequenceNumberAuditor, channelsPerConnection);
    }
public static BitfinexWebsocketClient newPooledClient ( final BitfinexWebsocketConfiguration config , final int channelsPerConnection ) { if ( channelsPerConnection < 10 || channelsPerConnection > 250 ) { throw new IllegalArgumentException ( "channelsPerConnection must be in range (10, 250)" ) ; } final BitfinexApiCallbackRegistry callbacks = new BitfinexApiCallbackRegistry ( ) ; final SequenceNumberAuditor sequenceNumberAuditor = new SequenceNumberAuditor ( ) ; sequenceNumberAuditor . setErrorPolicy ( config . getErrorPolicy ( ) ) ; return new PooledBitfinexApiBroker ( config , callbacks , sequenceNumberAuditor , channelsPerConnection ) ; }
bitfinex client with subscribed channel managed.
spreads amount of subscribed channels across multiple websocket physical connections.

@param config                - config
@param channelsPerConnection - channels per client - 25 - 250 (limit by bitfinex exchange)
@return {@link PooledBitfinexApiBroker} client