API Support Forum
OEC API > API Support > Subscribing
Author Topic: Subscribing
(4 messages, Page 1 of 1)
Moderators: VPfau
SierraChart
Posts: 111
Joined: Jul 17, 2007


Posted: Sep 20, 2007 @ 03:32 PM             Msg. 1 of 4
When subscribing to a contract -- either with Subscribe, SubscribeTicks, or SubscribeDOM -- how can I know if I was successfully subscribed to the contract or not?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Sep 21, 2007 @ 09:10 AM             Msg. 2 of 4
If data are available - you will receive an update. If you subscribing too many contracts - you will get an error.
There is no other indication.
SierraChart
Posts: 111
Joined: Jul 17, 2007


Posted: Sep 21, 2007 @ 01:34 PM             Msg. 3 of 4
I assume you mean I will get an error with the OnError callback. Is there any way I can match an error in OnError with a particular subscription or contract? I need to know when I've failed to subscribe to ticks on a contract so I can continue to do proper data processing.
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Sep 21, 2007 @ 01:59 PM             Msg. 4 of 4
unfortunately, there is no connection between error and request available now.