Author |
Topic: Auto Subscribe (6 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
HKusumakar79 Posts: 21 Joined: Feb 18, 2008 |
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 |
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 |
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 |
no, these subscriptions cannot be cancelled.
|
||||
npn Posts: 19 Joined: Apr 14, 2008 |
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 |
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.
|
||||