PDA

View Full Version : Can I set up more than two userSessions?


eric
04-22-2008, 01:01 PM
Is it possible to set up two userSessions at the same time ?

Because I need one is for live rate(receive tick data) and another one is for getting historical data.

I try this by using Price Engine SDK, but it does not work.

such as:

userSessionLive = ConnectionManagerEx.createUserSession(PRICE_SERVER,TERMINAL, "PriceServer", USER_NAME, PASSWORD,null);

userSessionHistory = ConnectionManagerEx.createUserSession( PRICE_SERVER, TERMINAL, "PriceServer", USER_NAME, PASSWORD,null);

But when I set up the userSessionHistory, the userSessionLive does not work.

If I delete the userSessionHistory, everything is fine.

Anybody help me?

Thanks in advance.

FXCM Help
04-22-2008, 04:10 PM
yes its possible. I've attached an example of this.

eric
04-23-2008, 02:48 PM
thank you very much. It is very helpful.