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