API Support Forum
OEC API > API Support > DOM subscribes limits
Author Topic: DOM subscribes limits
(3 messages, Page 1 of 1)
Moderators: VPfau
CChen15
Posts: 121
Joined: Jul 23, 2009


Posted: Feb 22, 2011 @ 02:31 PM             Msg. 1 of 3
Hello. Is there in API function that returns max DOM subscribes limit?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Chen Hua, Russia
VictorV
Posts: 746
Joined: May 08, 2007


Posted: Feb 23, 2011 @ 08:52 AM             Msg. 2 of 3
There is a collection "Properties" in OECClient. You can use it this way to get DOM limit (in the case of OEC COM API):

_bstr_t value = OECAPI()->Properties->Item("DOMs");
log << "DOM limit: " << value << std::endl;

Other useful related properties:
MaxBars - number of bar subscriptions
MaxTicks - tick subscriptions
Quotes - futures-related quote subscriptions
QuotesEquity - equity-related quote subscriptions (if you have equity account)
QuotesFX - FX quote subscriptions (if you have forex account)

Victor Vins
Software Developer
CChen15
Posts: 121
Joined: Jul 23, 2009


Posted: Feb 23, 2011 @ 09:45 AM             Msg. 3 of 3
Thank you very much. I'll try it.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Chen Hua, Russia