API Support Forum
OEC API > API Support > request options chain problem
Author Topic: request options chain problem
(6 messages, Page 1 of 1)
Moderators: VPfau
GFranceschi4034
Posts: 4
Joined: Jun 04, 2018


Posted: Nov 23, 2018 @ 10:46 AM             Msg. 1 of 6
Hi mates,

public void requestOption(Contract futures) {
SymbolLookupCriteria criteria = new SymbolLookupCriteria();
criteria.SearchText = "*";
criteria.ParentContract = futures;
client.SymbolLookup(criteria);
}


I used this functions for request options chain of futures underlying, but returning all options with same expiration date.

How can I request first 3 option for all expiration date, what's wrong?

Thanks for support
best regards
VPfau
Moderator
Posts: 100
Joined: Oct 26, 2011


Posted: Nov 23, 2018 @ 12:00 PM             Msg. 2 of 6
Hello GFranceschi4034,

Check out our code snippets here https://bitbucket.org/dashboard/snippets
Vitaliy Pfau
GFranceschi4034
Posts: 4
Joined: Jun 04, 2018


Posted: Nov 29, 2018 @ 09:01 AM             Msg. 3 of 6
Hi,

I've tested this code:
https://bitbucket.org/snippets/GainFuturesDev/6eg47K/paginated-options-lookup

but where I can find criteria properties MinStrikePrice and MaxStrikePrice in API Documentation?

thanks for support
VPfau
Moderator
Posts: 100
Joined: Oct 26, 2011


Posted: Nov 29, 2018 @ 09:20 AM             Msg. 4 of 6
We don't have these properties in the documentation.
Vitaliy Pfau
GFranceschi4034
Posts: 4
Joined: Jun 04, 2018


Posted: Nov 29, 2018 @ 09:41 AM             Msg. 5 of 6
So how did you use that?

Exist similar criteria filter for expiration data?
VPfau
Moderator
Posts: 100
Joined: Oct 26, 2011


Posted: Nov 29, 2018 @ 09:54 AM             Msg. 6 of 6
It was not for wide public use because this functionality is for quick small results mainly by name. Using it as a contract fetcher is a side effect.

No, there is no expiration date criteria in this request.
Vitaliy Pfau