Package com.barchart.feed.api

Examples of com.barchart.feed.api.Agent.include()


  public <V extends MarketData<V>> Agent subscribe(final Class<V> clazz,
      final MarketObserver<V> callback, final String... symbols) {

    final Agent agent = newAgent(clazz, callback);

    agent.include(symbols).subscribe();

    return agent;
  }

  @Override
View Full Code Here


  public <V extends MarketData<V>> Agent subscribe(final Class<V> clazz,
      final MarketObserver<V> callback, final Instrument... instruments) {

    final Agent agent = newAgent(clazz, callback);

    agent.include(instruments);

    return agent;
  }

  @Override
View Full Code Here

  public <V extends MarketData<V>> Agent subscribe(final Class<V> clazz,
      final MarketObserver<V> callback, final Exchange... exchanges) {

    final Agent agent = newAgent(clazz, callback);

    agent.include(exchanges);

    return agent;
  }

  @Override
View Full Code Here

  public Agent subscribeMarket(final MarketObserver<Market> callback,
      final String... symbols) {

    final Agent agent = newAgent(Market.class, callback);

    agent.include(symbols).subscribe();

    return agent;
  }

  @Override
View Full Code Here

  public Agent subscribeTrade(final MarketObserver<Trade> lastTrade,
      final String... symbols) {

    final Agent agent = newAgent(Trade.class, lastTrade);

    agent.include(symbols);

    return agent;
  }

  @Override
View Full Code Here

  public Agent subscribeBook(final MarketObserver<Book> book,
      final String... symbols) {

    final Agent agent = newAgent(Book.class, book);

    agent.include(symbols).subscribe();

    return agent;
  }

  @Override
View Full Code Here

  public Agent subscribeCuvol(final MarketObserver<Cuvol> cuvol,
      final String... symbols) {

    final Agent agent = newAgent(Cuvol.class, cuvol);
   
    agent.include(symbols).subscribe();

    return agent;
  }

  @Override
View Full Code Here

  public <V extends MarketData<V>> Agent subscribe(final Class<V> clazz,
      final MarketObserver<V> callback, final String... symbols) {

    final Agent agent = newAgent(clazz, callback);

    agent.include(symbols);

    return agent;
  }

  @Override
View Full Code Here

  public <V extends MarketData<V>> Agent subscribe(final Class<V> clazz,
      final MarketObserver<V> callback, final Instrument... instruments) {

    final Agent agent = newAgent(clazz, callback);

    agent.include(instruments);

    return agent;
  }

  @Override
View Full Code Here

  public <V extends MarketData<V>> Agent subscribe(final Class<V> clazz,
      final MarketObserver<V> callback, final Exchange... exchanges) {

    final Agent agent = newAgent(clazz, callback);

    agent.include(exchanges);

    return agent;
  }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.