API Support Forum
OEC API > API Support > Auto Subscribe
Author Topic: Auto Subscribe
(6 messages, Page 1 of 1)
Moderators: VPfau
HKusumakar79
Posts: 21
Joined: Feb 18, 2008


Posted: Apr 18, 2008 @ 05:18 AM             Msg. 1 of 6
Hi,

I have problem with quotes. I havent subscribe for any contract then also it is showing me 2 to 4 contracts default whenever i execute program, i cant understand why it is happening? even i have unsubscribed for it but it is not unsubscribing what to do?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Apr 18, 2008 @ 08:19 AM             Msg. 2 of 6
API automatically subscribes for contracts of which you have positions or orders, and for foreign currency rate, if any of subscribed contract is in foregin currency.
You cannot unsubscribe from this - these prices are used by API for P/L calculation.
HKusumakar79
Posts: 21
Joined: Feb 18, 2008


Posted: Apr 18, 2008 @ 10:31 AM             Msg. 3 of 6
But my possition has been closed then why it is needed?

is there any other solution to unsubscribe it?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Apr 18, 2008 @ 10:55 AM             Msg. 4 of 6
no, these subscriptions cannot be cancelled.
npn
Posts: 19
Joined: Apr 14, 2008


Posted: May 14, 2008 @ 12:16 PM             Msg. 5 of 6
SergeK,

Reading your post #2 above, for currency contracts, would it mean that if my position was for 6EM8, there would be an automatic subscription for ECM8?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: May 14, 2008 @ 12:20 PM             Msg. 6 of 6
Yes, since you can close this position both with 6E and EC contracts, P/L is calculated by most relevant price of pit/electronic pair.