436437438439440441442443444445446
@Override public Agent subscribeMarket(final MarketObserver<Market> callback, final String... symbols) { final Agent agent = newAgent(Market.class, callback); agent.include(symbols); return agent; }
447448449450451452453454455456457
@Override public Agent subscribeTrade(final MarketObserver<Trade> lastTrade, final String... symbols) { final Agent agent = newAgent(Trade.class, lastTrade); agent.include(symbols); return agent; }
458459460461462463464465466467468
@Override public Agent subscribeBook(final MarketObserver<Book> book, final String... symbols) { final Agent agent = newAgent(Book.class, book); agent.include(symbols); return agent; }
469470471472473474475476477
@Override public Agent subscribeCuvol(final MarketObserver<Cuvol> cuvol, final String... symbols) { final Agent agent = newAgent(Cuvol.class, cuvol); return agent; }
468469470471472473474475476477478
@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; }
479480481482483484485486487488489
@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; }
490491492493494495496497498499500
@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; }
501502503504505506507508509510511
512513514515516517518519520521522
523524525526527528529530531532533