API Support Forum
OEC API > API Support > Subscription disappeared
Author Topic: Subscription disappeared
(2 messages, Page 1 of 1)
Moderators: VPfau
Posts: 23
Joined: Nov 09, 2015

Posted: Jun 13, 2017 @ 03:25 PM             Msg. 1 of 2
In my own application i subscribe a symbol (for example "ESM7") to receive Price/Bid/Ask on OnPriceTick event.

Now, if i execute an order (buy or sell is the same) using OEC Trader developer, and after i exit the position using "Exit All (MKT)" button (in the position form), the subscription of "ESM7" in my own application disappears.

AutoSubscribe property is False. If i set AutoSubscribe = True the problem is solved.

Could be an API bug?
Edited by MFrasson3344 on Jun 13, 2017 03:51 PM
Posts: 100
Joined: Oct 26, 2011

Posted: Jun 14, 2017 @ 10:40 AM             Msg. 2 of 2

The AutoSubscribe is a hidden property with no supported documentation. It could be removed in future releases.
Do not use it.

It has true value by default.
Vitaliy Pfau