API Support Forum
OEC API > API Support > reconnection
Author Topic: reconnection
(13 messages, Page 1 of 1)
Moderators: VPfau
VVadim41
Posts: 12
Joined: Mar 22, 2010


Posted: May 05, 2010 @ 03:20 PM             Msg. 1 of 13
Hello.
I saw that after reconnect to server subscribed data is freezing. "OEClient.contract = null" errors and I think it need some time for loading contracts.
If I subsribe new contract for other freezing, new contract update correctly and other still not update
How can I check this?
Edited by VVadim41 on May 6, 2010 at 04:26:49
Edited by VVadim41 on May 6, 2010 at 04:30:29
VictorV
Posts: 746
Joined: May 08, 2007


Posted: May 07, 2010 @ 11:02 AM             Msg. 2 of 13
Hello,

was the reconnection performed by auto-reconnect option of OECAPI or manually?
VVadim41
Posts: 12
Joined: Mar 22, 2010


Posted: May 07, 2010 @ 02:21 PM             Msg. 3 of 13
yes, I use this.
I decided problem by adding event control (contract changing) + force subscribe contracts after timeout...
VVadim41
Posts: 12
Joined: Mar 22, 2010


Posted: May 07, 2010 @ 02:41 PM             Msg. 4 of 13
I have another problem with updating data. Today connection with server was not lost but data freeze again. What you advise to check status?
SSandra
Posts: 10
Joined: Apr 28, 2010


Posted: May 07, 2010 @ 03:00 PM             Msg. 5 of 13
Hi VVadim41,
I also have the same problems!
Just for your info!
Sandra

Sandra Cestano
VictorV
Posts: 746
Joined: May 08, 2007


Posted: May 07, 2010 @ 03:14 PM             Msg. 6 of 13
Could you please provide more details? It would help us to identify the problem. What environment and symbols were used? What kind of freeze: quotes or charts or both? When did it happen? How long was freeze?
SSandra
Posts: 10
Joined: Apr 28, 2010


Posted: May 07, 2010 @ 03:35 PM             Msg. 7 of 13
Hi VictorV,

Regarding data freezing:
E.g.: The FGBLM0 (bond future on the Eurex) starts trading at 08:00 Frankfurt time. If the application is running since - say - 06:00 Frankfurt time, and suppose that we now have 11:00 Frankfurt time (i.e., FGBLM0 is already trading for 3 hours), I have no data updating. But if I close the application and login again at 11:00 then I get an updating on a regular basis.

Sandra Cestano
VictorV
Posts: 746
Joined: May 08, 2007


Posted: May 07, 2010 @ 03:46 PM             Msg. 8 of 13
Was it today? What application? API environment?
SSandra
Posts: 10
Joined: Apr 28, 2010


Posted: May 07, 2010 @ 04:18 PM             Msg. 9 of 13
Data freezing:
It happens from time to time. Yesterday and the day before
we could see this. For today I cannot give a valuation.
It happens in the official OEC trading platform.
Sandra

Sandra Cestano
VVadim41
Posts: 12
Joined: Mar 22, 2010


Posted: May 07, 2010 @ 04:29 PM             Msg. 10 of 13
I use api v3.4 and sim. server.
OpenQuant application with with updated oec sample provider.
Screen todays data:
http://img708.imageshack.us/img708/56/datah.jpg
There was not disconnect events on log when all data freezed.
I subscribe ESM0,FDAXM0,NSEA-MM0 and EUR/USD.
On 07.05.2010 22:34:02(GMT +3) subscribe event started and my time event force resubscribe contracts.
Edited by VVadim41 on May 7, 2010 at 16:33:42
VictorV
Posts: 746
Joined: May 08, 2007


Posted: May 07, 2010 @ 04:40 PM             Msg. 11 of 13
VVadim41, what username did you use in sim?
VVadim41
Posts: 12
Joined: Mar 22, 2010


Posted: May 07, 2010 @ 04:44 PM             Msg. 12 of 13
login: APetrosyan
Edited by VVadim41 on May 7, 2010 at 16:45:20
VictorV
Posts: 746
Joined: May 08, 2007


Posted: May 10, 2010 @ 11:32 AM             Msg. 13 of 13
According our logs, APetrosyan was disconnected at 07:04:38 CST and connected back at 13:34:14 CST.