use of info.bitrich.xchangestream.core.StreamingMarketDataService in project XChange by knowm.
the class CoinjarStreamingMarketDataServiceIntegration method runTestUsdcAud.
@Test
public void runTestUsdcAud() {
ExchangeSpecification defaultExchangeSpecification = new ExchangeSpecification(CoinjarStreamingExchange.class);
StreamingExchange exchange = StreamingExchangeFactory.INSTANCE.createExchange(defaultExchangeSpecification);
exchange.connect().blockingAwait();
StreamingMarketDataService streamingMarketDataService = exchange.getStreamingMarketDataService();
Disposable usdtOrderBookDisposable = streamingMarketDataService.getOrderBook(new CurrencyPair(Currency.USDC, Currency.AUD)).test().awaitCount(10).assertNoErrors();
usdtOrderBookDisposable.dispose();
}
use of info.bitrich.xchangestream.core.StreamingMarketDataService in project XChange by knowm.
the class CoinjarStreamingMarketDataServiceIntegration method runTestBtcAud.
@Test
public void runTestBtcAud() {
ExchangeSpecification defaultExchangeSpecification = new ExchangeSpecification(CoinjarStreamingExchange.class);
StreamingExchange exchange = StreamingExchangeFactory.INSTANCE.createExchange(defaultExchangeSpecification);
exchange.connect().blockingAwait();
StreamingMarketDataService streamingMarketDataService = exchange.getStreamingMarketDataService();
Disposable btcOrderBookDisposable = streamingMarketDataService.getOrderBook(CurrencyPair.BTC_AUD).test().awaitCount(10).assertNoErrors();
btcOrderBookDisposable.dispose();
}
Aggregations