AlgoTrader allows you to run your strategies in either embedded or distributed mode. There is bug with the version 4.5 that prevents strategies, running in distributed mode, from receiving session events emitted by broker/exchange adapters. Below is temporary workaround for our clients who leveraged this particular use-case.
@Override
public void onStart(final LifecycleEventVO event) {
getSubscriptionService().subscribeGenericEvents(Collections.singleton(SessionEventVO.class));
}
@Override
public void onSessionEvent(SessionEventVO seo) {
System.out.println("TESTING Session changed " + seo.toString());
}
Comments
0 comments
Article is closed for comments.