Author |
Topic: Options Support (2 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
LCarter2 Posts: 20 Joined: Jun 13, 2013 |
From the API documentation it looks like I can get access to options for a particular contract from the OEC::API::Contract::Options field.
I attempted to access the options for ESU3. The HasOptions field is set to true, but there are options (ie Options field has a count of 0). Is there something that I need to do to have the Options field populated? I tried using the OECClient::RequestContracts method, but this still did not populate the Options field. Leigh Carter |
||||
VictorV Posts: 746 Joined: May 08, 2007 |
Hello. It requires the next trick:
1. Request a symbol lookup with ParentContract option:
2. In symbol lookup's response you will get a couple options related to ESU3. Now you can obtain their base contracts and call RequestContracts(...) for each of them.
Victor Vins Lead Software Developer |
||||