API Support Forum
OEC API > API Support > Options Flag
Author Topic: Options Flag
(2 messages, Page 1 of 1)
Moderators: VPfau
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Feb 10, 2012 @ 05:30 PM             Msg. 1 of 2
I have found that the hasOptions flag on each contract will let me know if there is options per contract, but is there a flag on an upper level class to let me know if there is options available for this account for example.
From post: Currency Options http://www.openecry.com/cfbb/index.cfm?page=topic&topicID=618
Quote: Options and spreads have been enabled for your account.
Now hasOptions should be true.

Since this is activated per account is there a way to know if options are available per account?

A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station.....
RuslanK
Posts: 69
Joined: Jun 02, 2010


Posted: Feb 13, 2012 @ 10:56 AM             Msg. 2 of 2
Hello,

There is no special flag for an account, but this flag is available through Properties list of OECClient object.
You should lookup value of "Options" property - if this one is "1" then options are enabled, otherwise - disabled.
Please take into consideration that Properties list is being filled after OEC API get completely connected to a server.

Ruslan Kartokhin
Software Developer