API Support Forum
OEC API > API Support > Depth of market and Ticks
Author Topic: Depth of market and Ticks
(7 messages, Page 1 of 1)
Moderators: VPfau
YYogev
Posts: 18
Joined: Apr 21, 2010


Posted: Aug 24, 2010 @ 05:38 AM             Msg. 1 of 7
Hi I have been logged in in the past 14 hours and noticed 2 wired issues that I would Like to find out more details:
1) I registered the OnTicksReceivedEvent event and after log in to the OEC API, I did recived notification every time the that a tick received, but according to my logs at a certain time ticks were no longer received. In this case my system identify this situation and re-connects. and nonetheless the system keeps not getting any tick notification. this goes on and on.

My question:
What is the cause for not getting ticks in the first place? communication issues? do I need to have a good connection at all time?
Why after re-connect I still don't receive any ticks?

2) I also subscribed to OnDOMChangedEvent, and I do not get any notification on DOM, only ticks why is that?

10x,
Yogev

Yogev Cohen
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Aug 24, 2010 @ 12:46 PM             Msg. 2 of 7
Hello,

could you please specify what server did you use (api/sim/prod), your username there, contracts and time of the issues?

Victor Vins
Software Developer
YYogev
Posts: 18
Joined: Apr 21, 2010


Posted: Aug 25, 2010 @ 02:45 AM             Msg. 3 of 7
I am using:
Sim: api.openecry.com:9200
Contract:NQU0
user name: YYogev.
time: between 22:00 - 02:37.

Yogev Cohen
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Aug 25, 2010 @ 10:21 AM             Msg. 4 of 7
Our server logs show a bunch of reconnections starting from 21:12 up to 01:40 CST without any price requests from client side. Duration of each connected session was about 3-4 minutes

Victor Vins
Software Developer
YYogev
Posts: 18
Joined: Apr 21, 2010


Posted: Aug 25, 2010 @ 10:58 AM             Msg. 5 of 7
I noticed the issue, and fix it.
10x,
Yogev

Yogev Cohen
YYogev
Posts: 18
Joined: Apr 21, 2010


Posted: Aug 28, 2010 @ 05:48 PM             Msg. 6 of 7
Question 1:

I used the SubsribeTicks and SubscribeDOM and sometimes I don't receive DOM notification,
But ticks notification is received. meaning that I used the subscribed DOM and Ticks.
Received some DOM and Ticks notification, and then stooped to receiving DOM notifications.

Question 2:
Do the API server works different from Production/Simulation, is this issue might occurs if I am working on Live??

Question 3:
Could you please specify the correct order of Subscribing to Ticks And DOM notifications?

Question 4:
If I am using the disconnect, should I unsubscribe first? or is it OK to just Disconnect?

Edited by YYogev on Aug 28, 2010 at 18:08:27
Edited by YYogev on Aug 29, 2010 at 07:27:38
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Aug 30, 2010 @ 12:00 PM             Msg. 7 of 7
Hello,

1.
DOM and ticks subscriptions are independent ones. Please specify timestamp of issues with stopping DOM notifications and I check server logs.

2.
API works the same way as Production/Simulation. If the reason of issue is in our server, it can occur in all three environments

3.
There is no any special order for subscribing to ticks and DOM

4.
Just Disconnect is OK.

Victor Vins
Software Developer