API Support Forum
OEC API > Market Data > 2 Bars history questions and a SubscribeBars question
Author Topic: 2 Bars history questions and a SubscribeBars question
(2 messages, Page 1 of 1)
Moderators: VPfau
DBrubaker673
Posts: 55
Joined: Jul 18, 2007


Posted: Oct 25, 2011 @ 07:36 PM             Msg. 1 of 2
1. There is a SubscribeBars() in the API, but no UnsubscribeBars(). Should I do anything special to unsubscribe?
2. When I request 10,000 historical Minute bars (SubscriptionType.Bar) for ESZ1 I get 8,192 of them, maximum. Is that the limit?
3. When I request the same bars for an equity or equity index (DJI or SH) I get only 993 or 999 of them, maximum. Is that the limit? That seems very small, barely more than 2 days. [I'm doing this on my demo account or my real account, not the API account.]
Thanks!

Dale
RuslanK
Posts: 69
Joined: Jun 02, 2010


Posted: Oct 26, 2011 @ 08:55 AM             Msg. 2 of 2
Hello,

1. There is OECClient.CancelSubscription( Subscription sub ) method to unsubscribe from any updatable subscription.
2. Yes, this is the limit for historical bars for now. It can be changed in future.
3. No, it's not the limit. This is an issue applicable only to equities/equity indexes. We're investigating this.

Ruslan Kartokhin
Software Developer