xchange-stream icon indicating copy to clipboard operation
xchange-stream copied to clipboard

[HitBTC] Subscribe To More Tickers

Open szd116 opened this issue 6 years ago • 2 comments

is there a way to subscribe to more tickers after the connection is established such as

ProductSubscription productSubscription = ProductSubscription.create().build(); pair = new CurrencyPair("ETH/USD"); exchange.connect(productSubscription.create().addAll(pair).build()).blockingAwait(); exchange.getStreamingMarketDataService().getOrderBook(pair).subscribe(this);

at this point is there a way I can add currencyPair ("BTC/USD") for orderBook ? or everything has to added before the blockingAwait ?

szd116 avatar May 02 '18 20:05 szd116

@szd116 Is this question still relevant - also could you specify which exchange you are using as it differs across them.

Flemingjp avatar Oct 09 '18 18:10 Flemingjp

Yes, I was using HITBTC. Thanks.

On Tue, Oct 9, 2018 at 2:55 PM James Fleming [email protected] wrote:

@szd116 https://github.com/szd116 Is this question still relevant - also could you specify which exchange you are using as it differs across them.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitrich-info/xchange-stream/issues/174#issuecomment-428309160, or mute the thread https://github.com/notifications/unsubscribe-auth/Aismgj9GkLu_-5UuV2x0yCgh-opbftIRks5ujPESgaJpZM4TwGwk .

-- Siyu Dai Cornell University. Master in Financial Engineering.

szd116 avatar Oct 09 '18 18:10 szd116