Author |
Topic: Beware of CancelSubscription for SubscriptionType Price (2 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
jlanawalt Posts: 88 Joined: Feb 12, 2009 |
Hello,
We had ran into a bug in our code that took more than a moment to figure out because we were accidentally unsubscribing our Price subscriptions with the CancelSubscription method instead of Unsubscribe. In our experience once that was done something happens in the API so that future requests to Subscribe again to the Price feed for that symbol fail silently. The subscription list is not updated. We were able to reproduce this by adding an unsubscribe method to the CppCOMSample and calling the wrong API function. It would be nice if CancelSubscription would return an error, throw an exception, or do whatever Unsubscribe does. Until that happens, be careful to match your Subscription->Type to the correct unsubscribe call (Unsubscribe, UnsubscribeDOM, CancelSubscription). |
||||
SergeK -Developer- Posts: 475 Joined: Jan 26, 2007 |
Thank you for pointing us the problem.
We will fix that in the next API release so CancelSubscription will work for any subscription type. |
||||