381382383384385386387388389390391
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
392393394395396397398399400401402
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
403404405406407408409410411412413
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
414415416417418419420421422423424
public Agent subscribeMarket(final MarketObserver<Market> callback, final String... symbols) { final Agent agent = newAgent(Market.class, callback); agent.include(symbols).subscribe(); return agent; } @Override
425426427428429430431432433434435
public Agent subscribeTrade(final MarketObserver<Trade> lastTrade, final String... symbols) { final Agent agent = newAgent(Trade.class, lastTrade); agent.include(symbols); return agent; } @Override
436437438439440441442443444445446
public Agent subscribeBook(final MarketObserver<Book> book, final String... symbols) { final Agent agent = newAgent(Book.class, book); agent.include(symbols).subscribe(); return agent; } @Override
447448449450451452453454455456457
public Agent subscribeCuvol(final MarketObserver<Cuvol> cuvol, final String... symbols) { final Agent agent = newAgent(Cuvol.class, cuvol); agent.include(symbols).subscribe(); return agent; } @Override
405406407408409410411412413414415
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
416417418419420421422423424425426
427428429430431432433434435436437