xchange-stream
xchange-stream copied to clipboard
[HitBTC] Subscribe To More Tickers
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 Is this question still relevant - also could you specify which exchange you are using as it differs across them.
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.