534535536537538539540541542
@Override public Agent subscribeCuvol(final MarketObserver<Cuvol> cuvol, final String... symbols) { final Agent agent = newAgent(Cuvol.class, cuvol); return agent; }
7879808182838485868788899091
}; feed.startup(); final Agent myAgent = feed.newAgent(Market.class, observer); for(int i = 2; i < args.length; i++) { myAgent.include(args[i]); } System.in.read(); feed.shutdown(); System.exit(0);
435436437438439440441442443444445
@Override 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; }
446447448449450451452453454455456
@Override 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; }
457458459460461462463464465466467
@Override 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; }
468469470471472473474475476477478
@Override public Agent subscribeMarket(final MarketObserver<Market> callback, final String... symbols) { final Agent agent = newAgent(Market.class, callback); agent.include(symbols); return agent; }
479480481482483484485486487488489
@Override public Agent subscribeTrade(final MarketObserver<Trade> lastTrade, final String... symbols) { final Agent agent = newAgent(Trade.class, lastTrade); agent.include(symbols); return agent; }
490491492493494495496497498499500
@Override public Agent subscribeBook(final MarketObserver<Book> book, final String... symbols) { final Agent agent = newAgent(Book.class, book); agent.include(symbols); return agent; }
501502503504505506507508509
374375376377378379380381382383384