XChange
XChange copied to clipboard
streaming exchange default exchange configuration
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?