@Override public void unsubscribe(TQSymbol symbol) { SubscribeCommand subscribeCommand = new SubscribeCommand(); subscribeCommand.subscribeQuotations(symbol); TransaqLibrary.SendCommand(subscribeCommand.createUnsubscribeCommand()); }
public void subscribe(List<TQSymbol> symbols) { SubscribeCommand subscribeCommand = new SubscribeCommand(); symbols.forEach(symbol -> subscribeCommand.subscribeQuotations(symbol)); TransaqLibrary.SendCommand(subscribeCommand.createConnectCommand()); }