API Support Forum
OEC API > Market Data > Determining if ticks already subscribed
Author Topic: Determining if ticks already subscribed
(2 messages, Page 1 of 1)
Moderators: VPfau
DBrubaker673
Posts: 55
Joined: Jul 18, 2007


Posted: Aug 19, 2008 @ 03:19 PM             Msg. 1 of 2
I'm using Remoting to get ticks from one application to another. Is there a way to determine from the AIP whether SubscribeTicks() has already been called once for a given contract? I don't want to call it a second time, because then the OnTicksReceived event gets duplicate ticks for the contract.

Thanks,
Dale

Dale
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Aug 19, 2008 @ 03:33 PM             Msg. 2 of 2
you can iterate through OECClient.Subscriptions to see what subscriptions you already have.