API Support Forum
OEC API > API Support > Order placed, subscription, and broken connection
Author Topic: Order placed, subscription, and broken connection
(2 messages, Page 1 of 1)
Moderators: VPfau
ZBangun363
Posts: 1
Joined: May 22, 2012


Posted: Oct 08, 2012 @ 06:37 AM             Msg. 1 of 2
The documentation for subscribe () states that: "Prices for existing (open or closed) position contracts are subscribed automatically and couldn't be unsubscribed."

Can someone confirm what will happen in this scenario:
1. Connect/Log in
2. Subscribe (say to FTSEZ Futures)
3. Subscribe for ticks
4. Placed a buy order
5. Connection dropped (either server side or ISP/exchange problem)

Now if I log in again, the position persists, however is the subscription still automatically given or do I need to re-subscribe?

Basel Bangun
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Oct 09, 2012 @ 03:25 PM             Msg. 2 of 2
If buy order opened a position, OECAPI will resubscribe for this contract. So, it is better do not rely on this logic and resubscribe quotes and ticks manually.

Victor Vins
Lead Software Developer