XChange icon indicating copy to clipboard operation
XChange copied to clipboard

streaming exchange default exchange configuration

Open m1dnightc0der opened this issue 2 years ago • 0 comments

Historically exchange specifications have been created by

new ExchangeSpecification(exchangeClassName); however this approach is deprecated and the preferred approach is ExchangeSpecification exSpec = new BitstampExchange().getDefaultExchangeSpecification();

after which the exchange can be created Exchange bitstamp = ExchangeFactory.INSTANCE.createExchange(exSpec);

however for info.bitrich.xchangestream.core.StreamingExchange there is no getDefaultExchangeSpecification method as there is in org.knowm.xchange.Exchange

So the options are to use the deprecated method to create exchange specs for the streaming exchanges, or add getDefaultExchangeSpecification to info.bitrich.xchangestream.core.StreamingExchange.

Any thoughts on the preferred approach?

m1dnightc0der avatar Mar 11 '22 15:03 m1dnightc0der