this.transportFactory = transportFactory;
this.streamIters = streamIters;
this.tradingSystems = tradingSystems;
// construct the trading system environment.
TradingSystemEnvironment env = new TradingSystemEnvironment();
env.setArchiveFactory(factory);
env.setDaoFactory(daoFactory);
env.setExchange(exchange);
env.setTransportFactory(transportFactory);
for (ITradingSystem s : tradingSystems) {
s.environment(env);
}
for (ITradingSystem s : tradingSystems) {